recharge_rank.blade.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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%">{{ __('auto.注册时间') }}</th>
  49. <th width="10%">最后登录时间</th>
  50. <th width="10%">{{ __('auto.控制状态') }}</th>
  51. <th width="8%">{{ __('auto.用户控制') }}</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. @foreach($list as $item)
  56. <tr>
  57. <td>
  58. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  59. {{$item->GameID}}
  60. </a>
  61. </td>
  62. <td>{{$item->Channel}}</td>
  63. <td>{{$item->Score}}</td>
  64. <td>{{$item->todayRecharge ?? 0}}</td>
  65. <td>{{$item->todayWithdraw ?? 0}}</td>
  66. <td>{{$item->Recharge}}</td>
  67. <td>{{$item->Withdraw}}</td>
  68. <td>{{$item->withdrawRate}}%</td>
  69. <td>{{ $item->RegisterDate ? date('Y-m-d H:i:s', strtotime($item->RegisterDate)) : '' }}</td>
  70. <td>{{ $item->LastLogonDate ? date('Y-m-d H:i:s', strtotime($item->LastLogonDate)) : '' }}</td>
  71. <td>
  72. @if ($item->RecordRechargeControl == 1)
  73. {{ __('auto.自动控制') }} <br>
  74. @endif
  75. @empty($item->ControlScore)
  76. {{ __('auto.无') }}
  77. @elseif ($item->ControlScore < 0)
  78. {{ __('auto.单控中') }} {{$item->EffectiveScore}} / {{$item->ControlScore}}
  79. / {{$item->control_record}} {{ __('auto.输') }}
  80. @elseif ($item->ControlScore > 0)
  81. {{ __('auto.单控中') }} {{ __('auto.赢') }}{{$item->EffectiveScore}} / {{$item->ControlScore}}
  82. {{$item->control_record}}
  83. @endempty
  84. </td>
  85. <td>
  86. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"
  87. onclick="update({{$item->UserID}})">
  88. {{ __('auto.修改') }}
  89. <i class="mdi mdi-file-check btn-icon-append"></i>
  90. </button>
  91. </td>
  92. </tr>
  93. @endforeach
  94. </tbody>
  95. </table>
  96. </div>
  97. <div class="box-footer clearfix" id="pages">
  98. {{ __('auto.总共') }} <b>{{ $list->appends([
  99. 'channel' => $channel,
  100. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  101. {!! $list->links() !!}
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <script>
  109. function update(id) {
  110. var page = layer.open({
  111. type: 2,
  112. title: '{{ __('auto.修改配置') }}',
  113. shadeClose: true,
  114. shade: 0.8,
  115. offset: '180px',
  116. scrollbar: false,
  117. maxmin: true,
  118. area: ['70%', '60%'],
  119. fixed: false,
  120. content: '/admin/global/dk_userlist_edit?UserID=' + id,
  121. end: function () {
  122. window.location.reload();
  123. },
  124. });
  125. }
  126. </script>
  127. @endsection