recharge_rank.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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; 100 且 提现/充值 &lt; 35%)</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. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  34. <a href="/admin/global/recharge_rank" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  35. </div>
  36. </form>
  37. <table class="table table-bordered">
  38. <thead>
  39. <tr>
  40. <th width="6%">{{ __('auto.会员') }}ID</th>
  41. <th width="5%">{{ __('auto.渠道') }}</th>
  42. <th width="7%">{{ __('auto.余额') }}</th>
  43. <th width="7%">今日充值</th>
  44. <th width="7%">今日提现</th>
  45. <th width="8%">总充值</th>
  46. <th width="8%">总提现</th>
  47. <th width="6%">提/充比</th>
  48. <th width="10%">
  49. <div class="sort_register">
  50. {{ __('auto.注册时间') }}
  51. <svg t="1611284352657" class="icon2" onclick="sortFunc('sortRegister','asc')"
  52. viewBox="0 0 1024 1024" version="1.1"
  53. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  54. <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"
  55. p-id="4119" fill="{{ ($sortRegister ?? '') === 'asc' ? 'red' : '#707072' }}"></path>
  56. </svg>
  57. <svg t="1611283709864" class="icon1" onclick="sortFunc('sortRegister','desc')"
  58. viewBox="0 0 1024 1024" version="1.1"
  59. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  60. <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"
  61. p-id="3149" fill="{{ ($sortRegister ?? '') === 'desc' ? 'red' : '#707071' }}"></path>
  62. </svg>
  63. </div>
  64. </th>
  65. <th width="10%">
  66. <div class="sort_login">
  67. 最后登录时间
  68. <svg t="1611284352657" class="icon2" onclick="sortFunc('sortLogin','asc')"
  69. viewBox="0 0 1024 1024" version="1.1"
  70. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  71. <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"
  72. p-id="4119" fill="{{ ($sortLogin ?? '') === 'asc' ? 'red' : '#707072' }}"></path>
  73. </svg>
  74. <svg t="1611283709864" class="icon1" onclick="sortFunc('sortLogin','desc')"
  75. viewBox="0 0 1024 1024" version="1.1"
  76. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  77. <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"
  78. p-id="3149" fill="{{ ($sortLogin ?? '') === 'desc' ? 'red' : '#707071' }}"></path>
  79. </svg>
  80. </div>
  81. </th>
  82. <th width="10%">{{ __('auto.控制状态') }}</th>
  83. <th width="8%">{{ __('auto.用户控制') }}</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. @foreach($list as $item)
  88. <tr>
  89. <td>
  90. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  91. {{$item->GameID}}
  92. </a>
  93. </td>
  94. <td>{{$item->Channel}}</td>
  95. <td>{{$item->Score}}</td>
  96. <td>{{$item->todayRecharge ?? 0}}</td>
  97. <td>{{$item->todayWithdraw ?? 0}}</td>
  98. <td>{{$item->Recharge}}</td>
  99. <td>{{$item->Withdraw}}</td>
  100. <td>{{$item->withdrawRate}}%</td>
  101. <td>{{ $item->RegisterDate ? date('Y-m-d H:i:s', strtotime($item->RegisterDate)) : '' }}</td>
  102. <td>{{ $item->LastLogonDate ? date('Y-m-d H:i:s', strtotime($item->LastLogonDate)) : '' }}</td>
  103. <td>
  104. @if ($item->RecordRechargeControl == 1)
  105. {{ __('auto.自动控制') }} <br>
  106. @endif
  107. @empty($item->ControlScore)
  108. {{ __('auto.无') }}
  109. @elseif ($item->ControlScore < 0)
  110. {{ __('auto.单控中') }} {{$item->EffectiveScore}} / {{$item->ControlScore}}
  111. / {{$item->control_record}} {{ __('auto.输') }}
  112. @elseif ($item->ControlScore > 0)
  113. {{ __('auto.单控中') }} {{ __('auto.赢') }}{{$item->EffectiveScore}} / {{$item->ControlScore}}
  114. {{$item->control_record}}
  115. @endempty
  116. </td>
  117. <td>
  118. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"
  119. onclick="update({{$item->UserID}})">
  120. {{ __('auto.修改') }}
  121. <i class="mdi mdi-file-check btn-icon-append"></i>
  122. </button>
  123. </td>
  124. </tr>
  125. @endforeach
  126. </tbody>
  127. </table>
  128. </div>
  129. <div class="box-footer clearfix" id="pages">
  130. {{ __('auto.总共') }} <b>{{ $list->appends([
  131. 'channel' => $channel,
  132. 'sortRegister' => $sortRegister ?? '',
  133. 'sortLogin' => $sortLogin ?? '',
  134. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  135. {!! $list->links() !!}
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <script>
  143. var currentSort = {
  144. sortRegister: '{{ $sortRegister ?? '' }}',
  145. sortLogin: '{{ $sortLogin ?? '' }}'
  146. };
  147. function sortFunc(field, dir) {
  148. var params = new URLSearchParams(window.location.search);
  149. params.delete('sortRegister');
  150. params.delete('sortLogin');
  151. params.delete('page');
  152. if (currentSort[field] === dir) {
  153. // already active => cancel sort
  154. } else {
  155. params.set(field, dir);
  156. }
  157. window.location.href = '/admin/global/recharge_rank?' + params.toString();
  158. }
  159. function update(id) {
  160. var page = layer.open({
  161. type: 2,
  162. title: '{{ __('auto.修改配置') }}',
  163. shadeClose: true,
  164. shade: 0.8,
  165. offset: '180px',
  166. scrollbar: false,
  167. maxmin: true,
  168. area: ['70%', '60%'],
  169. fixed: false,
  170. content: '/admin/global/dk_userlist_edit?UserID=' + id,
  171. end: function () {
  172. window.location.reload();
  173. },
  174. });
  175. }
  176. </script>
  177. @endsection