draw.blade.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('领取记录'))
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">领取记录</a></li>
  7. </ul>
  8. </div>
  9. <div class='panel panel-default'>
  10. <form action="" method="post" class="form-horizontal" id="form1">
  11. <div class="panel panel-info">
  12. <div class="panel-body">
  13. <div class="form-group col-xs-12 col-sm-2">
  14. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">会员信息</label>-->
  15. <!--<div class="col-xs-12 col-sm-8 col-lg-9">-->
  16. <input class="form-control" name="search[member_id]" id="" type="text"
  17. value="{{$search['member_id']}}" placeholder="会员ID">
  18. <!--</div>-->
  19. </div>
  20. <div class="form-group col-xs-12 col-sm-2">
  21. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">会员信息</label>-->
  22. <!--<div class="col-xs-12 col-sm-8 col-lg-9">-->
  23. <input class="form-control" name="search[member]" id="" type="text"
  24. value="{{$search['member']}}" placeholder="会员昵称/姓名/手机">
  25. <!--</div>-->
  26. </div>
  27. <div class="form-group col-xs-12 col-sm-2">
  28. <input class="form-control" name="search[room_id]" id="" type="text"
  29. value="{{$search['room_id']}}" placeholder="直播间ID">
  30. </div>
  31. <div class="form-group col-xs-12 col-sm-2">
  32. <input class="form-control" name="search[title]" id="" type="text"
  33. value="{{$search['title']}}" placeholder="直播间标题">
  34. </div>
  35. <div class="form-group col-xs-12 col-sm-3">
  36. <select name='search[type]' class='form-control'>
  37. <option value=''>奖励类型</option>
  38. <option value='1' @if($search['type'] === '1') selected @endif>主播奖励</option>
  39. <option value='2' @if($search['type'] == '2') selected @endif>会员观看奖励</option>
  40. <option value='3' @if($search['type'] == '3') selected @endif>直播间会员奖励</option>
  41. </select>
  42. </div>
  43. <div class="form-group col-xs-12 col-sm-3">
  44. <select name='search[statistics]' class='form-control'>
  45. <option value='2' @if($search['statistics'] == '2') selected @endif>不统计</option>
  46. <option value='1' @if($search['statistics'] == '1') selected @endif>统计</option>
  47. </select>
  48. </div>
  49. <div class="form-group col-xs-12 col-sm-5">
  50. <div class="col-sm-3">
  51. <label class='radio-inline'>
  52. <input type='radio' value='0' name='search[is_time]'
  53. @if($search['is_time'] == '0') checked @endif>不搜索
  54. </label>
  55. <label class='radio-inline'>
  56. <input type='radio' value='1' name='search[is_time]'
  57. @if($search['is_time'] == '1') checked @endif>搜索
  58. </label>
  59. </div>
  60. {!! app\common\helpers\DateRange::tplFormFieldDateRange(
  61. 'search[time]',
  62. [
  63. 'starttime'=>$search['time']['start'],
  64. 'endtime'=>$search['time']['end'],
  65. 'start'=>$search['time']['start'],
  66. 'end'=>$search['time']['end']
  67. ],
  68. true
  69. ) !!}
  70. </div>
  71. <div class="form-group col-xs-12 col-sm-4">
  72. <input type="button" class="btn btn-success" id="export" value="导出">
  73. <input type="button" class="btn btn-success" id="search" value="搜索">
  74. </div>
  75. </div>
  76. </div>
  77. </form>
  78. </div>
  79. <div class='panel panel-default'>
  80. <div class='panel-heading'>
  81. <div @if ($search['statistics'] != 1) hidden="hidden" @endif>
  82. @if(app('plugins')->isEnabled('love')) 累计奖励{{\Yunshop\Love\Common\Services\CommonService::getLoveName()}}总数:{{$statisti['total_love']}} ,@endif累计奖励积分总数:{{$statisti['total_point']}} ,累计奖励余额总数:{{$statisti['total_balance']}} ,累计奖励现金红包总数:{{$statisti['total_packet']}} 元
  83. </div>
  84. </div>
  85. <div class='panel-body'>
  86. <table class="table table-hover" style="overflow:visible;">
  87. <thead>
  88. <tr>
  89. <th style='width:6%;'>ID</th>
  90. <th style='width:15%;'>时间</th>
  91. <th style='width:8%;'>直播间ID</th>
  92. <th style='width:8%;'>直播间标题</th>
  93. <th style='width:10%;'>会员</th>
  94. <th style='width:10%;'>奖励类型</th>
  95. <th style='width:15%;'>优惠券</th>
  96. @if(app('plugins')->isEnabled('love'))
  97. <th style='width:10%;'>{{\Yunshop\Love\Common\Services\CommonService::getLoveName()}}</th>
  98. @endif
  99. <th style='width:10%;'>积分</th>
  100. <th style='width:10%;'>余额</th>
  101. <th style='width:10%;'>现金红包</th>
  102. </tr>
  103. </thead>
  104. <tbody>
  105. @foreach($list as $row)
  106. <tr>
  107. <td>{{$row['id']}}</td>
  108. <td>{{$row['created_at']}}</td>
  109. <td>{{$row['room_id']}}</td>
  110. <td>
  111. {{$row['hasOneRoom']['title']}}
  112. </td>
  113. <td>
  114. <a target="_blank"
  115. href="{{yzWebUrl('member.member.detail',['id'=>$row['hasOneMember']['uid']])}}">
  116. <img src="{{tomedia($row['hasOneMember']['avatar'])}}"
  117. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  118. </br>
  119. {{$row['hasOneMember']['nickname']}}
  120. </a>
  121. </td>
  122. <td>{{$row['type_name']}}</td>
  123. <td> @if(!empty($row['coupon']))
  124. @foreach($row['coupon']['coupon_id'] as $k=>$v)
  125. {{$row['coupon']['coupon_name'][$k]}}优惠券{{$row['coupon']['coupon_several'][$k]}}张<br>
  126. @endforeach
  127. @else
  128. -
  129. @endif
  130. </td>
  131. @if(app('plugins')->isEnabled('love'))
  132. <td>{{$row['love']}}</td>
  133. @endif
  134. <td>{{$row['point']}}</td>
  135. <td>{{$row['balance']}}</td>
  136. <td>{{$row['packet']}}</td>
  137. </tr>
  138. @endforeach
  139. </tbody>
  140. </table>
  141. {!! $pager !!}
  142. </div>
  143. </div>
  144. <div style="width:100%;height:150px;"></div>
  145. <script language='javascript'>
  146. $(function () {
  147. $('#export').click(function () {
  148. $('#form1').attr('action', '{!! yzWebUrl('plugin.room.admin.draw.export') !!}');
  149. $('#form1').submit();
  150. });
  151. $('#search').click(function () {
  152. $('#form1').attr('action', '{!! yzWebUrl('plugin.room.admin.draw.index') !!}');
  153. $('#form1').submit();
  154. });
  155. });
  156. </script>
  157. @endsection