@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>
                    用户总统计列表
                </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>
                                <input type="number" name="recharge_max" class="form-control" value="{{ $recharge_max ?? 300 }}" placeholder="充值上限">
                                <span style="padding-left: 10px">总提现 &gt;</span>
                                <input type="number" name="withdraw_min" class="form-control" value="{{ $withdraw_min ?? 1000 }}" placeholder="提现下限">
                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="搜索"/>&nbsp;&nbsp;
                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="7%">用户ID</th>
                                    <th width="10%">游戏昵称</th>
                                    <th width="10%">渠道</th>
                                    <th width="10%">总输赢</th>
                                    <th width="10%">总税收</th>
                                    <th width="10%">总提现</th>
                                    <th width="10%">总充值</th>
                                    <th width="10%">总下注</th>
                                    <th width="10%">总充值次数</th>
                                    <th width="10%">最后登录时间</th>
                                    <th width="10%">注册时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $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->TotalScore/100 }}</td>
                                        <td>{{ $v->Revenue/100 }}</td>
                                        <td>{{ $v->Withdraw/100 }}</td>
                                        <td>{{ $v->Recharge }}</td>
                                        <td>{{ $v->TotalBet/100 }}</td>
                                        <td>{{ $v->RechargeTimes }}</td>
                                        <td>{{ $v->LastLogonDate }}</td>
                                        <td>{{ $v->RegisterDate }}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                总共 <b>{{ $list->appends([
                                    'recharge_max'=>$recharge_max,
                                    'withdraw_min'=>$withdraw_min,
                                ])->total() }}</b> 条, 分为 <b>{{ $list->lastPage() }}</b> 页
                                {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection 