userall.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. {{ __('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="post" action='/admin/custom/user_list'>
  26. <div>
  27. @csrf
  28. <spen style="padding-left: 10px" >{{ __('auto.会员ID:') }}</spen>
  29. <input class="form-control" type="text" name="GameID" id="GameID" style="width: 10%; " value="{{$gameID}}" >
  30. <spen style="padding-left: 10px" >{{ __('auto.分配召回时间:') }}</spen>
  31. <input type="datetime-local" step="01" name="cstart_time" id="cstart_time" class="form-control" value="{{$cstartTime}}" onclick="cstart_times()"/>
  32. <input type="datetime-local" step="01" name="cend_time" id='cend_time' class="form-control" value="{{$cendTime}}" onclick="cend_times()"/>
  33. <spen style="padding-left: 10px" >{{ __('auto.召回时间:') }}</spen>
  34. <input type="datetime-local" step="01" name="start_time" id="start_time" class="form-control" value="{{$startTime}}" onclick="start_times()"/>
  35. <input type="datetime-local" step="01" name="end_time" id='end_time' class="form-control" value="{{$endTime}}" onclick="end_times()"/>
  36. <spen style="padding-left: 10px" >{{ __('auto.最后登录时间:') }}</spen>
  37. <input type="datetime-local" step="01" name="lstart_time" id="lstart_time" class="form-control" value="{{$lstartTime}}" onclick="lstart_times()"/>
  38. <input type="datetime-local" step="01" name="lend_time" id='lend_time' class="form-control" value="{{$lendTime}}" onclick="lend_times()"/>
  39. <spen style="padding-left: 10px" >{{ __('auto.召回状态:') }}</spen>
  40. <select class="form-control" name="state" value="{{$state}}" style="color: black">
  41. @foreach($callState as $key=>$val)
  42. <option value="{{$key}}" @if ( $state == $key )
  43. selected
  44. @endif>{{$val}}</option>
  45. @endforeach
  46. </select>
  47. <spen style="padding-left: 10px" >{{ __('auto.选择客服:') }}</spen>
  48. <select class="form-control" name="admin_id" style="color: black">
  49. <option value="0">{{ __('auto.全部') }}</option>
  50. @foreach($adminName as $adminUid=>$nickname)
  51. <option value="{{$adminUid}}" @if ( $adminUid == $admin_id )
  52. selected
  53. @endif>{{$nickname}}</option>
  54. @endforeach
  55. </select>
  56. <a href="/admin/custom/user_list" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  57. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  58. </div>
  59. </form>
  60. <table class="table table-bordered">
  61. <thead>
  62. <tr>
  63. <th>
  64. {{ __('auto.召回奖励:') }}{{$currentPrize}}
  65. </th>
  66. <th>
  67. {{ __('auto.召回总充值:') }}{{$currentPay/100}}
  68. </th>
  69. <th>
  70. {{ __('auto.召回总提现:') }}{{$currentWithdraw/100}}
  71. </th>
  72. <th>
  73. {{ __('auto.召回纯利:') }}{{($currentPay-$currentWithdraw)/100}}
  74. </th>
  75. </tr>
  76. <tr>
  77. <th width="6%">{{ __('auto.会员') }}ID</th>
  78. <th width="4%">{{ __('auto.昵称') }}</th>
  79. <th width="6%">{{ __('auto.手机号') }}</th>
  80. <th width="6%">{{ __('auto.邮箱') }}</th>
  81. <th width="9%">{{ __('auto.余额') }}</th>
  82. <th width="6%">{{ __('auto.注册日期') }}</th>
  83. <th width="6%">{{ __('auto.上次离线时间') }}</th>
  84. <th width="6%">{{ __('auto.分配日期') }}</th>
  85. <th width="6%">{{ __('auto.召回状态') }}</th>
  86. <th width="6%">{{ __('auto.召回时间') }}</th>
  87. <th width="6%">{{ __('auto.召回后充值') }}</th>
  88. <th width="6%">{{ __('auto.召回后提现') }}</th>
  89. <th width="6%">{{ __('auto.奖励') }}</th>
  90. <th width="6%">{{ __('auto.归属') }}</th>
  91. <th width="8%">{{ __('auto.操作') }}</th>
  92. </tr>
  93. </thead>
  94. <tbody class="search_checkbox">
  95. @foreach($list as $k=>$item)
  96. <tr>
  97. <td>
  98. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  99. {{$item->GameID}}
  100. </a>
  101. </td>
  102. <td>{{$item->NickName}}</td>
  103. <td>
  104. {{$item->PhoneNum}}
  105. <a target="_blank"
  106. href="https://api.whatsapp.com/send?phone={{$item->PhoneNum}}">what's app</a>
  107. </td>
  108. <td>{{$item->Email}}</td>
  109. <td>{{ $item->Score }}</td>
  110. <td>{{ date('Y-m-d H:i:s',strtotime($item->RegisterDate))}}</td>
  111. <td>{{ date('Y-m-d H:i:s',strtotime($item->LastLogonDate))}}</td>
  112. <td>{{ date('Y-m-d H:i:s',strtotime($item->AddDate))}}</td>
  113. <td>
  114. {{$callState[$item->call_state]}}
  115. </td>
  116. <td>{{ $item->CallbackDate?date('Y-m-d H:i:s',strtotime($item->CallbackDate)):'--'}}</td>
  117. <td>{{ $item->recharge/100 }}</td>
  118. <td>{{ $item->withdraw/100 }}</td>
  119. <td>{{$item->call_state>0?($item->call_state==1?$prize:$prizeA):'--'}}</td>
  120. <td>
  121. {{$adminName[$item->admin_id]}}
  122. </td>
  123. <td>
  124. <a href="#" onclick="follow({{$item->UserID}})">{{ __('auto.跟进记录') }}</a>
  125. </td>
  126. </tr>
  127. @endforeach
  128. </tbody>
  129. </table>
  130. <div class="box-footer clearfix" id = "pages">
  131. {{ __('auto.总共') }} <b>{{ $list->appends([
  132. 'list'=>$list,
  133. 'GameID'=>$gameID,
  134. 'start_time'=>$startTime,
  135. 'end_time'=>$endTime,
  136. 'lstart_time'=>$lstartTime,
  137. 'lend_time'=>$lendTime,
  138. 'cstartTime' => $cstartTime,
  139. 'cendTime' => $cendTime,
  140. 'state' => $state,
  141. 'admin_id' => $admin_id
  142. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  143. {!! $list->links() !!}
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <script>
  152. var search_arr = [];
  153. var search_arr1 = [];
  154. var first_str = '';
  155. function callback() {
  156. myRequest("/admin/custom/callback", "post", {}, function (res) {
  157. layer.msg(res.msg)
  158. });
  159. }
  160. //同时获取该checkbox后面的值,以在后面的name属性为value的input里面的值,并且拼接成json字符串
  161. function cstart_times() {
  162. getFormat('00', '00', '00');
  163. document.getElementById("cstart_time").value = format
  164. }
  165. function cend_times() {
  166. getFormat('23', '59', '59');
  167. document.getElementById("cend_time").value = format
  168. }
  169. //同时获取该checkbox后面的值,以在后面的name属性为value的input里面的值,并且拼接成json字符串
  170. function start_times() {
  171. getFormat('00', '00', '00');
  172. document.getElementById("start_time").value = format
  173. }
  174. function end_times() {
  175. getFormat('23', '59', '59');
  176. document.getElementById("end_time").value = format
  177. }
  178. //同时获取该checkbox后面的值,以在后面的name属性为value的input里面的值,并且拼接成json字符串
  179. function lstart_times() {
  180. getFormat('00', '00', '00');
  181. document.getElementById("lstart_time").value = format
  182. }
  183. function lend_times() {
  184. getFormat('23', '59', '59');
  185. document.getElementById("lend_time").value = format
  186. }
  187. function follow(id){
  188. var page = layer.open({
  189. type: 2,
  190. title: '{{ __('auto.召回跟进') }}',
  191. shadeClose: true,
  192. shade: 0.8,
  193. area: ['50%', '50%'],
  194. content: '/admin/custom/follow/'+id
  195. });
  196. }
  197. </script>
  198. @endsection