@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.关联') }}IP
                </h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">{{ __('auto.关联') }}IP</a></li>
                        <li class="breadcrumb-item active" aria-current="page">{{ __('auto.关联') }}IP</li>
                    </ol>
                </nav>
            </div>

            <div class="row">
                <div class="col-lg-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                            <a href="javascript:history.back(-1)">{{ __('auto.返回上一页') }}</a>
                            <h3 class="card-title">{{ __('auto.关联IP：') }}{{$ip ?? ""}}</h3>

                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <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>
                                    <th width="6%">{{ __('auto.总充值') }}</th>
                                    <th width="6%">{{ __('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->NickName}}</td>
                                        <td>{{$v->Channel}}</td>
                                        <td>{{$v->RegisterDate}}</td>
                                        <td>{{$v->LastLogonDate}}</td>
                                        <td>{{$v->Recharge ?? 0}}</td>
                                        <td>{{($v->Withdraw ?? 0) / 100}}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                {{ __('auto.总共') }} <b>{{ $list->appends([
                                        'list' => $list,
                                        'id'=>$id,
                                        'RegisterIP'=>$ip
                                    ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
                                {!! $list->links() !!}
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>

@endsection
