index.blade.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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-wrench"></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=''>
  26. <span style="padding-left: 10px">在线状态:</span>
  27. <select class="form-control" name="online_status" style="width: 120px">
  28. <option value="">{{ __('auto.全部') }}</option>
  29. <option value="1" @if ($request->input('online_status') == 1) selected @endif>在线</option>
  30. <option value="2" @if ($request->input('online_status') == 2) selected @endif>离线</option>
  31. </select>
  32. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  33. <a href="/admin/win_lose_rank" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  34. </form>
  35. <table class="table table-bordered">
  36. <thead>
  37. <tr>
  38. <th>GameID</th>
  39. <th>
  40. <div class="sort_winlose">
  41. 当日输赢
  42. <svg t="1611284352657" class="icon2" onclick="sort_func(this,'winlose','asc')"
  43. viewBox="0 0 1024 1024" version="1.1"
  44. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  45. <path
  46. 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"
  47. p-id="4119" fill="{{ ($request->input('sortBy') == 'winlose' && $request->input('sortType') == 'asc') ? 'red' : '#707072' }}" />
  48. </svg>
  49. <svg t="1611283709864" class="icon1" onclick="sort_func(this,'winlose','desc')"
  50. viewBox="0 0 1024 1024" version="1.1"
  51. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  52. <path
  53. 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"
  54. p-id="3149" fill="{{ ($request->input('sortBy') == 'winlose' && $request->input('sortType') == 'desc') ? 'red' : '#707071' }}" />
  55. </svg>
  56. </div>
  57. </th>
  58. <th>
  59. <div class="sort_rtp">
  60. 当日rtp
  61. <svg t="1611284352657" class="icon2" onclick="sort_func(this,'rtp','asc')"
  62. viewBox="0 0 1024 1024" version="1.1"
  63. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  64. <path
  65. 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"
  66. p-id="4119" fill="{{ ($request->input('sortBy') == 'rtp' && $request->input('sortType') == 'asc') ? 'red' : '#707072' }}" />
  67. </svg>
  68. <svg t="1611283709864" class="icon1" onclick="sort_func(this,'rtp','desc')"
  69. viewBox="0 0 1024 1024" version="1.1"
  70. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  71. <path
  72. 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"
  73. p-id="3149" fill="{{ ($request->input('sortBy') == 'rtp' && $request->input('sortType') == 'desc') ? 'red' : '#707071' }}" />
  74. </svg>
  75. </div>
  76. </th>
  77. <th>历史充值减提现</th>
  78. <th>关联用户充值历史减提现</th>
  79. <th>在线状态</th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. @foreach ($list as $row)
  84. <tr>
  85. <td><a href='/admin/global/id_find?UserID={{ $row->UserID }}'>{{ $row->GameID }}</a></td>
  86. <td>{{ ($row->WinScore + $row->LostScore)/\App\Http\helper\NumConfig::NUM_VALUE }}</td>
  87. <td>{{ $row->TotalBet ? intval(($row->WinScore + $row->LostScore)/$row->TotalBet*100) : 0 }}%</td>
  88. <td>{{ $row->TotalRecharge - ($row->TotalWithdraw + $row->Score + $row->WithDrawWaitAudit)/\App\Http\helper\NumConfig::NUM_VALUE}}</td>
  89. <td>{{ $row->sameRW }}</td>
  90. <td>{{ $row->KindID === -1 ? '离线' : $gameServerNames[$row->KindID] ?? '' }}</td>
  91. </tr>
  92. @endforeach
  93. </tbody>
  94. </table>
  95. <div class="box-footer clearfix">
  96. {{ trans('messages.总共') }} <b>{{ $list->appends($request->all())->total() }}</b> {{ trans('messages.条,分为') }}<b>{{ $list->lastPage() }}</b> {{ trans('messages.页') }}
  97. {!! $list->links() !!}
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <script>
  106. function sort_func(obj, sortBy, sortType) {
  107. if (sortBy === 'winlose') {
  108. $(".sort_winlose svg:eq(1)").children('path').attr('fill', '#707071');
  109. $(".sort_winlose svg:eq(0)").children('path').attr('fill', '#707071');
  110. $(obj).children('path').attr('fill', 'red');
  111. } else if (sortBy === 'rtp') {
  112. $(".sort_rtp svg:eq(1)").children('path').attr('fill', '#707071');
  113. $(".sort_rtp svg:eq(0)").children('path').attr('fill', '#707071');
  114. $(obj).children('path').attr('fill', 'red');
  115. }
  116. let url = new URL(window.location.href);
  117. url.searchParams.set('sortBy', sortBy);
  118. url.searchParams.set('sortType', sortType);
  119. window.location.href = url.toString();
  120. }
  121. </script>
  122. @endsection