@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">会员名称</label>
    <div class="layui-input-block">
      <input type="text" name="account" readonly="readonly"  lay-verify="required" placeholder="请输入菜单名称" autocomplete="off" class="layui-input" value="{{$data['account']}}">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">开户行</label>
    <div class="layui-input-block">
    <input type="text" name="bank_name" lay-verify="" placeholder="请输入开户行" autocomplete="off" class="layui-input" value="{{$data['bank_name']}}">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">银行卡号</label>
    <div class="layui-input-inline">
    <input type="text" name="bank_number" lay-verify="" placeholder="请输入银行卡号" autocomplete="off" class="layui-input" value="{{$data['bank_number']}}">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">开户地址</label>
    <div class="layui-input-block">
    <input type="text" name="bank_address" lay-verify="" placeholder="请输入开户地址" autocomplete="off" class="layui-input" value="{{$data['bank_address']}}">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">开户人</label>
    <div class="layui-input-block">
    <input type="text" name="name" lay-verify="" placeholder="请输入开户人" autocomplete="off" class="layui-input" value="{{$data['name']}}">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">银行卡状态</label>
    <div class="layui-input-inline">
    <input name="status" lay-verify="" type="radio" checked="checked" class="layui-input" value="0" title="禁用">
    <input name="status" lay-verify="" type="radio" checked="checked" class="layui-input" value="1" title="启用">
    </div>
  </div>


  <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>
</form>

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

  //监听提交
  form.on('submit(submitForm)', function(data){
    return true;
  });
});
function cbFormSuccess(data){
	layer.msg(data.msg);
	setTimeout(function(){
		// parent.window.location.reload();
    window.history.go(-1);//返回上一页
	},2500);
}
</script>
@endsection
