user_new_list.blade.php 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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-settings"></i>
  10. </span>
  11. 用户数据(新)
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">用户数据</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">用户数据(新)</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">用户数据(新)</h4>
  25. <form class="well form-inline margin-top-20" method="get" action="/admin/global/user_new_list">
  26. <div>
  27. <span style="padding-left: 10px">{{ __('auto.会员ID:') }}</span>
  28. <input class="form-control" type="text" name="GameID" value="{{$gameID}}">
  29. <span style="padding-left: 10px">{{ __('auto.注册时间:') }}</span>
  30. <input type="datetime-local" step="01" name="start_time" id="start_time" class="form-control" value="{{$startTime}}" onclick="start_times('start_time')"/>
  31. <input type="datetime-local" step="01" name="end_time" id="end_time" class="form-control" value="{{$endTime}}" onclick="end_times('end_time')"/>
  32. <span style="padding-left: 10px">{{ __('auto.上次离线时间') }}:</span>
  33. <input type="datetime-local" step="01" name="lstart_time" id="lstart_time" class="form-control" value="{{$lstartTime}}" onclick="start_times('lstart_time')"/>
  34. <input type="datetime-local" step="01" name="lend_time" id="lend_time" class="form-control" value="{{$lendTime}}" onclick="end_times('lend_time')"/>
  35. <br>
  36. <span style="padding-left: 10px">{{ __('auto.渠道名称:') }}</span>
  37. <select class="form-control" name="channel" style="color: black">
  38. <option value="">{{ __('auto.全部渠道') }}</option>
  39. @foreach($channels as $key=>$val)
  40. <option value="{{$val}}" @if($channel == $val) selected @endif>{{$val}}</option>
  41. @endforeach
  42. </select> &nbsp;&nbsp;
  43. <span style="padding-left: 10px">充值金额范围:</span>
  44. <input class="form-control" type="text" name="minRecharge" placeholder="最小" style="width:80px" value="{{$minRecharge}}">
  45. ~
  46. <input class="form-control" type="text" name="maxRecharge" placeholder="最大" style="width:80px" value="{{$maxRecharge}}">
  47. &nbsp;&nbsp;
  48. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  49. <a href="/admin/global/user_new_list" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  50. <a href="/admin/global/user_new_list?excel=1&GameID={{$gameID}}&start_time={{$startTime}}&end_time={{$endTime}}&lstart_time={{$lstartTime}}&lend_time={{$lendTime}}&channel={{$channel}}&minRecharge={{$minRecharge}}&maxRecharge={{$maxRecharge}}"
  51. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  52. </div>
  53. </form>
  54. <table class="table table-bordered">
  55. <thead>
  56. <tr>
  57. <th width="6%">UserID</th>
  58. <th width="6%">{{ __('auto.会员') }}ID</th>
  59. <th width="8%">{{ __('auto.昵称') }}</th>
  60. <th width="8%">{{ __('auto.余额') }}</th>
  61. <th width="6%">{{ __('auto.状态') }}</th>
  62. <th width="10%">{{ __('auto.上次离线时间') }}</th>
  63. <th width="10%">{{ __('auto.注册日期') }}</th>
  64. <th width="6%">{{ __('auto.渠道名称') }}</th>
  65. <th width="8%">{{ __('auto.手机号') }}</th>
  66. <th width="8%">充值</th>
  67. <th width="8%">提现</th>
  68. <th width="8%">总输赢</th>
  69. <th width="6%">{{ __('auto.设置') }}</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. @foreach($list as $k=>$item)
  74. <tr>
  75. <td>{{$item->UserID}}</td>
  76. <td>
  77. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  78. {{$item->GameID}}
  79. </a>
  80. </td>
  81. <td>{{$item->NickName}}</td>
  82. <td>{{$item->Score}}</td>
  83. <td>{{$item->Nullity}}</td>
  84. <td>{{ $item->LastLogonDate ? date('Y-m-d H:i:s', strtotime($item->LastLogonDate)) : '' }}</td>
  85. <td>{{ $item->RegisterDate ? date('Y-m-d H:i:s', strtotime($item->RegisterDate)) : '' }}</td>
  86. <td>{{$item->Channel}}</td>
  87. <td>{{$item->PhoneNum}}</td>
  88. <td>{{$item->Recharge ?? 0}}</td>
  89. <td>{{$item->Withdraw ?? 0}}</td>
  90. <td>{{$item->totalScore ?? 0}}</td>
  91. <td>
  92. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="update({{$item->UserID}})">
  93. {{ __('auto.修改') }}
  94. <i class="mdi mdi-file-check btn-icon-append"></i>
  95. </button>
  96. </td>
  97. </tr>
  98. @endforeach
  99. </tbody>
  100. </table>
  101. </div>
  102. <div class="box-footer clearfix" id="pages">
  103. {{ __('auto.总共') }} <b>{{ $list->appends([
  104. 'GameID'=>$gameID,
  105. 'start_time'=>$startTime,
  106. 'end_time'=>$endTime,
  107. 'lstart_time'=>$lstartTime,
  108. 'lend_time'=>$lendTime,
  109. 'channel'=>$channel,
  110. 'minRecharge'=>$minRecharge,
  111. 'maxRecharge'=>$maxRecharge,
  112. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  113. {!! $list->links() !!}
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <script>
  121. function start_times(id) {
  122. getFormat('00', '00', '00');
  123. document.getElementById(id).value = format
  124. }
  125. function end_times(id) {
  126. getFormat('23', '59', '59');
  127. document.getElementById(id).value = format
  128. }
  129. function update(id) {
  130. var page = layer.open({
  131. type: 2,
  132. title: '{{ __('auto.修改配置') }}',
  133. shadeClose: true,
  134. shade: 0.8,
  135. area: ['70%', '90%'],
  136. content: '/admin/global/user_update?id=' + id
  137. });
  138. }
  139. </script>
  140. @endsection