list.blade.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. @extends('base.base')
  2. @section('base')
  3. <style>
  4. .form-inline .form-group {
  5. margin-bottom: 10px;
  6. }
  7. </style>
  8. <!-- 内容区域 -->
  9. <div class="main-panel">
  10. <div class="content-wrapper">
  11. <div class="page-header">
  12. <h3 class="page-title">
  13. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  14. <i class="mdi mdi-settings"></i>
  15. </span>
  16. {{ __('auto.咖啡查询') }}
  17. </h3>
  18. <nav aria-label="breadcrumb">
  19. <ol class="breadcrumb">
  20. <li class="breadcrumb-item"><a href="#">{{ __('auto.咖啡管理') }}</a></li>
  21. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.咖啡查询') }}</li>
  22. </ol>
  23. </nav>
  24. </div>
  25. <div class="row">
  26. <div class="col-lg-12 grid-margin stretch-card">
  27. <div class="card">
  28. <div class="card-body">
  29. <h4 class="card-title">{{ __('auto.咖啡查询') }}</h4>
  30. {{-- <form class="well form-group margin-top-20" method="get" action='/admin/recharge/list'>--}}
  31. <form class="well form-inline margin-top-20" method="get">
  32. <div>
  33. <div class="form-group">
  34. <span style="padding-left: 10px">{{ __('auto.咖啡单号:') }}</span>
  35. <input class="form-control" type="text" name="order_sn" style="width: 10%; "
  36. value="{{$order_sn}}">
  37. <span style="padding-left: 10px">{{ __('auto.玩家ID:') }}</span>
  38. <input class="form-control" type="text" name="UserID" style="width: 10%; "
  39. value="{{$UserID}}">&nbsp;
  40. <span style="padding-left: 10px">{{ __('auto.咖啡状态:') }}</span>
  41. <select class="form-control" name="recharge_type" value="" style="color: black">
  42. <option value="">{{ __('auto.请选择') }}</option>
  43. <option value="1" @if ($recharge_type == 1) selected
  44. @endif >{{ __('auto.已到账') }}
  45. </option>
  46. <option value="2" @if ($recharge_type == 2) selected
  47. @endif>{{ __('auto.咖啡失败') }}
  48. <option value="3" @if ($recharge_type == 3) selected
  49. @endif>{{ __('auto.未支付') }}
  50. </option>
  51. </select>&nbsp;
  52. <span style="padding-left: 10px">{{ __('auto.渠道搜索:') }}</span>
  53. <select class="form-control" name="Channel" value="" style="color: black">
  54. <option value="">{{ __('auto.请选择') }}</option>
  55. @foreach($allChannel as $key=>$val)
  56. <option value="{{$val}}"
  57. @if($val == $Channel) selected @endif>{{$val}}</option>
  58. @endforeach
  59. </select>
  60. <span style="padding-left: 10px">{{ __('auto.选择创建时间:') }}</span>
  61. <select class="form-control" name="date" style="color: black">
  62. <option value="">{{ __('auto.选择时间') }}</option>
  63. @foreach($dates as $key=>$val)
  64. <option value="{{$key}}" @if ($key == $date)
  65. selected
  66. @endif>{{$val}}</option>
  67. @endforeach
  68. </select>&nbsp;&nbsp;
  69. <span style="padding-left: 10px">{{ __('auto.咖啡渠道:') }}</span>
  70. <select class="form-control" name="type" value="{{$type}}" style="color: black">
  71. <option value="">{{ __('auto.选择类别') }}</option>
  72. @foreach($type_list as $k=>$v)
  73. <option value="{{$v}}" @if($v==$type) selected @endif>{{$v}}</option>
  74. @endforeach
  75. </select>
  76. </div>
  77. <div class="form-group">
  78. <span style="padding-left: 10px">{{ __('auto.选择支付时间') }}({{ __('auto.当地') }}):</span>
  79. <input type="datetime-local" step="01" name="start_time" class="form-control" id="start_time"
  80. value="{{$start_time}}" onclick="start_times('start_time')"/>&nbsp;&nbsp;
  81. <input type="datetime-local" step="01" name="end_time" class="form-control" id="end_time"
  82. value="{{$end_time}}" onclick="end_times('end_time')"/>&nbsp;&nbsp;
  83. <span style="padding-left: 10px">{{ __('auto.选择支付时间') }}({{ __('auto.中国') }}):</span>
  84. <input type="datetime-local" step="01" name="start_time_cn" class="form-control" id="start_time_cn"
  85. value="{{$request->start_time_cn}}" onclick="start_times('start_time_cn')"/>&nbsp;&nbsp;
  86. <input type="datetime-local" step="01" name="end_time_cn" class="form-control" id="end_time_cn"
  87. value="{{$request->end_time_cn}}" onclick="end_times('end_time_cn')"/>
  88. <span style="padding-left: 10px;">{{ __('auto.按单价排序:') }}</span>
  89. <input type="radio" name="order" value="1">&nbsp;
  90. </div>
  91. <div class="form-group">
  92. <span style="padding-left: 10px">{{ __('auto.订单创建时间') }}({{ __('auto.当地') }}):</span>
  93. <input type="datetime-local" step="01" name="create_start_time" class="form-control" id="create_start_time"
  94. value="{{$create_start_time}}" onclick="create_start_times()"/>&nbsp;&nbsp;
  95. <input type="datetime-local" step="01" name="create_end_time" class="form-control" id="create_end_time"
  96. value="{{$create_end_time}}" onclick="create_end_times()"/>
  97. <span style="padding-left: 10px">{{ __('auto.用户注册日期:') }}</span>
  98. <input type="datetime-local" step="01" name="register_start_time" class="form-control" id="register_start_time"
  99. value="{{$register_start_time}}" onclick="register_start_timeFunc()"/>&nbsp;&nbsp;
  100. <input type="datetime-local" step="01" name="register_end_time" class="form-control" id="register_end_time"
  101. value="{{$register_end_time}}" onclick="register_end_timeFunc()"/>
  102. <span style="padding-left: 10px">{{ __('auto.咖啡来源:') }}</span>
  103. <select class="form-control" name="source" value="{{$source}}" style="color: black">
  104. <option value="">{{ __('auto.选择类别') }}</option>
  105. @foreach($sourceList as $k=>$v)
  106. <option value="{{$k}}" @if ($source == $k)
  107. selected
  108. @endif>{{$v}}</option>
  109. @endforeach
  110. </select>
  111. <span style="padding-left: 10px">{{ __('auto.咖啡档位筛选:') }}</span>
  112. <select class="form-control" name="chargeMoney" value="" style="color: black">
  113. <option value="">{{ __('auto.选择类别') }}</option>
  114. @foreach($chargeMoneyList as $k=>$v)
  115. <option value="{{$v}}" @if ($chargeMoney == $v)
  116. selected
  117. @endif>{{$v}}</option>
  118. @endforeach
  119. </select>
  120. <input type="hidden" name="isEmpty" value="{{$isEmpty}}">
  121. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  122. <a href="?isEmpty=1"
  123. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  124. <a href="?excel=1&start_time={{$start_time}}&end_time={{$end_time}}&recharge_type={{$recharge_type}}&UserID={{$UserID}}&type={{$type}}&order={{$order}}&date={{$date}}&create_start_time={{$create_start_time}}&create_end_time={{$create_end_time}}&isEmpty=1"
  125. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  126. </div>
  127. </div>
  128. </form>
  129. <table class="table table-bordered" id="tables">
  130. <thead>
  131. <tr>
  132. <th width="5%" ondblclick="copyText(1)">ID</th>
  133. <th width="8%" ondblclick="copyText(2)">{{ __('auto.订单号') }}</th>
  134. <th width="8%">{{ __('auto.支付完成时间') }}({{ __('auto.当地') }})</th>
  135. <th width="8%">{{ __('auto.支付完成时间') }}({{ __('auto.中国') }})</th>
  136. <th width="10%">
  137. <div class="sort_money">
  138. {{ __('auto.咖啡金额') }}
  139. <svg t="1611284352657" class="icon2" onclick="sort_money_func(this,'asc')"
  140. viewBox="0 0 1024 1024" version="1.1"
  141. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  142. <path
  143. d="M541.866667 285.866667l345.6 345.6c17.066667 17.066667 17.066667 42.666667 0 59.733333-8.533333 8.533333-19.2 12.8-29.866667 12.8H168.533333c-23.466667 0-42.666667-19.2-42.666666-42.666667 0-10.666667 4.266667-21.333333 12.8-29.866666l343.466666-345.6c17.066667-17.066667 42.666667-17.066667 59.733334 0z"
  144. p-id="4119" fill="#707072">
  145. </path>
  146. </svg>
  147. <svg t="1611283709864" class="icon1" onclick="sort_money_func(this,'desc')"
  148. viewBox="0 0 1024 1024" version="1.1"
  149. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  150. <path
  151. d="M482.133333 738.133333L136.533333 392.533333c-17.066667-17.066667-17.066667-42.666667 0-59.733333 8.533333-8.533333 19.2-12.8 29.866667-12.8h689.066667c23.466667 0 42.666667 19.2 42.666666 42.666667 0 10.666667-4.266667 21.333333-12.8 29.866666L541.866667 738.133333c-17.066667 17.066667-42.666667 17.066667-59.733334 0z"
  152. p-id="3149" fill="#707071">
  153. </path>
  154. </svg>
  155. </div>
  156. </th>
  157. <th width="8%">{{ __('auto.变化后余额') }}</th>
  158. <th width="8%">{{ __('auto.当前余额') }}</th>
  159. <th width="8%">{{ __('auto.最高分') }}</th>
  160. <th width="8%">{{ __('auto.最多赢分') }}</th>
  161. <th width="8%">{{ __('auto.咖啡来源') }}</th>
  162. <th width="7%">{{ __('auto.咖啡玩家') }}ID</th>
  163. <th width="8%">{{ __('auto.状态') }}</th>
  164. <th width="8%">{{ __('auto.来源') }}</th>
  165. <th width="7%">{{ __('auto.玩家渠道') }}</th>
  166. <th width="8%">{{ __('auto.订单生成日期') }}({{ __('auto.当地') }})</th>
  167. <th width="8%">{{ __('auto.订单生成日期') }}({{ __('auto.中国') }})</th>
  168. <th width="8%">{{ __('auto.操作') }}</th>
  169. <th width="8%">{{ __('auto.添加备注') }}</th>
  170. <th width="8%">{{ __('auto.操作人') }}</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. @if (hidden() != 'service')
  175. <div>
  176. @if (!empty($chargeMoney))
  177. <h4> {{$chargeMoney}} {{ __('auto.档位') }}</h4>
  178. @endif
  179. {{-- <h4>{{ __('auto.总金额:') }}{{$totalMoney}} &nbsp;&nbsp; {{$payTotalMoney->count_u ?? 0}}{{ __('auto.人') }}&nbsp;&nbsp;{{$payTotalMoney->count_id ?? 0}}{{ __('auto.笔') }}</h4>--}}
  180. {{-- <h4>{{ __('auto.已到账:') }}{{$overMoney}} &nbsp;&nbsp;{{$payOverMoney->count_u ?? 0}}{{ __('auto.人') }}&nbsp;&nbsp;{{$payOverMoney->count_id ?? 0}}{{ __('auto.笔') }}</h4>--}}
  181. </div>
  182. @endif
  183. @foreach($list as $k=>$v)
  184. <tr id="hidden_td">
  185. <td class="first_str">{{ $v->id }}</td>
  186. <td>{{ $v->order_sn }}</td>
  187. <td>{{$v->finished_at}}</td>
  188. <td>{{$v->finished_at ? dateConvert($v->finished_at) : ''}}</td>
  189. <td>{{ $v->amount }}</td>
  190. <td>{{ $v->after_amount }}</td>
  191. <td>{{ $v->score }}</td>
  192. <td>{{ $v->MaxScore }}</td>
  193. <td>{{ $v->MaxWinScore }}</td>
  194. <td>{{$v->payment_code}}</td>
  195. <td>
  196. <a href="/admin/global/id_find?UserID={{$v->UserID}}">
  197. {{$v->ai_GameID}}
  198. </a>
  199. @if ($v->Phone )
  200. <a target="_blank"
  201. href="https://api.whatsapp.com/send?phone=55{{$v->Phone}}">what's app</a>
  202. @endif
  203. </td>
  204. <td>
  205. @if ($v->pay_status == 1)
  206. <span style="color: #0b2e13">{{ __('auto.已到账') }}</span>
  207. @elseif($v->pay_status == 0)
  208. <span>{{ __('auto.未支付') }}</span>
  209. @else
  210. <span style="color: red">{{ __('auto.咖啡出错') }}</span>
  211. @endif
  212. </td>
  213. <td>{{$v->GiftsName}}</td>
  214. <td>{{$v->Channel}}</td>
  215. <td>{{$v->created_at}}</td>
  216. <td>{{ dateConvert($v->created_at) }}</td>
  217. <td>
  218. @if (in_array(session('admin')->roles[0]->id,[1,12])&&$v->pay_status != 1)
  219. <button type="button" class="btn-sm btn-primary"
  220. onclick="supplement({{$v->id}})">{{ __('auto.补单') }}
  221. </button>
  222. @endif
  223. </td>
  224. <td contentEditable="true"
  225. onblur="remarks(this,{{$v->id}})">{{$v->ar_remarks}}</td>
  226. <td>
  227. {{$v->account}}
  228. </td>
  229. </tr>
  230. @endforeach
  231. </tbody>
  232. </table>
  233. <div class="box-footer clearfix">
  234. {{ __('auto.总共') }}
  235. <b>{{ $list->appends([
  236. 'start_time'=>$start_time,
  237. 'UserID'=>$UserID,
  238. 'end_time'=>$end_time,
  239. 'order'=>$order,
  240. 'type'=>$type,
  241. 'recharge_type'=>$recharge_type,
  242. 'date'=>$date,
  243. 'create_start_time'=>$create_start_time,
  244. 'create_end_time'=>$create_end_time,
  245. 'Channel'=>$Channel,
  246. 'isEmpty'=>$isEmpty,
  247. 'register_start_time' => $register_start_time,
  248. 'register_end_time' => $register_end_time,
  249. 'source' => $source,
  250. 'chargeMoney' => $chargeMoney,
  251. 'amountSort' => $amountSort
  252. ])->total() }}</b>
  253. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  254. {!! $list->links() !!}
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <script>
  263. var params = {
  264. 'start_time' : '{{$start_time}}',
  265. 'UserID':'{{$UserID}}',
  266. 'end_time':'{{$end_time}}',
  267. 'order':'{{$order}}',
  268. 'type':'{{$type}}',
  269. 'recharge_type':'{{$recharge_type}}',
  270. 'date':'{{$date}}',
  271. 'create_start_time':'{{$create_start_time}}',
  272. 'create_end_time':'{{$create_end_time}}',
  273. 'Channel':'{{$Channel}}',
  274. 'isEmpty':'{{$isEmpty}}',
  275. 'register_start_time' : '{{$register_start_time}}',
  276. 'register_end_time' :'{{$register_end_time}}',
  277. 'source' : '{{$source}}',
  278. 'chargeMoney' : '{{$chargeMoney}}',
  279. }
  280. function start_times(id) {
  281. getFormat('00', '00', '00');
  282. document.getElementById(id).value = format
  283. }
  284. function end_times(id) {
  285. getFormat('23', '59', '59');
  286. document.getElementById(id).value = format
  287. }
  288. function create_start_times() {
  289. getFormat('00', '00', '00');
  290. document.getElementById("create_start_time").value = format
  291. }
  292. function create_end_times() {
  293. getFormat('23', '59', '59');
  294. document.getElementById("create_end_time").value = format
  295. }
  296. function register_start_timeFunc(){
  297. getFormat('00', '00', '00');
  298. document.getElementById("register_start_time").value = format
  299. }
  300. function register_end_timeFunc(){
  301. getFormat('23', '59', '59');
  302. document.getElementById("register_end_time").value = format
  303. }
  304. function sort_money_func(obj, val) {
  305. if (val == 'asc') {
  306. $(".sort_money svg:eq(1)").children('path').attr('fill', '#707071');
  307. $(obj).children('path').attr('fill', 'red')
  308. } else {
  309. $(obj).children('path').attr('fill', 'red')
  310. $(".sort_money svg:eq(0)").children('path').attr('fill', '#707071');
  311. }
  312. params.amountSort = val
  313. $.ajax({
  314. type: "get",
  315. url: "/admin/recharge/list",
  316. headers: {
  317. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  318. },
  319. data: params,
  320. success: function (msg) {
  321. if (msg) {
  322. $(".main-panel").html(msg)
  323. }
  324. }
  325. })
  326. }
  327. function remarks(obj, RecordID) {
  328. let remark = $(obj).html();
  329. let type = 2
  330. if (remark != ''){
  331. myRequest("/admin/withdrawal/remarks/" + RecordID, "post", {remark,type}, function (res) {
  332. layer.msg(res.msg)
  333. setTimeout(function () {
  334. window.location.reload();
  335. }, 1500)
  336. });
  337. }
  338. }
  339. function supplement(id) {
  340. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?", function () {
  341. myRequest("/admin/recharge/supplement/" + id, "post", {}, function (res) {
  342. layer.msg(res.msg)
  343. setTimeout(function () {
  344. window.location.reload();
  345. }, 1500)
  346. });
  347. });
  348. }
  349. $(function () {
  350. cutStr(50);
  351. });
  352. function update(id) {
  353. myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?", function () {
  354. myRequest("/admin/accusation/edit/" + id, "post", {}, function (res) {
  355. layer.msg(res.msg)
  356. setTimeout(function () {
  357. window.location.reload();
  358. }, 1500)
  359. });
  360. });
  361. }
  362. function del(id) {
  363. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
  364. myRequest("/admin/accusation/del/" + id, "post", {}, function (res) {
  365. layer.msg(res.msg)
  366. setTimeout(function () {
  367. window.location.reload();
  368. }, 1500)
  369. });
  370. });
  371. }
  372. </script>
  373. @endsection