@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.setting.manager.update')}}">
                {{ csrf_field() }}
                <input type="hidden" name="id" value="{{ $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="text" name="name" lay-verify="required" autocomplete="on" placeholder="请输入姓名" class="layui-input" value="{{ $info->name }}" maxlength="50"  id="phone" >
                        </div>
                    </div>
                    {{--<div class="layui-form-item">--}}
                        {{--<label class="layui-form-label"><strong class="item-required"></strong>经理类型：</label>--}}
                        {{--<div class="layui-input-block">--}}
                            {{--<input name="type" type="hidden" value="1"    @if($info->type == 1)   checked @endif  class="layui-input " disabled/>广告主经理--}}
                    <input name="type" type="hidden" value="1"     disabled/>
                            {{--<input name="type" type="radio" value="2"   @if($info->type == 2) checked   @endif  class="layui-input"  disabled/>媒体主经理--}}
                        {{--</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="phone"  autocomplete="on" placeholder="请输入经理手机" class="layui-input" value="{{ $info->phone }}" maxlength="50"  id="phone" >
                        </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="email"  autocomplete="on" placeholder="请输入经理邮箱" class="layui-input" value="{{ $info->email }}" maxlength="50"  style="display: inline-block;width: 30%;margin-right: 10px;" >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><strong class="item-required"></strong>经理QQ：</label>
                        <div class="layui-input-block">
                            <input type="text" name="qq"  autocomplete="on" placeholder="请输入经理QQ" class="layui-input" value="{{$info->qq}}" maxlength="50"  >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn"  lay-filter="demo1" lay-submit="">确 认</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
@section('script')
    <script>
        layui.use(['form','table'], function () {
            var form = layui.form;
            //监听提交
            form.on('submit(demo1)', function(data){
                return true;
            });
        });
    </script>
@endsection