@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">
                        <center>
                            <a href="/admin/global/dk_userlist" style="color: white">
                                <button type="button" class="btn btn-sm btn-gradient-primary btn-icon-text">
                                    {{ __('auto.详细用户列表查看') }}
                                </button>
                            </a>
                        </center>
                        <div class="card-body">
                            <h4 class="card-title">{{ __('auto.全局报表') }}</h4>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <td width="6%">{{ __('auto.今日总流水：') }}{{$data['flowing_water']}}</td>
                                    <td width="6%">{{ __('auto.今日总税收：') }}{{$data['Revenue']}}</td>
                                    <td width="6%">{{ __('auto.今日总充值：') }}{{$data['pay_sum']}}</td>
                                    <td width="6%">{{ __('auto.今日总彩金：') }}{{$data['cellData']}}</td>
                                    <td width="6%">{{ __('auto.今日总茶叶：') }}</td>
                                    <td width="6%">{{ __('auto.今日杀率：') }}{{$data['shalv']}} %</td>
                                </tr>
                                <tr>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-lg-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                            <form class="well form-inline margin-top-20" method="get" action='/admin/global/dk'>
                                @csrf
                                <spen style="padding-left: 10px">{{ __('auto.选择时间：') }}</spen>
                                <input type="datetime-local" step="01" name="start_time" class="form-control"
                                       value="{{$start_time}}"/>&nbsp;&nbsp;
                                <input type="datetime-local" step="01" name="end_time" class="form-control"
                                       value="{{$end_time}}"/>&nbsp;&nbsp;
                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.查询') }}"/>&nbsp;&nbsp;
                                <a href="/admin/global/report"
                                   class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
                                <select class="form-control" name="date" style="color: black">
                                    <option value="">{{ __('auto.选择时间') }}</option>
                                    <option value="1" @if ($date == 1)
                                        selected
                                    @endif>{{ __('auto.今日') }}</option>
                                    <option value="2" @if ($date == 2)
                                        selected
                                    @endif>{{ __('auto.昨日') }}</option>
                                    <option value="3" @if ($date == 3)
                                        selected
                                    @endif>{{ __('auto.本周') }}</option>
                                    <option value="4" @if ($date == 4)
                                        selected
                                    @endif>{{ __('auto.本月') }}</option>
                                </select>
                            </form>

                            <table class="table table-bordered" style="margin-top: 10px">
                                <tr>
                                    <td><b>{{ __('auto.流水：') }}{{$gameRoomInfo->flowing_water}}</b></td>
                                    <td><b>{{ __('auto.平台输赢：') }}{{$gameRoomInfo->win_lose}}</b></td>
                                    <td><b>{{ __('auto.税收：') }}{{$gameRoomInfo->Revenue}}</b></td>
                                </tr>
                            </table>
                            <br>
                            <div>
                                <table class="table table-bordered">

                                    <tr>
                                        <td>{{ __('auto.游戏房间') }}</td>
                                        <td>{{ __('auto.流水') }}</td>
                                        <td>{{ __('auto.平台输赢') }}</td>
                                        <td>{{ __('auto.税收') }}</td>
                                    </tr>
                                    @foreach($game_list as $k=>$v)
                                        <tr>
                                            <td>{{$v->ServerName}}</td>
                                            <td>{{$v->liushui}}</td>
                                            <td>{{$v->Score}}</td>
                                            <td>{{$v->ri_Revenue}}</td>
                                        </tr>
                                    @endforeach
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
    <script>
        function del(id) {
            myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
                myRequest("/admin/accusation/del/" + id, "post", {}, function (res) {
                    layer.msg(res.msg)
                    setTimeout(function () {
                        window.location.reload();
                    }, 1500)
                });
            });
        }

    </script>
@endsection
