@extends('base.base')
@section('base')
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title">用户下级查询</h3>
                    </div>
                    <div class="card-body">
                        <form class="form-inline mb-4" method="get" action="">
                            <div class="form-group mx-sm-3 mb-2">
                                <label for="UserID" class="mr-2">会员ID：</label>
                                <input type="text" class="form-control" name="GameID" id="GameID" value="{{ isset($request) ? $request->input('GameID') : '' }}">
                            </div>
                            <button type="submit" class="btn btn-primary mb-2 mr-2">搜索</button>
                            <a href="{{ route('admin.extension_new.bind_list') }}" class="btn btn-warning mb-2">清空</a>
                        </form>

                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th>会员ID</th>
                                    <th>注册时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list??[] as $v)
                                    <tr>
                                        <td>
                                            <a href="/admin/global/id_find?UserID={{$v->UserID}}">
                                                {{$v->GameID}}
                                            </a>
                                        </td>
                                        <td>{{$v->RegisterDate??""}}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                        <div class="card-footer clearfix">
                            @if(isset($list))
                            总共 <b>{{ $list->appends($request->all())->total() }}</b> 条,分为<b>{{ $list->lastPage() }}</b>页
                            {{ $list->links() }}
                            @endif
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection