receive_logs.blade.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @extends('layouts.base')
  2. @section('content')
  3. <div class="right-titpos">
  4. <ul class="add-snav">
  5. <a style="margin-bottom:5px;">领取记录</a>
  6. </ul>
  7. </div>
  8. <div class='panel panel-default'>
  9. <form action="" method="post" class="form-horizontal" id="form1">
  10. <div class="panel panel-info">
  11. <div class="panel-body">
  12. <div class="form-group col-xs-12 col-sm-2">
  13. <input class="form-control" name="search[red_packet_id]" type="text"
  14. value="{{$search['red_packet_id']}}" placeholder="每日红包ID">
  15. </div>
  16. <div class="form-group col-xs-12 col-sm-2">
  17. <input class="form-control" name="search[member_id]" type="text"
  18. value="{{$search['member_id']}}" placeholder="会员ID">
  19. </div>
  20. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  21. <div class="">
  22. <input type="text" class="form-control"name="search[member]"value="{{$search['member']?$search['member']:''}}" placeholder="昵称/姓名/手机号"/>
  23. </div>
  24. </div>
  25. <div class="form-group col-xs-12 col-sm-7">
  26. <div class="col-sm-4">
  27. <label class='radio-inline'>
  28. <input type='radio' value='0' name='search[is_time]'
  29. @if(!$search['is_time']) checked @endif>不按时间
  30. </label>
  31. <label class='radio-inline'>
  32. <input type='radio' value='1' name='search[is_time]'
  33. @if($search['is_time']) checked @endif>创建时间
  34. </label>
  35. </div>
  36. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time_range]', [
  37. 'starttime'=>$search['time_range']['start'] ?: 0,
  38. 'endtime'=>$search['time_range']['end'] ?: 0,
  39. 'start'=>0,
  40. 'end'=>0
  41. ], true)!!}
  42. </div>
  43. <div class="form-group col-xs-12 col-sm-4">
  44. <input type="hidden" name="id" value="{{$activity_id}}">
  45. <input type="submit" class="btn btn-success" id="search" value="搜索">
  46. <input type="button" class="btn btn-success " id="export" value="导出">
  47. </div>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. <div class='panel panel-default'>
  53. <div class="panel-heading">
  54. 统计:已领取金额 {{$receive_amount}} 元
  55. </div>
  56. <div class='panel-body' >
  57. <table id="table">
  58. </table>
  59. <table id="basis-data" class="table table-hover" style="overflow:visible;">
  60. <thead>
  61. <tr>
  62. <th style='width:5%;'>领取红包ID</th>
  63. <th style='width:10%;'>时间</th>
  64. <th style='width:10%;'>会员</th>
  65. <th style='width:8%;'>领取金额</th>
  66. <th style='width:8%;'>红包总额度</th>
  67. <th style='width:8%;'>剩余额度</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. @foreach($list['data'] as $row)
  72. <tr>
  73. <td>{{$row['red_packet_id']}}</td>
  74. <td>{{$row['created_at']}}</td>
  75. <td>
  76. <img src='{{yz_tomedia($row['belongs_to_member']['avatar'])}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
  77. <br/>{{$row['belongs_to_member']['username']}}
  78. </td>
  79. <td>{{$row['receive_amount']}}</td>
  80. <td>{{$row['amount']}}</td>
  81. <td>{{$row['balance']}}</td>
  82. </tr>
  83. @endforeach
  84. </tbody>
  85. </table>
  86. {!! $pager !!}
  87. </div>
  88. </div>
  89. <script language='javascript'>
  90. $(function () {
  91. $('#export').click(function () {
  92. $('#form1').attr('action', '{!! yzWebUrl('plugin.red-packet.admin.receive-logs.export') !!}');
  93. $('#form1').submit();
  94. });
  95. $('#search').click(function () {
  96. $('#form1').attr('action', '{!! yzWebUrl('plugin.red-packet.admin.receive-logs.index') !!}');
  97. $('#form1').submit();
  98. });
  99. });
  100. </script>
  101. @endsection