coupon-use-old.blade.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('充值记录'))
  4. <div class="w1200 ">
  5. @include('layouts.tabs')
  6. <div class=" rightlist ">
  7. <form action="" method="post" class="form-horizontal" id="form1">
  8. <div class="right-addbox">
  9. <div class="panel panel-info">
  10. <div class="panel-body">
  11. <div class="form-group col-xs-12 col-sm-2">
  12. <input class="form-control" name="search[coupon_name]" id="" type="text"
  13. value="{{$search['coupon_name']}}" placeholder="优惠券名称">
  14. </div>
  15. <div class="form-group col-xs-12 col-sm-2">
  16. <input class="form-control" name="search[member]" id="" type="text"
  17. value="{{$search['member']}}" placeholder="会员ID/会员昵称/姓名/手机">
  18. </div>
  19. <div class="form-group col-xs-12 col-sm-3">
  20. <select name='search[use_type]' class='form-control'>
  21. <option value='0'>使用类型</option>
  22. @foreach($use_type as $name => $row)
  23. <option value={{$name}} @if($search['use_type'] == $name) selected @endif>{{$row}}</option>
  24. @endforeach
  25. </select>
  26. </div>
  27. <div class="form-group col-xs-12 col-sm-8">
  28. <div class="col-sm-2">
  29. <label class='radio-inline'>
  30. <input type='checkbox' value='1' name='search[is_time]'
  31. @if($search['is_time'] == '1') checked @endif>是否搜索时间
  32. </label>
  33. </div>
  34. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  35. 'starttime'=>$search['time']['start'],
  36. 'endtime'=>$search['time']['end'],
  37. 'start'=>$search['time']['start'],
  38. 'end'=>$search['time']['end']
  39. ], true) !!}
  40. <!--</div>-->
  41. </div>
  42. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  43. <div class="">
  44. <button type="button" id="search" class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </form>
  51. <div class="clearfix">
  52. <div class='panel panel-default'>
  53. <div class='panel-body table-responsive'>
  54. <table class="table table-hover" style="overflow:visible;">
  55. <thead>
  56. <tr>
  57. <th style='width:4%;text-align: center;'>ID</th>
  58. <th style='width:8%;text-align: center;'>使用时间</th>
  59. <th style='width:6%;text-align: center;'>优惠券名称</th>
  60. <th style='width:5%;text-align: center;'>会员</th>
  61. <th style='width:6%;text-align: center;'>使用类型</th>
  62. <th style='width:15%;text-align: center;'>详情</th>
  63. </tr>
  64. </thead>
  65. <tbody>
  66. @if (!empty($list['data']))
  67. @foreach($list['data'] as $row)
  68. <tr>
  69. <td style='text-align: center;'>{{$row['id']}}</td>
  70. <td style='text-align: center;'>{{$row['created_at']}}</td>
  71. <td style='text-align: center;'>{{$row['has_one_coupon']['name']}}</td>
  72. <td style='text-align: center;'>
  73. <a href="{!! yzWebUrl('member.member.detail', ['id'=>$row['belongs_to_member']['uid']]) !!}"><img src="{{tomedia($row['belongs_to_member']['avatar'])}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$row['belongs_to_member']['nickname']}}</a>
  74. </td>
  75. <td style='text-align: center;'>
  76. {{$row['type_name']}}
  77. </td>
  78. <td style='text-align: center;'>
  79. {{$row['detail']}}
  80. </td>
  81. </tr>
  82. @endforeach
  83. @else
  84. <td colspan="6" style="color: red">没有更多数据了!</td>
  85. @endif
  86. </tbody>
  87. </table>
  88. {!! $pager !!}
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <script language="javascript">
  95. $(function () {
  96. $('#search').click(function () {
  97. $('#form1').attr('action', '{!! yzWebUrl('coupon.coupon-use.log') !!}');
  98. $('#form1').submit();
  99. });
  100. });
  101. </script>
  102. @endsection