| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- @extends('layouts.base')
- @section('content')
- <div class="w1200 m0a">
- <div class="rightlist">
- {{--@include('Yunshop\Article::admin.tabs')--}}
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active"><a href="#">领取记录</a></li>
- </ul>
- </div>
- <div class="panel panel-info">
- <div class="panel-body">
- <form action="" method="post" class="form-horizontal" role="form" id="form">
- <div class="form-group col-xs-12 col-sm-3">
- <div >
- <input class="form-control" name="search[keyword]" id="" type="text" value="{{ $search['keyword'] }}" placeholder="会员昵称/ID/手机号">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-3">
- <div >
- <input class="form-control" name="search[coupon]" id="" type="text" value="{{ $search['coupon'] }}" placeholder="优惠券关键字">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-3">
- <div >
- <input class="form-control" name="search[goods]" id="" type="text" value="{{ $search['goods'] }}" placeholder="商品关键字">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-3">
- <div >
- <input class="form-control" name="search[qr_sn]" id="" type="text" value="{{ $search['qr_sn'] }}" placeholder="优惠券编号">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-6">
- <div class="col-sm-4">
- <select name='search[is_time]' class='form-control'>
- <option value='0' @if($search['is_time'] ==0 || empty($search['is_time'])) selected @endif>不搜索时间</option>
- <option value='1' @if($search['is_time'] ==1) selected @endif>搜索时间</option>
- </select>
- </div>
- {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', ['starttime'=>$search['time']['start'],
- 'endtime'=>$search['time']['end'],
- 'start'=>$search['time']['start'],
- 'end'=>$search['time']['end']
- ], true) !!}
- </div>
- <div class="form-group col-xs-12 col-sm-6" >
- <button type="button" name="export" value="1" id="export" class="btn btn-default excel back ">导出 Excel</button>
- <input type="hidden" name="token" value="{{$var['token']}}" />
- <button class="btn btn-success" onclick="$('#form').onsubmit();"><i class="fa fa-search"></i> 搜索</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="panel panel-default">
- <div class="panel-body">
- <table class="table" style="">
- <thead>
- <tr>
- <th style="width:5%; text-align:center;">ID</th>
- <th style="width:17%;">领取时间</th>
- <th style="width:10%;">会员</th>
- <th style="width:10%;">优惠券名称</th>
- <th style="width:20%;">优惠券编号</th>
- <th style="width:10%;">商品名称</th>
- <th style="width:10%;">使用状态</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($list['data'] as $row)
- <tr>
- <td>{{ $row['id'] }}</td>
- <td>{{ $row['created_at'] }}</td>
- <td>
- <img src="{{ yz_tomedia($row['has_one_member']['avatar']) }}"
- style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
- <br/>
- {{$row['has_one_member']['nickname']}}
- </td>
- <td>{{ $row['has_one_coupon']['name'] }}</td>
- <td>{{ $row['has_one_member_coupon']['coupon_qr_sn'] }}</td>
- <td>
- <img src="{{ yz_tomedia($row['has_one_goods']['thumb']) }}" style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
- <br/>
- {{$row['has_one_goods']['title']}}
- </td>
- <td>@if($row['has_one_member_coupon']['used'] == 0) 未使用 @else 已使用 @endif</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $page !!}
- </div>
- </div>
- </div>
- <script language='javascript'>
- $(function () {
- $('#export').click(function(){
- $('#form').get(0).action="{!! yzWebUrl('plugin.coupon-qr.admin.record.export') !!}";
- $('#form').submit();
- $('#form').get(0).action="{!! yzWebUrl('plugin.coupon-qr.admin.record.index') !!}";
- });
- });
- </script>
- @endsection
|