@extends('vip.layouts')
@section('content')

<form class="layui-form" action="{{ url()->full() }}" id="submitForm" name="submitForm" method="post" eventType=eventAjaxForm>
{!! csrf_field() !!}

			<div class="layui-form-item">
                <label class="layui-form-label">{{ trans('wagent.agent_name') }}:</label>
                <div class="layui-input-block">
                <input type="text" name="agent_name"   id="agent_name"  required  lay-verify="" placeholder="" autocomplete="off" value="@isset($agent_name) {{ $wagent['agent_name'] }} @endisset" class="layui-input">
                </div>
            </div>
			<div class="layui-form-item">
                <label class="layui-form-label">{{ trans('wagent.money') }}:</label>
                <div class="layui-input-block">
                <input type="text" name="money"   id="money"  required  lay-verify="" placeholder="" autocomplete="off" value="@isset($wagent) {{ $wagent['money'] }} @endisset" class="layui-input">
                </div>
            </div>
			<div class="layui-form-item">
                <label class="layui-form-label">{{ trans('wagent.frozen_money') }}:</label>
                <div class="layui-input-block">
                <textarea  name="frozen_money"   id="frozen_money"    lay-verify="" placeholder="" autocomplete="off" class="layui-input" >@isset($wagent) {{ $wagent['frozen_money'] }} @endisset </textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ trans('wagent.agent_pre') }}:</label>
                <div class="layui-input-block">
                <textarea  name="agent_pre"   id="agent_pre"    lay-verify="" placeholder="" autocomplete="off" class="layui-input" >@isset($wagent) {{ $wagent['agent_pre'] }} @endisset </textarea>
                </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">{{ trans('wagent.status') }}:</label>
              <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="正常" checked >
                <input type="radio" name="status" value="2" title="禁用">
                <input type="radio" name="status" value="3" title="待启用">
                <input type="radio" name="status" value="4" title="停用">
              </div>
            </div>

    @if(S('ACTION')!='view')
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit lay-filter="submitForm">立即提交</button>
          <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
      </div>
    @endif
    </form>

<script>
    layui.use(['form'], function() {
        var form = layui.form;
    });

// function cbFormSuccess(data){
// 	layer.msg(data.msg);
// 	setTimeout(function(){
//     window.location.href='/admin/Sportsfoot/index';
// 		// parent.window.location.reload();
// 	},2500);
// }
// lay('.test-item').each(function(){
//     laydate.render({
//         elem: this
//         ,type: 'datetime'
//         ,trigger: 'click'
//     });
// });
</script>
@endsection
