win_loser_list.blade.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. @if ($id_list != '')
  24. <div>
  25. {{-- <a href="/admin/global/id_find?UserID={{$UserID}}" onclick="javascript:history.back(-1);">{{ __('auto.返回到上一页') }}</a>&nbsp;&nbsp;--}}
  26. <a href="#" onClick="javascript :history.go(-{{$Jump}});">{{ __('auto.返回上一页') }}</a>
  27. </div>
  28. @endif
  29. <div class="card-body">
  30. <span>
  31. <button class="btn btn-sm btn-gradient-danger"
  32. onclick="change_date()">6{{ __('auto.月17日') }}</button>
  33. </span>
  34. <form class="well form-inline margin-top-20" method="post"
  35. action='/admin/global/winloser?id_list={{$id_list}}'>
  36. <div>
  37. @csrf
  38. <input type="hidden" name="Jump" value="{{$Jump}}">
  39. <spen style="padding-left: 10px">{{ __('auto.会员ID:') }}</spen>
  40. <input class="form-control" type="text" name="UserID" id="UserID"
  41. style="width: 10%; " value="{{$GameID}}">
  42. <spen style="padding-left: 10px">{{ __('auto.战绩搜索:') }}</spen>
  43. <input class="form-control" type="text" name="UniqueCode" id="UniqueCode"
  44. style="width: 10%; " value="{{$UniqueCode}}">
  45. <spen style="padding-left: 10px">{{ __('auto.游戏选择:') }}</spen>
  46. <select class="form-control" name="searchGame" value="" style="color: black">
  47. <option value="">{{ __('auto.全部') }}</option>
  48. @foreach($games as $key=>$value)
  49. <option value="{{$key}}" @if ($searchGame == $key) selected @endif>
  50. {{$value}}
  51. </option>
  52. @endforeach
  53. </select>
  54. <spen style="padding-left: 10px">{{ __('auto.房间选择:') }}</spen>
  55. <select class="form-control" name="room" value="" style="color: black">
  56. <option value="">{{ __('auto.全部') }}</option>
  57. @foreach($rooms as $key=>$value)
  58. <option value="{{$key}}" @if ($room == $key) selected @endif>
  59. {{$value}}
  60. </option>
  61. @endforeach
  62. </select>
  63. <spen style="padding-left: 10px">{{ __('auto.时间选择:') }}</spen>
  64. <input type="datetime-local" step="01" name="start_time" id="start_time"
  65. class="form-control" value="{{$start_time}}"/>
  66. <input type="datetime-local" step="01" name="end_time" id='end_time'
  67. class="form-control" value="{{$end_time}}"/> <br>
  68. <spen style="padding-left: 10px">{{ __('auto.输赢金额范围:') }}</spen>
  69. <input type="number" value="{{$ChangeScoreMin}}" style="color: black;width: 10%;"
  70. class="form-control required" name="ChangeScoreMin">-
  71. <input type="number" value="{{$ChangeScoreMax}}" style="color: black;width: 10%;"
  72. class="form-control required" name="ChangeScoreMax">
  73. <input type="submit" class="btn btn-sm btn-gradient-primary btn-icon-text"
  74. value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp
  75. <input type="hidden" name="afterScoreSort" value="{{$afterScoreSort}}">
  76. <input type="hidden" name="ChangeScoreSort" value="{{$ChangeScoreSort}}">
  77. <a href="/admin/global/winloser"
  78. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  79. <a href="/admin/global/winloser?excel=1
  80. &UserID={{$GameID}}
  81. &UniqueCode={{$UniqueCode}}
  82. &room={{$room}}
  83. &start_time={{$start_time}}
  84. &end_time={{$end_time}}
  85. &searchGame={{$searchGame}}
  86. &ChangeScoreMin={{$ChangeScoreMin}}
  87. &ChangeScoreMax={{$ChangeScoreMax}}
  88. "
  89. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  90. </div>
  91. </form>
  92. <div class="row">
  93. @if (hidden() != 'service')
  94. <div class="card">
  95. <div class="card-body">
  96. <table class="table table-bordered">
  97. <thead>
  98. <tr>
  99. <th>{{ __('auto.平台总输赢:') }}{{$data['ChangeScore']}}</th>
  100. <th>{{ __('auto.流水:') }}{{$data['liushui']}}</th>
  101. <th>{{ __('auto.税收:') }}{{$data['Revenue']}}</th>
  102. <th>{{ __('auto.人数:') }}{{$data['UserID']}}</th>
  103. </tr>
  104. </thead>
  105. </table>
  106. </div>
  107. </div>
  108. @endif
  109. </div>
  110. <table class="table table-bordered">
  111. <thead>
  112. <tr>
  113. <th width="5%">{{ __('auto.会员') }}ID</th>
  114. <th width="4%">{{ __('auto.游戏时间') }}</th>
  115. <th width="6%">{{ __('auto.房间名称') }}</th>
  116. <th width="6%">{{ __('auto.变化前金豆') }}</th>
  117. <th width="6%">
  118. <div class="ChangeScore">
  119. {{ __('auto.输赢变化金豆') }}
  120. <svg t="1611284352657" class="icon2" onclick="ChangeScore(this,'asc')"
  121. viewBox="0 0 1024 1024" version="1.1"
  122. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  123. <path
  124. 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"
  125. p-id="4119" fill="#707072">
  126. </path>
  127. </svg>
  128. <svg t="1611283709864" class="icon1" onclick="ChangeScore(this,'desc')"
  129. viewBox="0 0 1024 1024" version="1.1"
  130. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  131. <path
  132. 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"
  133. p-id="3149" fill="#707071">
  134. </path>
  135. </svg>
  136. </div>
  137. </th>
  138. <th width="8%">
  139. <div class="afterScore">
  140. {{ __('auto.变化后输赢金豆') }}
  141. <svg t="1611284352657" class="icon2" onclick="afterScore(this,'asc')"
  142. viewBox="0 0 1024 1024" version="1.1"
  143. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  144. <path
  145. 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"
  146. p-id="4119" fill="#707072">
  147. </path>
  148. </svg>
  149. <svg t="1611283709864" class="icon1" onclick="afterScore(this,'desc')"
  150. viewBox="0 0 1024 1024" version="1.1"
  151. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  152. <path
  153. 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"
  154. p-id="3149" fill="#707071">
  155. </path>
  156. </svg>
  157. </div>
  158. </th>
  159. <th width="8%">{{ __('auto.累计税收') }}</th>
  160. <th width="6%">{{ __('auto.游戏战绩') }}</th>
  161. </tr>
  162. </thead>
  163. <tbody>
  164. @foreach($list as $value)
  165. <tr>
  166. <td>
  167. {{-- <a href="/admin/global/id_find?UserID={{$value->UserID}}">{{$value->GameID}}</a>--}}
  168. <a href="javascript:void(0)" onclick="idFindFunc({{$value->UserID}})">{{$value->GameID}}</a>
  169. </td>
  170. <td>{{$value->UpdateTime}}</td>
  171. <td>{{$value->thirdRoom?? $rooms[$value->ServerID] ?? ''}}</td>
  172. <td>{{$value->BeforeScore}}</td>
  173. <td>{{$value->ChangeScore}}</td>
  174. <td>{{$value->afterScore}}</td>
  175. <td>{{$value->Revenue}}</td>
  176. <td>
  177. @if($value->UniqueCode)
  178. <a href="/admin/global/game_record?UniqueCode={{$value->UniqueCode}}&gameId={{$value->GameID}}&month={{date('Ym',strtotime($value->UpdateTime))}}">{{ __('auto.点击查询') }}</a>
  179. @endif
  180. </td>
  181. </tr>
  182. @endforeach
  183. </tbody>
  184. </table>
  185. <div class="box-footer clearfix" id="pages">
  186. {{ __('auto.总共') }} <b>{{ $list->appends([
  187. 'list'=>$list,
  188. 'UserID' => $GameID,
  189. 'UniqueCode' => $UniqueCode,
  190. 'room' => $room,
  191. 'start_time' => $start_time,
  192. 'end_time' => $end_time,
  193. 'id_list' => $id_list,
  194. 'ChangeScoreMin'=>$ChangeScoreMin,
  195. 'ChangeScoreMax'=>$ChangeScoreMax,
  196. 'afterScoreSort'=>$afterScoreSort,
  197. 'ChangeScoreSort'=>$ChangeScoreSort,
  198. 'searchGame' => $searchGame
  199. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  200. {!! $list->links() !!}
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. <script>
  209. var data_obj = {
  210. 'UserID':"{{$GameID}}",
  211. 'UniqueCode':"{{$UniqueCode}}",
  212. 'room':"{{$room}}",
  213. 'start_time':"{{$start_time}}",
  214. 'end_time': "{{$end_time}}",
  215. 'id_list':"{{$id_list}}",
  216. 'ChangeScoreMin':"{{$ChangeScoreMin}}",
  217. 'ChangeScoreMax':"{{$ChangeScoreMax}}",
  218. 'afterScoreSort':"{{$afterScoreSort}}",
  219. 'ChangeScoreSort':"{{$ChangeScoreSort}}",
  220. 'searchGame':"{{$searchGame}}",
  221. }
  222. var that = this
  223. function change_date() {
  224. $('#start_time').val('2021-06-17T00:00:00');
  225. }
  226. function idFindFunc(UserID) {
  227. var page = layer.open({
  228. type: 2,
  229. title: '{{ __('auto.用户控制面板') }}',
  230. shadeClose: true,
  231. shade: 0.8,
  232. area: ['100%', '100%'],
  233. content: '/admin/global/id_find?UserID=' + UserID+'&OpenPage=1'
  234. });
  235. }
  236. function ChangeScore(obj, val) {
  237. if (val == 'asc') {
  238. $(".ChangeScore svg:eq(1)").children('path').attr('fill', '#707071');
  239. $(obj).children('path').attr('fill', 'red')
  240. } else {
  241. $(obj).children('path').attr('fill', 'red')
  242. $(".ChangeScore svg:eq(0)").children('path').attr('fill', '#707071');
  243. }
  244. that.data_obj.ChangeScoreSort = val
  245. $.ajax({
  246. type: "post",
  247. url: "/admin/global/winloser",
  248. headers: {
  249. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  250. },
  251. data: that.data_obj,
  252. success: function (msg) {
  253. if (msg) {
  254. $(".main-panel").html(msg)
  255. }
  256. }
  257. })
  258. }
  259. function afterScore(obj, val) {
  260. if (val == 'asc') {
  261. $(".ChangeScore svg:eq(1)").children('path').attr('fill', '#707071');
  262. $(obj).children('path').attr('fill', 'red')
  263. } else {
  264. $(obj).children('path').attr('fill', 'red')
  265. $(".ChangeScore svg:eq(0)").children('path').attr('fill', '#707071');
  266. }
  267. that.data_obj.afterScoreSort = val
  268. $.ajax({
  269. type: "post",
  270. url: "/admin/global/winloser",
  271. headers: {
  272. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  273. },
  274. data: that.data_obj,
  275. success: function (msg) {
  276. if (msg) {
  277. $(".main-panel").html(msg)
  278. }
  279. }
  280. })
  281. }
  282. </script>
  283. @endsection