@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>
                    VIP{{ __('auto.卡支付渠道修改') }}
                </h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">VIP{{ __('auto.卡管理') }}</a></li>
                        <li class="breadcrumb-item active" aria-current="page">VIP{{ __('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.档位：') }}{{$monthCard->CardName}}</h4>

                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="5%">{{ __('auto.渠道名称') }}</th>
                                    <th width="8%">{{ __('auto.档位显示开关') }}</th>
                                </tr>
                                </thead>
                                <tbody>

                                @foreach($monthCardChannels as $k=>$v)
                                    <tr>
                                        <td>{{ $v['name'] }}</td>
                                        <td>
                                            <a href="/admin/recharge/month_card_channel_switch/{{$monthCard['CardID']}}/{{$v['id']}}"
                                               class="layer-switch btn btn-sm {{$v['status'] ? "btn-danger" : "btn-primary"}}">
                                                {{$v['status'] ? '{{ __('auto.关闭') }}' : '{{ __('auto.开启') }}'}}
                                            </a>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
