@extends('base.base')
@section('base')
    <!-- 内容区域 -->
    <style type="text/css">
        .table th {
            padding: 0.8375rem;
            vertical-align: top;
            border-top: 1px solid #ebedf2;
        }
    </style>
    <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>{{ __('auto.玩家区分') }}</th>
                                    <th>{{ __('auto.控制回收总金额') }}</th>
                                    <th>{{ __('auto.触发单控实际回收金额') }}</th>
                                    <th>{{ __('auto.控制吐分总金额') }}</th>
                                    <th>{{ __('auto.触发单控实际给出金额') }}</th>
                                    <th>{{ __('auto.总和') }}</th>
                                </tr>
                                <tr>
                                    <td>{{ __('auto.普通玩家') }}</td>
                                    <td>{{$ptAccounts}}</td>
                                    <td>{{$ptLoseAccounts}}</td>
                                    <td>{{-$ptWinAccounts->ControlScore ?? 0}}</td>
                                    <td>{{$ptWinAccounts->EffectiveScore ?? 0}}</td>
                                    <td>{{$ptTotal}}</td>
                                </tr>
                                <tr>
                                    <td>{{ __('auto.官方玩家') }}</td>
                                    <td>{{$gfAccounts}}</td>
                                    <td>{{$gfLoseAccounts}}</td>
                                    <td>{{-$gfWinAccounts->ControlScore ?? 0}}</td>
                                    <td>{{$gfWinAccounts->EffectiveScore ?? 0}}</td>
                                    <td>{{$gfTotal}}</td>
                                </tr>
                                </thead>
                            </table>

                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
@endsection
