@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 >{{ __('auto.认定新手税收参数') }}</th>
                                    <th >{{ __('auto.新手计算参数') }}</th>
                                    <th >{{ __('auto.初始赠送金币数参数') }}</th>
                                    <th>{{ __('auto.新手赠送增量上限参数') }}</th>
                                    <th >{{ __('auto.等份值') }}</th>
                                    <th >{{ __('auto.充值下限') }}</th>
                                    <th >{{ __('auto.充值上限') }}</th>
                                    <th >{{ __('auto.用户控制上限参数百分比') }}</th>
                                    <th >{{ __('auto.用户控制下限参数百分比') }}</th>
                                    <th >{{ __('auto.充值基准系数参数百分比') }}</th>
                                    <th >{{ __('auto.茶叶基准系数参数百分比') }}</th>
                                    <th >{{ __('免费用户最多赢分') }}</th>
                                    <th >{{ __('充值减值') }}</th>
                                    <th >{{ __('非vip用户跳出新手期后的个控') }}</th>
                                   <th>{{ __('auto.是否生效') }}</th>
                                   <th>{{ __('auto.操作') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k=>$v)
                                    <tr>
                                        <td>{{ $v->NewManFee }}</td>
                                        <td>{{ $v->NewManParam }}</td>
                                        <td>{{ $v->GrountGold }}</td>
                                        <td>{{ $v->GrountGoldMax }}</td>
                                        <td>{{ $v->ControlParam }}</td>

                                        <th >{{ $v->RechargeMin }}</th>
                                        <th >{{ $v->RechargeMax }}</th>

                                        <td>{{ $v->UserControlWin }}</td>
                                        <td>{{ $v->UserControlLost }}</td>
                                        <td>{{ $v->PayCalPercent }}</td>
                                        <td>{{ $v->DrawCalPercent }}</td>
                                        <td>{{ $v->FreeWinMaxGold }}</td>
                                        <td>{{ $v->RechargeReduce }}</td>
                                        <td>{{ $v->FreeUserValue }}</td>

                                        <td>
                                            @if ($v->Status == 1)
                                                {{ __('auto.生效') }}
                                            @else
                                                {{ __('auto.无效') }}
                                            @endif
                                        </td>
                                        <td>
                                            <button class="btn btn-sm btn-gradient-dark" onclick="update({{$v->ID}})">{{ __('auto.修改') }}</button>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
{{--                            <div class="box-footer clearfix">--}}
{{--                                {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}--}}
{{--                                {!! $list->links() !!}--}}
{{--                            </div>--}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        function update(ID) {
            var page = layer.open({
                type: 2,
                title: '{{ __('auto.修改配置') }}',
                shadeClose: true,
                offset: 't',
                shade: 0.8,
                area: ['80%', '90%'],
                content: '/admin/Control/control_config_info_update/'+ ID
            });
        }


    </script>
@endsection
