| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- @extends('base.base')
- @section('base')
- <!-- 内容区域 -->
- <div class="main-panel">
- <div class="content-wrapper">
- <div class="page-header">
- <h3 class="page-title">
- <span class="page-title-icon bg-gradient-primary text-white mr-2">
- <i class="mdi mdi-wrench"></i>
- </span>
- 当日输赢排行
- </h3>
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="#">数据统计</a></li>
- <li class="breadcrumb-item active" aria-current="page">当日输赢排行</li>
- </ol>
- </nav>
- </div>
- <div class="row">
- <div class="col-lg-12 grid-margin stretch-card">
- <div class="card">
- <div class="card-body">
- <h4 class="card-title">当日输赢排行</h4>
- <form class="well form-inline margin-top-20" method="get" action=''>
- <span style="padding-left: 10px">在线状态:</span>
- <select class="form-control" name="online_status" style="width: 120px">
- <option value="">{{ __('auto.全部') }}</option>
- <option value="1" @if ($request->input('online_status') == 1) selected @endif>在线</option>
- <option value="2" @if ($request->input('online_status') == 2) selected @endif>离线</option>
- </select>
- <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>
- <a href="/admin/win_lose_rank" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
- </form>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>GameID</th>
- <th>
- <div class="sort_winlose">
- 当日输赢
- <svg t="1611284352657" class="icon2" onclick="sort_func(this,'winlose','asc')"
- viewBox="0 0 1024 1024" version="1.1"
- xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
- <path
- 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"
- p-id="4119" fill="{{ ($request->input('sortBy') == 'winlose' && $request->input('sortType') == 'asc') ? 'red' : '#707072' }}" />
- </svg>
- <svg t="1611283709864" class="icon1" onclick="sort_func(this,'winlose','desc')"
- viewBox="0 0 1024 1024" version="1.1"
- xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
- <path
- 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"
- p-id="3149" fill="{{ ($request->input('sortBy') == 'winlose' && $request->input('sortType') == 'desc') ? 'red' : '#707071' }}" />
- </svg>
- </div>
- </th>
- <th>
- <div class="sort_rtp">
- 当日rtp
- <svg t="1611284352657" class="icon2" onclick="sort_func(this,'rtp','asc')"
- viewBox="0 0 1024 1024" version="1.1"
- xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
- <path
- 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"
- p-id="4119" fill="{{ ($request->input('sortBy') == 'rtp' && $request->input('sortType') == 'asc') ? 'red' : '#707072' }}" />
- </svg>
- <svg t="1611283709864" class="icon1" onclick="sort_func(this,'rtp','desc')"
- viewBox="0 0 1024 1024" version="1.1"
- xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
- <path
- 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"
- p-id="3149" fill="{{ ($request->input('sortBy') == 'rtp' && $request->input('sortType') == 'desc') ? 'red' : '#707071' }}" />
- </svg>
- </div>
- </th>
- <th>历史充值减提现</th>
- <th>关联用户充值历史减提现</th>
- <th>在线状态</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($list as $row)
- <tr>
- <td><a href='/admin/global/id_find?UserID={{ $row->UserID }}'>{{ $row->GameID }}</a></td>
- <td>{{ ($row->WinScore + $row->LostScore)/\App\Http\helper\NumConfig::NUM_VALUE }}</td>
- <td>{{ intval($row->rtp*100) }}%</td>
- <td>{{ $row->TotalRecharge - ($row->TotalWithdraw + $row->Score + $row->WithDrawWaitAudit)/\App\Http\helper\NumConfig::NUM_VALUE}}</td>
- <td>{{ $row->sameRW }}</td>
- <td>{{ $row->KindID === -1 ? '离线' : $gameServerNames[$row->KindID] ?? '' }}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="box-footer clearfix">
- {{ trans('messages.总共') }} <b>{{ $list->appends($request->all())->total() }}</b> {{ trans('messages.条,分为') }}<b>{{ $list->lastPage() }}</b> {{ trans('messages.页') }}
- {!! $list->links() !!}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- function sort_func(obj, sortBy, sortType) {
- if (sortBy === 'winlose') {
- $(".sort_winlose svg:eq(1)").children('path').attr('fill', '#707071');
- $(".sort_winlose svg:eq(0)").children('path').attr('fill', '#707071');
- $(obj).children('path').attr('fill', 'red');
- } else if (sortBy === 'rtp') {
- $(".sort_rtp svg:eq(1)").children('path').attr('fill', '#707071');
- $(".sort_rtp svg:eq(0)").children('path').attr('fill', '#707071');
- $(obj).children('path').attr('fill', 'red');
- }
- let url = new URL(window.location.href);
- url.searchParams.set('sortBy', sortBy);
- url.searchParams.set('sortType', sortType);
- window.location.href = url.toString();
- }
- </script>
- @endsection
|