recharge_rank.blade.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. @extends('base.base')
  2. @section('base')
  3. <div class="main-panel">
  4. <div class="content-wrapper">
  5. <div class="page-header">
  6. <h3 class="page-title">
  7. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  8. <i class="mdi mdi-trophy"></i>
  9. </span>
  10. 充值排行榜
  11. </h3>
  12. <nav aria-label="breadcrumb">
  13. <ol class="breadcrumb">
  14. <li class="breadcrumb-item"><a href="#">{{ __('auto.用户数据') }}</a></li>
  15. <li class="breadcrumb-item active" aria-current="page">充值排行榜</li>
  16. </ol>
  17. </nav>
  18. </div>
  19. <div class="row">
  20. <div class="col-lg-12 grid-margin stretch-card">
  21. <div class="card">
  22. <div class="card-body">
  23. <h4 class="card-title">充值排行榜 <small style="color:#999">(总充值 &gt; {{$minRecharge}} 且 提现/充值 &lt; {{$maxWithdrawRate}}%)</small></h4>
  24. <form class="well form-inline margin-top-20" method="get" action="/admin/global/recharge_rank">
  25. <div>
  26. <span style="padding-left: 10px">{{ __('auto.渠道名称:') }}</span>
  27. <select class="form-control" name="channel" style="color: black">
  28. <option value="">{{ __('auto.全部渠道') }}</option>
  29. @foreach($channels as $key=>$val)
  30. <option value="{{$val}}" @if($channel == $val) selected @endif>{{$val}}</option>
  31. @endforeach
  32. </select> &nbsp;&nbsp;
  33. <span style="padding-left: 10px">总充值 &gt;</span>
  34. <input type="number" class="form-control" name="minRecharge" value="{{$minRecharge}}" min="0" step="0.01" style="width: 110px; color: black"> &nbsp;&nbsp;
  35. <span style="padding-left: 10px">提现/充值 &lt;</span>
  36. <input type="number" class="form-control" name="maxWithdrawRate" value="{{$maxWithdrawRate}}" min="0" step="0.01" style="width: 110px; color: black">
  37. <span>%</span> &nbsp;&nbsp;
  38. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  39. <a href="/admin/global/recharge_rank" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  40. </div>
  41. </form>
  42. <table class="table table-bordered">
  43. <thead>
  44. <tr>
  45. <th width="6%">{{ __('auto.会员') }}ID</th>
  46. <th width="5%">{{ __('auto.渠道') }}</th>
  47. <th width="7%">{{ __('auto.余额') }}</th>
  48. <th width="7%">今日充值</th>
  49. <th width="7%">今日提现</th>
  50. <th width="8%">总充值</th>
  51. <th width="8%">总提现</th>
  52. <th width="6%">提/充比</th>
  53. <th width="10%">
  54. <div class="sort_register">
  55. {{ __('auto.注册时间') }}
  56. <svg t="1611284352657" class="icon2" onclick="sortFunc('sortRegister','asc')"
  57. viewBox="0 0 1024 1024" version="1.1"
  58. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  59. <path d="M541.866667 285.866667l345.6 345.6c17.066667 17.066667 17.066667 42.666667 0 59.733333-8.533333 8.533333-19.2 12.8-29.866667 12.8H168.533333c-23.466667 0-42.666667-19.2-42.666666-42.666667 0-10.666667 4.266667-21.333333 12.8-29.866666l343.466666-345.6c17.066667-17.066667 42.666667-17.066667 59.733334 0z"
  60. p-id="4119" fill="{{ ($sortRegister ?? '') === 'asc' ? 'red' : '#707072' }}"></path>
  61. </svg>
  62. <svg t="1611283709864" class="icon1" onclick="sortFunc('sortRegister','desc')"
  63. viewBox="0 0 1024 1024" version="1.1"
  64. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  65. <path d="M482.133333 738.133333L136.533333 392.533333c-17.066667-17.066667-17.066667-42.666667 0-59.733333 8.533333-8.533333 19.2-12.8 29.866667-12.8h689.066667c23.466667 0 42.666667 19.2 42.666666 42.666667 0 10.666667-4.266667 21.333333-12.8 29.866666L541.866667 738.133333c-17.066667 17.066667-42.666667 17.066667-59.733334 0z"
  66. p-id="3149" fill="{{ ($sortRegister ?? '') === 'desc' ? 'red' : '#707071' }}"></path>
  67. </svg>
  68. </div>
  69. </th>
  70. <th width="10%">
  71. <div class="sort_login">
  72. 最后登录时间
  73. <svg t="1611284352657" class="icon2" onclick="sortFunc('sortLogin','asc')"
  74. viewBox="0 0 1024 1024" version="1.1"
  75. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  76. <path d="M541.866667 285.866667l345.6 345.6c17.066667 17.066667 17.066667 42.666667 0 59.733333-8.533333 8.533333-19.2 12.8-29.866667 12.8H168.533333c-23.466667 0-42.666667-19.2-42.666666-42.666667 0-10.666667 4.266667-21.333333 12.8-29.866666l343.466666-345.6c17.066667-17.066667 42.666667-17.066667 59.733334 0z"
  77. p-id="4119" fill="{{ ($sortLogin ?? '') === 'asc' ? 'red' : '#707072' }}"></path>
  78. </svg>
  79. <svg t="1611283709864" class="icon1" onclick="sortFunc('sortLogin','desc')"
  80. viewBox="0 0 1024 1024" version="1.1"
  81. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  82. <path d="M482.133333 738.133333L136.533333 392.533333c-17.066667-17.066667-17.066667-42.666667 0-59.733333 8.533333-8.533333 19.2-12.8 29.866667-12.8h689.066667c23.466667 0 42.666667 19.2 42.666666 42.666667 0 10.666667-4.266667 21.333333-12.8 29.866666L541.866667 738.133333c-17.066667 17.066667-42.666667 17.066667-59.733334 0z"
  83. p-id="3149" fill="{{ ($sortLogin ?? '') === 'desc' ? 'red' : '#707071' }}"></path>
  84. </svg>
  85. </div>
  86. </th>
  87. <th width="10%">{{ __('auto.控制状态') }}</th>
  88. <th width="8%">{{ __('auto.用户控制') }}</th>
  89. </tr>
  90. </thead>
  91. <tbody>
  92. @foreach($list as $item)
  93. <tr>
  94. <td>
  95. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  96. {{$item->GameID}}
  97. </a>
  98. </td>
  99. <td>{{$item->Channel}}</td>
  100. <td>{{$item->Score}}</td>
  101. <td>{{$item->todayRecharge ?? 0}}</td>
  102. <td>{{$item->todayWithdraw ?? 0}}</td>
  103. <td>{{$item->Recharge}}</td>
  104. <td>{{$item->Withdraw}}</td>
  105. <td>{{$item->withdrawRate}}%</td>
  106. <td>{{ $item->RegisterDate ? date('Y-m-d H:i:s', strtotime($item->RegisterDate)) : '' }}</td>
  107. <td>{{ $item->LastLogonDate ? date('Y-m-d H:i:s', strtotime($item->LastLogonDate)) : '' }}</td>
  108. <td>
  109. @if ($item->RecordRechargeControl == 1)
  110. {{ __('auto.自动控制') }} <br>
  111. @endif
  112. @empty($item->ControlScore)
  113. {{ __('auto.无') }}
  114. @elseif ($item->ControlScore < 0)
  115. {{ __('auto.单控中') }} {{$item->EffectiveScore}} / {{$item->ControlScore}}
  116. / {{$item->control_record}} {{ __('auto.输') }}
  117. @elseif ($item->ControlScore > 0)
  118. {{ __('auto.单控中') }} {{ __('auto.赢') }}{{$item->EffectiveScore}} / {{$item->ControlScore}}
  119. {{$item->control_record}}
  120. @endempty
  121. </td>
  122. <td>
  123. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"
  124. onclick="update({{$item->UserID}})">
  125. {{ __('auto.修改') }}
  126. <i class="mdi mdi-file-check btn-icon-append"></i>
  127. </button>
  128. </td>
  129. </tr>
  130. @endforeach
  131. </tbody>
  132. </table>
  133. </div>
  134. <div class="box-footer clearfix" id="pages">
  135. {{ __('auto.总共') }} <b>{{ $list->appends([
  136. 'channel' => $channel,
  137. 'minRecharge' => $minRecharge,
  138. 'maxWithdrawRate' => $maxWithdrawRate,
  139. 'sortRegister' => $sortRegister ?? '',
  140. 'sortLogin' => $sortLogin ?? '',
  141. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  142. {!! $list->links() !!}
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <script>
  150. var currentSort = {
  151. sortRegister: '{{ $sortRegister ?? '' }}',
  152. sortLogin: '{{ $sortLogin ?? '' }}'
  153. };
  154. function sortFunc(field, dir) {
  155. var params = new URLSearchParams(window.location.search);
  156. params.delete('sortRegister');
  157. params.delete('sortLogin');
  158. params.delete('page');
  159. if (currentSort[field] === dir) {
  160. // already active => cancel sort
  161. } else {
  162. params.set(field, dir);
  163. }
  164. window.location.href = '/admin/global/recharge_rank?' + params.toString();
  165. }
  166. function update(id) {
  167. var page = layer.open({
  168. type: 2,
  169. title: '{{ __('auto.修改配置') }}',
  170. shadeClose: true,
  171. shade: 0.8,
  172. offset: '180px',
  173. scrollbar: false,
  174. maxmin: true,
  175. area: ['70%', '60%'],
  176. fixed: false,
  177. content: '/admin/global/dk_userlist_edit?UserID=' + id,
  178. end: function () {
  179. window.location.reload();
  180. },
  181. });
  182. }
  183. </script>
  184. @endsection