@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>
                            <div style="float: right">
                                <a href="/admin/blacklist/history">{{ __('auto.黑名单记录') }}</a>
                            </div>
                            <form class="well form-inline margin-top-20" method="get" action=''>
                                <span style="padding-left: 10px" >{{ __('auto.用户GameID：') }}</span>
                                <input class="form-control" type="text" name="GameID" style="width: 10%; " value="{{$request->GameID}}">
                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
                                <a href="/admin/blacklist" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th>{{ __('auto.会员') }}ID</th>
                                    <th>{{ __('auto.昵称') }}</th>
                                    <th>{{ __('auto.限制条件') }}</th>
                                    <th>{{ __('auto.添加操作人') }}</th>
                                    <th>{{ __('auto.添加备注') }}</th>
                                    <th>{{ __('auto.加入黑名单时间') }}({{ __('auto.中国') }})</th>
                                    <th>{{ __('auto.操作') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k=>$v)
                                    <tr>
                                        <td><a href="/admin/global/id_find?UserID={{$v->UserID}}">
                                                {{ $v->GameID }}
                                            </a></td>
                                        <td>{{ $v->accountsInfo->NickName }}</td>
                                        <td>{{ $v->Config }}</td>
                                        <td>{{ $v->admin->nickname }}</td>
                                        <td>{{ $v->Comment }}</td>
                                        <td>{{ $v->CreatedAtChina }}</td>
                                        <td>
                                            <a href="/admin/blacklist/config/{{$v->ID}}"
                                               class="btn btn-sm btn-gradient-dark layer-dialog">{{ __('auto.修改条件') }}</a>
                                            <a href="/admin/blacklist/remove/{{$v->ID}}"
                                               class="btn btn-sm btn-gradient-warning layer-switch"
                                            >{{ __('auto.解除黑名单') }}</a>
                                        </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
