@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>
                    {{ __('auto.提充比查询') }}
                </h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">{{ __('auto.提现管理') }}</a></li>
                        <li class="breadcrumb-item active" aria-current="page">{{ __('auto.提充比查询') }}</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">{{ __('auto.提充比查询') }}</h4>
                            <form class="well form-inline margin-top-20" method="get" action="">
                                <div class="form-group">
                                    <label for="">{{ __('auto.会员') }}ID:</label>
                                    <input class="form-control" type="text" name="GameID" value="{{$request->input('GameID')}}">
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.渠道') }}:</label>
                                    @component('components.select', [
                                        'name' => 'Channel',
                                        'options' => $channels,
                                        'default' => $request->input('Channel')
                                    ])
                                    @endcomponent
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.昵称') }}:</label>
                                    <input class="form-control" type="text" name="NickName" value="{{$request->input('NickName')}}">
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.注册时间') }}:</label>
                                    <input class="form-control" type="datetime-local" name="RegisterDateStart"
                                           value="{{$request->input('RegisterDateStart')}}">-
                                    <input class="form-control" type="datetime-local" name="RegisterDateEnd"
                                           value="{{$request->input('RegisterDateEnd')}}">
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.最后登录时间') }}:</label>
                                    <input class="form-control" type="datetime-local" name="LastLogonDateStart"
                                           value="{{$request->input('LastLogonDateStart')}}">-
                                    <input class="form-control" type="datetime-local" name="LastLogonDateEnd"
                                           value="{{$request->input('LastLogonDateEnd')}}">
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.排序') }}:</label>
                                    @component('components.select', [
                                        'name' => 'sort',
                                        'options' => [
                                            '' => '',
                                            '(Recharge-Withdraw/100) desc' => __('auto.茶叶减咖啡').'['.__('auto.升序').']',
                                            '(Recharge-Withdraw/100)' => __('auto.茶叶减咖啡').'['.__('auto.降序').']',
                                            'DrawBase desc' => __('auto.可茶叶金额').'['.__('auto.升序').']',
                                            'DrawBase' => __('auto.可茶叶金额').'['.__('auto.降序').']',
                                        ],
                                        'default' => $request->input('sort')
                                    ])
                                    @endcomponent
                                </div>
                                <div class="form-group">
                                    <button class="btn btn-sm btn-gradient-dark">{{ __('auto.搜索') }}</button>
                                    <a href="/admin/user/money_deviation"
                                       class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
                                    <a href="/admin/user/money_deviation?export=1&{{http_build_query($request->all())}}"
                                       class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
                                </div>
                            </form>
                            <div>
                                {{ __('auto.全部数据：') }}<br>
                                {{ __('auto.茶叶大于咖啡玩家人数：') }}{{$total}} {{ __('auto.涉及茶叶金额/咖啡金额') }}:{{$money}}
                            </div>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th>{{ __('auto.会员') }}ID</th>
                                    <th>{{ __('auto.昵称') }}</th>
                                    <th>{{ __('auto.渠道') }}</th>
                                    <th>{{ __('auto.最后登录时间（当地）') }}</th>
{{--                                    <th>{{ __('auto.最后登录时间（中国）') }}</th>--}}
                                    <th>{{ __('auto.手机号') }}</th>
                                    <th>{{ __('auto.余额') }}</th>
                                    <th>{{ __('auto.咖啡减茶叶（累计）') }}</th>
                                    <th>{{ __('auto.今日/历史充值') }}</th>
                                    <th>{{ __('auto.今日/历史茶叶') }}</th>
                                    <th>{{ __('auto.今日/历史彩金') }}</th>
                                    <th>{{ __('auto.可茶叶金额') }}</th>
                                    <th>IP</th>
                                    <th>{{ __('auto.在线状态') }}</th>
                                    <th>{{ __('auto.注册日期（当地）') }}</th>
{{--                                    <th>{{ __('auto.注册日期') }}({{ __('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->LastLogonDate}}</td>
{{--                                        <td>{{$v->LastLogonDateCN}}</td>--}}
                                        <td>{{$v->PhoneNum}}</td>
                                        <td>{{$v->Score}}</td>
                                        <td>{{$v->deviation}}</td>
                                        <td>{{$v->RechargeToday}}/{{$v->Recharge}}</td>
                                        <td>{{$v->WithdrawToday}}/{{$v->Withdraw}}</td>
                                        <td>{{$v->HandselToday}}/{{$v->Handsel}}</td>
                                        <td>{{$v->DrawBase}}</td>
                                        <td>{{$v->IP}}</td>
                                        <td>{{$v->Online}}</td>
                                        <td>{{$v->RegisterDate}}</td>
{{--                                        <td>{{$v->RegisterDateCN}}</td>--}}
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                {{ __('auto.总共') }} <b>{{ $list->appends($request->all())->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
                                {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
