userWithdrawalStatistics.blade.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-wrench"></i>
  10. </span>
  11. {{ __('auto.用户茶叶统计') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.数据统计') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.用户茶叶统计') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">{{ __('auto.用户茶叶统计') }}</h4>
  25. <form class="well form-inline margin-top-20" method="get"
  26. action='/admin/withdrawal/userWithdrawalStatistics'>
  27. <span style="padding-left: 10px">{{ __('auto.会员ID:') }}</span>
  28. <input class="form-control" type="text" name="GameID" style="width: 10%; "
  29. value="{{$gameID}}" placeholder="{{ __('auto.输入会员') }}ID">
  30. <spen style="padding-left: 10px">{{ __('auto.选择时间:') }}</spen>
  31. <input type="date" step="01" name="date" class="form-control" id="start_time"
  32. onclick="start_times()"
  33. value="{{$date}}"/>&nbsp;&nbsp;
  34. <select name="Channel" id="" class="form-control">
  35. <option value="">{{ __('auto.请选择') }}</option>
  36. @foreach($channelList as $val)
  37. <option value="{{ $val }}" @if ($channel == $val)
  38. selected
  39. @endif>{{ $val }}</option>
  40. @endforeach
  41. </select>
  42. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  43. <a href="/admin/withdrawal/userWithdrawalStatistics"
  44. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.重置') }}</a>&nbsp;&nbsp;
  45. <a href="/admin/withdrawal/userWithdrawalStatistics?GameID={{ $gameID }}&date={{ $date }}&Channel={{ $channel }}&excel=1"
  46. class="btn btn-sm btn-gradient-dark">{{ __('auto.导出') }}</a>&nbsp;&nbsp;
  47. </form>
  48. <table class="table table-bordered">
  49. <thead>
  50. <tr>
  51. <th>{{ __('auto.排名') }}</th>
  52. <th>{{ __('auto.游戏') }}ID</th>
  53. <th>{{ __('auto.当日茶叶') }}</th>
  54. <th>{{ __('auto.当日咖啡') }}</th>
  55. <th>{{ __('auto.历史茶叶') }}</th>
  56. <th>{{ __('auto.历史咖啡') }}</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. @foreach($list as $item)
  61. <tr>
  62. <td>{{ $loop->iteration }}</td>
  63. <td>
  64. <a href="/admin/global/id_find?UserID={{ $item->UserID }}">
  65. {{ $item->GameID }}
  66. </a>
  67. </td>
  68. <td>{{ $item->Withdraw }}</td>
  69. <td>{{ $item->Recharge }}</td>
  70. <td>{{ $item->HisWithdraw }}</td>
  71. <td>{{ $item->HisRecharge }}</td>
  72. </tr>
  73. @endforeach
  74. </tbody>
  75. </table>
  76. <div class="box-footer clearfix" id="pages">
  77. {{ __('auto.总共') }} <b>{{ $list->appends([
  78. 'GameID' => $gameID,
  79. 'date' => $date
  80. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  81. {!! $list->links() !!}
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <script>
  90. function add() {
  91. layer.open({
  92. type: 2,
  93. title: '{{ __('auto.添加管理员') }}',
  94. shadeClose: true,
  95. shade: 0.8,
  96. area: ['100%', '100%'],
  97. content: '/admin/administrator/add'
  98. });
  99. }
  100. function update(id) {
  101. var page = layer.open({
  102. type: 2,
  103. title: '{{ __('auto.修改管理员') }}',
  104. shadeClose: true,
  105. shade: 0.8,
  106. area: ['70%', '90%'],
  107. content: '/admin/administrator/update/' + id
  108. });
  109. }
  110. function del(id) {
  111. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
  112. myRequest("/admin/administrator/del/" + id, "post", {}, function (res) {
  113. layer.msg(res.msg)
  114. setTimeout(function () {
  115. window.location.reload();
  116. }, 1500)
  117. });
  118. });
  119. }
  120. function block(id) {
  121. myConfirm("{{ __('auto.是否继续') }}?", function () {
  122. myRequest("/admin/administrator/block/" + id, "post", {}, function (res) {
  123. layer.msg(res.msg)
  124. setTimeout(function () {
  125. window.location.reload();
  126. }, 1500)
  127. });
  128. });
  129. }
  130. </script>
  131. @endsection