@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>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="15%">{{ __('auto.今日税收') }}</th>
                                    <th width="15%">{{ __('auto.今日发放') }}</th>
                                    <th width="15%">{{ __('auto.今日机器人输赢') }}</th>
                                    <th width="15%">{{ __('auto.今日活跃资金量') }}</th>
                                    <th width="15%">{{ __('auto.今日回收总额') }}</th>
                                    <th width="15%">{{ __('auto.今日流通量总额') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            {{$data['today_revenue']}}
                                        </td>
                                        <td>
                                            {{$data['gold_sum']}}
                                        </td>
                                        <td>
                                            {{$data['robot_gold']}}
                                        </td>
                                        <td>
                                            {{$data['today_active_gold']}}
                                        </td>
                                        <td>
                                            {{$data['today_recovery_gold']}}
                                        </td>
                                        <td>
                                            {{$data['today_circulate_gold']}}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="11%">{{ __('auto.平台金币总额') }}</th>
                                    <th width="11%">{{ __('auto.经销商库存') }}</th>
                                    <th width="11%">{{ __('auto.计提总金额') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>{{$data['platform_gold']}}</td>
                                        <td>{{$data['distributor_gold']}}</td>
                                        <td>{{$data['revenue_gold']}}</td>
                                    </tr>
                                </tbody>
                            </table>
                            <!-- <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="11%">新用户注册</th>
                                    <th width="11%">每日签到</th>
                                    <th width="11%">商城兑换</th>
                                    <th width="11%">全民推广兑换</th>
                                    <th width="11%">充值发放</th>
                                    <th width="11%">低保破产赠送</th>
                                    <th width="11%">任务获得</th>
                                    <th width="11%">周卡月卡发放</th>
                                    <th width="11%">每日分享</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>{{$data['new_user_count']}}</td>
                                        <td>{{$data['bonus_gold']}}</td>
                                        <td>{{$data['exchange_gold']}}</td>
                                        <td>{{$data['spread_gold']}}</td>
                                        <td>{{$data['recharge_gold']}}</td>
                                        <td>{{$data['succour_gold']}}</td>
                                        <td>{{$data['mission_gold']}}</td>
                                        <td>{{$data['week_gold']}}</td>
                                        <td>{{$data['share_gold']}}</td>
                                    </tr>
                                </tbody>
                            </table> -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(function(){
            cutStr(50);
        });
        function update(id){
            myConfirm("{{ __('auto.是否继续') }}?",function(){
                var nullity= document.getElementById('nullity').value;
                myRequest("/admin/user/freeze/"+id,"post",{nullity:nullity},function(res){
                    layer.msg(res.msg)
                    setTimeout(function(){
                        window.location.reload();
                    },1500)
                });
            });
        }
        
    </script>
@endsection
