@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>
                            <form class="well form-inline margin-top-20" method="get" action='/admin/card/give/record'>
                                <spen style="padding-left: 10px" >{{ __('auto.选择时间：') }}</spen>
                                <input type="date"  step="01" id="start_time" name="start_time" class="form-control" value="{{$start_time}}" />&nbsp;&nbsp;
                                <input type="date"  step="01" id="end_time" name="end_time" class="form-control" value="{{$end_time}}" />&nbsp;&nbsp;
                                <spen style="padding-left: 10px" >{{ __('auto.游戏ID：') }}</spen>
                                <input class="form-control" type="text" name="game_id" style="width: 10%; " value="{{$game_id}}" placeholder="{{ __('auto.输入游戏') }}ID">&nbsp;&nbsp;
                                <spen style="padding-left: 10px" >{{ __('auto.转账原因：') }}</spen>
                                <input class="form-control" type="text" name="reason" style="width: 10%; " value="{{$reason}}" placeholder="{{ __('auto.输入转账原因') }}">&nbsp;&nbsp;
                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
                                <a href="/admin/card/give/record" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="6%">{{ __('auto.游戏') }}ID</th>
                                    <th width="4%">{{ __('auto.转账数量') }}</th>
                                    <th width="6%">{{ __('auto.转账原因') }}</th>
                                    <th width="6%">{{ __('auto.操作时间') }}</th>
                                    <th width="6%">{{ __('auto.操作账号') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k=>$v)
                                    <tr>
                                        <td>{{ $v->GameID }}</td>
                                        <td>{{ $v->Amount }}</td>
                                        <td>{{ $v->Reason }}</td>
                                        <td>{{ $v->CreatedAt }}</td>
                                        <td>{{ $v->Admin }}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
                                {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
