<!doctype html>
@extends('base.base')
@section('base')
<!-- 内容区域 -->
<style type="text/css">
    /*.table th {*/
    /*    padding: 0.5375rem;*/
    /*    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="get"
                              action='/admin/game/user/online_list'>
                            <span style="padding-left: 5px">{{ __('auto.游戏：') }}</span>
                            <select class="form-control" name="GameID" value="{{$GameID}}" id="select" >
                                <option value="">{{ __('auto.选择游戏') }}</option>
                                @foreach($games as $k=>$v)
                                    <option value="{{$k}}" @if($k==$GameID) selected @endif >{{$v}}</option>
                                @endforeach
                            </select>
                            <span style="padding-left: 5px">{{ __('auto.房间：') }}</span>
                            <select class="form-control" name="SortID" value="{{$SortID}}}" id="sortID">
                                <option value="">{{ __('auto.选择房间') }}</option>
                                @foreach($type as $k=>$v)
                                    <option value="{{$k}}" @if($k==$SortID) selected @endif >{{$v}}</option>
                                @endforeach
                            </select> &nbsp;&nbsp;
                            <span style="padding-left: 10px">{{ __('auto.用户ID：') }}</span>
                            <input class="form-control" type="text" name="uid" style="width: 10%; "
                                   value="{{$uid}}" placeholder="{{ __('auto.用户') }}ID">
                            <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
                            <a href="/admin/game/user/online_list"
                               class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}&{{ __('auto.刷新') }}</a>
                        </form>
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th width="6%">{{ __('auto.游戏') }}</th>
                                <th width="6%">{{ __('auto.房间') }}</th>
                                <th width="6%">{{ __('auto.用户') }}ID</th>
                                <th width="6%">{{ __('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->ServerName }}</td>
                                    <td>{{$v->SortID}}</td>
                                    <td ><a href="/admin/global/id_find?UserID={{$v->UserID}}">
                                            {{$v->GameID}}
                                        </a></td>
                                    <td>{{ $v->NickName}}</td>
                                    <td>{{ $v->Channel}}</td>
                                    <td>{{ $v->Score/100 }}</td>
                                    <td>{{$v->CollectDate}}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                        <div class="box-footer clearfix">
                            {{ __('auto.总共') }} <b>{{ $list->appends([
    'GameID'=>$GameID,
    'SortID' => $SortID,
    'uid' => $uid
    ])->total() }}</b>
                            {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
                            {!! $list->links() !!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@endsection
