record.blade.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @extends('layouts.base')
  2. @section('content')
  3. <div class="w1200 m0a">
  4. <div class="rightlist">
  5. {{--@include('Yunshop\Article::admin.tabs')--}}
  6. <div class="right-titpos">
  7. <ul class="add-snav">
  8. <li class="active"><a href="#">领取记录</a></li>
  9. </ul>
  10. </div>
  11. <div class="panel panel-info">
  12. <div class="panel-body">
  13. <form action="" method="post" class="form-horizontal" role="form" id="form">
  14. <div class="form-group col-xs-12 col-sm-3">
  15. <div >
  16. <input class="form-control" name="search[keyword]" id="" type="text" value="{{ $search['keyword'] }}" placeholder="会员昵称/ID/手机号">
  17. </div>
  18. </div>
  19. <div class="form-group col-xs-12 col-sm-3">
  20. <div >
  21. <input class="form-control" name="search[coupon]" id="" type="text" value="{{ $search['coupon'] }}" placeholder="优惠券关键字">
  22. </div>
  23. </div>
  24. <div class="form-group col-xs-12 col-sm-3">
  25. <div >
  26. <input class="form-control" name="search[goods]" id="" type="text" value="{{ $search['goods'] }}" placeholder="商品关键字">
  27. </div>
  28. </div>
  29. <div class="form-group col-xs-12 col-sm-3">
  30. <div >
  31. <input class="form-control" name="search[qr_sn]" id="" type="text" value="{{ $search['qr_sn'] }}" placeholder="优惠券编号">
  32. </div>
  33. </div>
  34. <div class="form-group col-xs-12 col-sm-6">
  35. <div class="col-sm-4">
  36. <select name='search[is_time]' class='form-control'>
  37. <option value='0' @if($search['is_time'] ==0 || empty($search['is_time'])) selected @endif>不搜索时间</option>
  38. <option value='1' @if($search['is_time'] ==1) selected @endif>搜索时间</option>
  39. </select>
  40. </div>
  41. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', ['starttime'=>$search['time']['start'],
  42. 'endtime'=>$search['time']['end'],
  43. 'start'=>$search['time']['start'],
  44. 'end'=>$search['time']['end']
  45. ], true) !!}
  46. </div>
  47. <div class="form-group col-xs-12 col-sm-6" >
  48. <button type="button" name="export" value="1" id="export" class="btn btn-default excel back ">导出 Excel</button>
  49. <input type="hidden" name="token" value="{{$var['token']}}" />
  50. <button class="btn btn-success" onclick="$('#form').onsubmit();"><i class="fa fa-search"></i> 搜索</button>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="panel panel-default">
  57. <div class="panel-body">
  58. <table class="table" style="">
  59. <thead>
  60. <tr>
  61. <th style="width:5%; text-align:center;">ID</th>
  62. <th style="width:17%;">领取时间</th>
  63. <th style="width:10%;">会员</th>
  64. <th style="width:10%;">优惠券名称</th>
  65. <th style="width:20%;">优惠券编号</th>
  66. <th style="width:10%;">商品名称</th>
  67. <th style="width:10%;">使用状态</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. @foreach ($list['data'] as $row)
  72. <tr>
  73. <td>{{ $row['id'] }}</td>
  74. <td>{{ $row['created_at'] }}</td>
  75. <td>
  76. <img src="{{ yz_tomedia($row['has_one_member']['avatar']) }}"
  77. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  78. <br/>
  79. {{$row['has_one_member']['nickname']}}
  80. </td>
  81. <td>{{ $row['has_one_coupon']['name'] }}</td>
  82. <td>{{ $row['has_one_member_coupon']['coupon_qr_sn'] }}</td>
  83. <td>
  84. <img src="{{ yz_tomedia($row['has_one_goods']['thumb']) }}" style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  85. <br/>
  86. {{$row['has_one_goods']['title']}}
  87. </td>
  88. <td>@if($row['has_one_member_coupon']['used'] == 0) 未使用 @else 已使用 @endif</td>
  89. </tr>
  90. @endforeach
  91. </tbody>
  92. </table>
  93. {!! $page !!}
  94. </div>
  95. </div>
  96. </div>
  97. <script language='javascript'>
  98. $(function () {
  99. $('#export').click(function(){
  100. $('#form').get(0).action="{!! yzWebUrl('plugin.coupon-qr.admin.record.export') !!}";
  101. $('#form').submit();
  102. $('#form').get(0).action="{!! yzWebUrl('plugin.coupon-qr.admin.record.index') !!}";
  103. });
  104. });
  105. </script>
  106. @endsection