@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>
            </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 action="" class="form-inline">
                                <div class="form-group">
                                    <label for="">{{ __('auto.会员') }}ID:</label>
                                    <input type="text" class="form-control" name="GameID" value="{{$request->input('GameID')}}">
                                </div>
                                <div class="form-group">
                                    <button class="btn btn-sm btn-primary">{{ __('auto.搜索') }}</button>
                                </div>
                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th>{{ __('auto.添加时间') }}</th>
                                    <th>{{ __('auto.玩家') }}ID</th>
                                    <th>{{ __('auto.玩家类型') }}</th>
                                    <th>{{ __('auto.添加额度') }}</th>
                                    <th>{{ __('auto.操作人') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k=>$v)
                                    <tr>
                                        <td>{{$v->create_time}}</td>
                                        <td><a href="/admin/global/id_find?UserID={{$v->accountInfo?$v->accountInfo->UserID:""}}">
                                                {{ $v->accountInfo?$v->accountInfo->GameID:"" }}
                                            </a></td>
                                        <td>{{ in_array($v->user_id, $officials) ?  __('auto.官方')  :  __('auto.普通')  }}</td>
                                        <td>{{ round($v->draw_base/100, 2) }}</td>
                                        <td>{{ $v->admin?$v->admin->nickname:"unknown" }}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                {{ __('auto.总共') }} <b>{{ $list->appends($request->all())->total() }}</b> {{ __('auto.条') }},
                                {{ __('auto.分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }} {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
