@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('priv_role.role_id') }}:</label>
                <div class="layui-input-block">
                <input type="text" name="role_id"   id="role_id"  required  lay-verify="" placeholder="" autocomplete="off" value="@isset($priv_role) {{ $priv_role['role_id'] }} @endisset" class="layui-input">
                </div>
            </div>







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







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







			             <div class="layui-form-item">
                <label class="layui-form-label">{{ trans('priv_role.role_name') }}:</label>
                <div class="layui-input-block">
                <input type="text" name="role_name"   id="role_name"  required  lay-verify="" placeholder="" autocomplete="off" value="@isset($priv_role) {{ $priv_role['role_name'] }} @endisset" class="layui-input">
                </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-green">重置</button>
    </div>
  </div>
@endif
</form>

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

  //监听提交
  form.on('submit(submitForm)', function(data){
    return true;
  });
});
lay('.test-item').each(function(){
    laydate.render({
        elem: this
        ,type: 'datetime'
        ,trigger: 'click'
    });
});
</script>
@endsection
