@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>
                            <form class="well form-inline margin-top-20" method="post" action='/admin/control/monitor'>
                                @csrf
                                <spen style="padding-left: 10px" >{{ __('auto.选择时间：') }}</spen>
                                <input type="date" step="01"  name="start_time" class="form-control" value="{{$start_time}}"/>&nbsp;&nbsp;
                                <input type="date" step="01" name="end_time" class="form-control" value="{{$end_time}}"/>&nbsp;&nbsp;

                                <select class="form-control" name="date"  style="color: black">
                                    <option value="">{{ __('auto.选择时间') }}</option>
                                    <option value="1" >{{ __('auto.今日') }}</option>
                                    <option value="2" >{{ __('auto.昨日') }}</option>
                                    <option value="3" >{{ __('auto.本周') }}</option>
                                    <option value="4" >{{ __('auto.本月') }}</option>
                                </select>
                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.查询') }}"/>&nbsp;&nbsp;
                                <a href="/admin/control/monitor" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
                                <a href="/admin/control/monitor?excel=1&start_time={{$start_time}}&end_time={{$end_time}}" class="btn btn-sm btn-gradient-dark btn-icon-text">{{ __('auto.导出') }}</a>&nbsp;&nbsp;
                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="6%">{{ __('auto.单控池总库存：') }}{{$total->TotalPool}}</th>
                                    <th width="6%">{{ __('auto.单控池累计成功回收：') }}{{$total->TotalIncome}}</th>
                                    <th width="6%">{{ __('auto.单控池累计成功吐分：') }}{{$total->TotalExpend}}</th>
                                </tr>
                                <tr>
                                    <th width="6%">TP{{ __('auto.单控池总库存：') }}{{$tp->TotalPool}}</th>
                                    <th width="6%">TP{{ __('auto.单控池累计成功回收：') }}{{$tp->TotalIncome}}</th>
                                    <th width="6%">TP{{ __('auto.单控池累计成功吐分：') }}{{$tp->TotalExpend}}</th>
                                </tr>
                                <tr>
                                    <th width="6%">RM{{ __('auto.单控池总库存：') }}{{$rm->TotalPool}}</th>
                                    <th width="6%">RM{{ __('auto.单控池累计成功回收：') }}{{$rm->TotalIncome}}</th>
                                    <th width="6%">RM{{ __('auto.单控池累计成功吐分：') }}{{$rm->TotalExpend}}</th>
                                </tr>
                                </thead>
                            </table>

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


        </div>
    </div>
@endsection
