@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-settings"></i>
                    </span>
                    Game Data Rank
                </h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">User Game Data</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Game Data Rank</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">Game Data Rank</h4>
                            <form class="well form-inline margin-top-20" method="get" action='/admin/game_data/rank'>
                                <spen style="padding-left: 10px">{{ __('auto.选择时间：') }}</spen>
                                <input type="date" step="01" name="date" class="form-control"
                                       value="{{$date}}"/>&nbsp;&nbsp;
                                <spen style="padding-left: 10px">{{ __('auto.选择排序：') }}</spen>
                                <select class="form-control" name="sort" value="{{$sort}}" style="color: black">
                                    <option value="">{{ __('auto.选择状态') }}</option>
                                    @foreach($rank as $k=>$v)
                                        <option value="{{$k}}" @if($k==$sort) selected @endif>{{$v}}</option>
                                    @endforeach
                                </select>

                                <span style="padding-left: 10px" >{{ __('auto.渠道名称：') }}</span>
                                <select class="form-control" name="Channel" value="{{$Channel}}" style="color: black">
                                    <option value="">{{ __('auto.全部渠道') }}</option>
                                    @foreach($channels as $key=>$val)
                                        <option value="{{$val}}" @if (  $Channel == $val )
                                            selected
                                            @endif>{{$val}}</option>
                                    @endforeach

                                </select>

                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;

                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="7%">{{ __('auto.用户') }}ID</th>
                                    <th width="10%">{{ __('auto.游戏昵称') }}</th>
                                    <th width="10%">{{ __('auto.玩家渠道') }}</th>

                                    <th width="10%">Win</th>



                                    <th width="10%">MaxWinScore</th>

                                    <th width="10%">MaxDrawBase</th>

                                    <th width="10%">TotalBet</th>

                                    <th width="10%">Revenue</th>

                                    <th width="10%">Recharge</th>

                                    <th width="10%">Withdraw</th>


                                    <th width="10%">{{ __('auto.最后登录时间') }}</th>
                                    <th width="10%">{{ __('auto.注册时间') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k=>$v)
                                    <tr>
                                        <td>
                                            <a href="/admin/global/id_find?UserID={{$v->UserID}}">{{$v->GameID}}</a>
                                        </td>
                                        <td>{{ $v->NickName }}</td>
                                        <td>{{ $v->Channel }}</td>

                                        <td>{{ $v->Score/100 }}</td>
                                        <td>{{ $v->MaxWinScore/100 }}</td>
                                        <td>{{ $v->MaxDrawBase/100 }}</td>
                                        <td>{{ $v->TotalBet/100 }}</td>
                                        <td>{{ $v->Revenue/100 }}</td>
                                        <td>{{ $v->Recharge }}</td>
                                        <td>{{ $v->Withdraw/100 }}</td>

                                        <td>{{ $v->LastLogonDate }}</td>
                                        <td>{{ $v->RegisterDate }}</td>

                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                {{ __('auto.总共') }}
                                <b>{{ $list->appends([
    'date'=>$date,
    'sort'=>$sort,
        'Channel'=>$Channel,

    ])->total() }}</b>
                                {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
                                {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


@endsection
