@extends('admin.layouts.base')

@section('content')
    <div class="layui-card">
        <div class="layui-card-header">代理等级配置</div>
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" method="post" action="{{ route('admin.agent.setting.update') }}">
                {{ csrf_field() }}
                <input type="hidden" value="{{$info->id}}" name="id">
                <div style="border:1px solid green; margin-top: 20px;padding: 20px 0px 20px 0px;">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><strong class="item-required">*</strong>等级名称：</label>
                        <div class="layui-input-block">
                            <input type="number" name="name" lay-verify="required" autocomplete="on" placeholder="请输入姓名" class="layui-input" value="{{$info->name}}" maxlength="50" >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><strong class="item-required">*</strong>等级条件</label>
                        <div class="layui-input-block">
                            <input type="number" name="limit" lay-verify="required" autocomplete="on" placeholder="" class="layui-input" value="{{$info->limit}}"   >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><strong class="item-required">*</strong>优惠比例</label>
                        <div class="layui-input-block">
                            <input type="text" name="sale" lay-verify="required" autocomplete="on" placeholder="" class="layui-input" value="{{$info->sale}}" maxlength="50"  >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"style="width: 100px;"><strong class="item-required">*</strong>是否启用</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status"   value="1" title="启用"  @if($info->status == 1 ) checked  @endif >
                            <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i>
                                <div>启用</div>
                            </div>
                            <input type="radio" name="status"   value="0" title="禁用"  @if($info->status == 0 ) checked  @endif >
                            <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i>
                                <div>禁用</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layui-layout-admin">
                        <div class="layui-input-block">
                            <div class="layui-footer" style="left: 0;">
                                <button type="submit" class="layui-btn" lay-submit="" lay-filter="*">确 认</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
