@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>
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="8%">{{ __('auto.配置') }}ID</th>
                                    <th width="8%">{{ __('auto.游戏级别') }}</th>
                                    <th width="8%">{{ __('auto.水池') }}</th>
                                    <th width="8%"></th>
                                    <th width="8%"></th>
                                    <th width="8%"></th>
                                    <th width="8%"></th>
                                    <th width="8%"></th>
                                    <th width="8%"></th>
                                    <th width="8%"></th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k=>$v)
                                    <tr>
                                        <td>{{ $v->GameID }}</td>
                                        <td>{{ $v->SortName }}</td>
                                        @foreach($v->RoomStock as $v1)
                                            <td>{{$v1}}</td>
                                        @endforeach
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                {{ __('auto.总共') }} <b>{{ $list->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
                                {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        function edit(id,level){
            var page = layer.open({
                type: 2,
                title: '{{ __('auto.配置修改') }}',
                shadeClose: true,
                shade: 0.8,
                area: ['70%', '90%'],
                content: '/admin/gold/gameconfig/update/'+id+'?level='+level
            });
        }
    </script>
@endsection
