@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>
            </div>
            <div class="row">
                <div class="col-lg-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                            <h4>{{ __('auto.包名') }}: {{$config->PackageName}}</h4>
                            <form class="forms-sample form-ajax" id="form">
                                <div class="form-group">
                                    <label for="">{{ __('auto.是否启用当前配置') }}:</label>
                                    @component('components.radio', ['name' => 'UrlStatus',
                                    'options' => [1 => __('auto.开启'), 0 => __('auto.关闭')], 'default' => $config->UrlStatus])
                                    @endcomponent
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.启用分享') }}:</label>
                                    @component('components.radio', ['name' => 'UrlSelect',
                                    'options' => [1 => __('auto.普通分享') , 2 =>  __('auto.裂变分享') ], 'default' => $config->UrlSelect])
                                    @endcomponent
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.普通分享地址') }}:</label>
                                    <input class="form-control" type="text" name="ShareUrl" value="{{$config->ShareUrl}}">
                                </div>
                                <div class="form-group">
                                    <label for="">{{ __('auto.裂变分享地址') }}:</label>
                                    <input class="form-control" type="text" name="SpreadShareUrl" value="{{$config->SpreadShareUrl}}">
                                </div>
                                <div class="form-group">
                                    <button class="btn btn-sm btn-gradient-primary">{{ __('auto.提交') }}</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
