usernew.blade.php 12 KB

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