@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/friends/detail'>
                                <spen style="padding-left: 10px" >{{ __('auto.亲友圈ID：') }}</spen>
                                <input class="form-control" type="text" name="show_id" style="width: 10%; " value="{{$show_id}}" placeholder="{{ __('auto.输入亲友圈') }}ID">
                                <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;
                                <span style="padding-left: 5px" >{{ __('auto.游戏：') }}</span >
                                <select class="form-control" name="kind_id" value="{{$kind_id}}" style="color: black">
                                    <option value="">{{ __('auto.请选择游戏') }}</option>
                                    @foreach($game_name as $k=>$v)
                                        <option value="{{$k}}" @if($k==$kind_id) selected @endif>{{$v}}</option>
                                    @endforeach
                                </select>
                                <spen style="padding-left: 10px" >{{ __('auto.选择时间：') }}</spen>
                                <input type="date"  step="01" name="start_time" class="form-control" value="{{$start_time}}" />&nbsp;&nbsp;
                                <input type="date"  step="01" name="end_time" class="form-control" value="{{$end_time}}" />&nbsp;&nbsp;
                                <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
                                <a href="/admin/card/friends/detail" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
                                <a href="/admin/card/friends/detail?excel=1&game_id={{$game_id}}&show_id={{$show_id}}&kind_id={{$kind_id}}&start_time={{$start_time}}&end_time={{$end_time}}" class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
                            </form>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="6%">{{ __('auto.时间') }}</th>
                                    <th width="4%">{{ __('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->date }}</td>
                                        <td>{{ $v->ShowID }}</td>
                                        <td>{{ $v->NickName }}</td>
                                        <td>{{ $v->countU }}</td>
                                        <td>{{ $v->Jushu }}</td>
                                        <td>{{ $v->roomcard }}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
