Files
pingan_new/storage/framework/views/56b58acc6c50c0878363ee6eaa18db5e12517ce8.php
2020-08-06 16:42:18 +08:00

97 lines
4.7 KiB
PHP

<?php $__env->startSection('title', '核销统计'); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/css/plugins/datapicker/datepicker3.css'), false); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/merchant/js/plugins/datapicker/bootstrap-datepicker.js'), false); ?>"></script>
<script type="text/javascript">
$("#time-interval .input-daterange").datepicker({
autoclose: true, //自动关闭
beforeShowDay: $.noop, //在显示日期之前调用的函数
clearBtn: true, //显示清除按钮
forceParse: true, //是否强制转换不符合格式的字符串
format: 'yyyy-mm', //日期格式
language: 'cn', //语言
minViewMode: 1, // 最小精度选择
startView: 1, //开始显示
WeekHighlighted:true, // 本周高亮
endDate:new Date()
});
$("button").click(function(){
var $this = $(this);
var $form = $this.parents('form');
$("input[name='action']").val($this.data('action'));
$form.submit();
});
</script>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="ibox">
<div class="row">
<div class="col-sm-12 m-b">
<form action="<?php echo e(route('merchant.census'), false); ?>" class="form-inline pull-right" method="get" accept-charset="utf-8">
<div class="form-group" id="time-interval">
<div class="input-daterange input-group">
<input type="text" class="input-sm form-control" placeholder="核销月份" readonly name="month" value="<?php echo e(Request::input('month')??now()->format('Y-m'), false); ?>" />
</div>
</div>
<div class="input-group">
<span class="input-group-btn">
<input type="hidden" name="action" value="search">
<button type="button" class="btn btn-sm btn-primary" data-action="search" ><i class="fa fa-check"></i>&nbsp;刷新</button>
<button type="button" class="btn btn-sm btn-warning confirm" tip='确认要导出当前条件内容?' data-action="excel"><i class="fa fa-paste"></i>&nbsp;导出</button>
</span>
</div>
</form>
</div>
</div>
<div class="ibox-content">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>日期</th>
<th>100元减10元优惠券</th>
<th>100元减25元优惠券</th>
<th>100元减50元优惠券</th>
<th>200元减100元优惠券</th>
<th></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td> <?php echo e($coupon['day'], false); ?> </td>
<td> <?php echo e($coupon['ysd10'] ??'', false); ?> </td>
<td> <?php echo e($coupon['ysd25'] ??'', false); ?> </td>
<td> <?php echo e($coupon['ysd50'] ??'', false); ?> </td>
<td> <?php echo e($coupon['ysd100']??'', false); ?> </td>
<td>
<a href="<?php echo e(route('merchant.coupons',['start'=>$coupon['day'],'end'=>$coupon['day']]), false); ?>">查看</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr style="color: #f8ac59">
<td> 全部</td>
<td> <?php echo e($all['ysd10'] ??'', false); ?> </td>
<td> <?php echo e($all['ysd25'] ??'', false); ?> </td>
<td> <?php echo e($all['ysd50'] ??'', false); ?> </td>
<td> <?php echo e($all['ysd100']??'', false); ?> </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/census/index.blade.php ENDPATH**/ ?>