@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" required  lay-verify="required" autocomplete="off" class="layui-input" value="{{$data['account']}}" disabled="disabled" >
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">账户余额</label>
    <div class="layui-input-block">
    <input type="text" name="available_cash"   lay-verify="" autocomplete="off" class="layui-input" value="{{$data['available_cash']}}" disabled="disabled">
    </div>
  </div>

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

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

  <div class="layui-form-item">
    <label class="layui-form-label">真实姓名</label>
    <div class="layui-input-inline">
      <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 type="text" name="bank_name"   lay-verify="" value="{{$data['bank_name']}}" autocomplete="off" class="layui-input" disabled="disabled">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">开户地址</label>
    <div class="layui-input-inline">
      <input type="text" name="bank_address"   lay-verify="" value="{{$data['bank_address']}}" autocomplete="off" class="layui-input" disabled="disabled">
    </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="" value="{{$data['bank_number']}}" autocomplete="off" class="layui-input" disabled="disabled">
    </div>
    <div class="layui-form-mid layui-word-aux">编辑真实姓名和银行卡信息</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">所属会员组</label>
    <div class="layui-input-block">
      <select name="grade" >
        <option value="0" @if($data['grade']==0) checked @endif>普通会员</option>
        <option value="6" @if($data['grade']==6) checked @endif>白银会员 </option>
        <option value="7" @if($data['grade']==7) checked @endif>黄金会员</option>
        <option value="8" @if($data['grade']==8) checked @endif>铂金会员</option>
        <option value="9" @if($data['grade']==9) checked @endif >钻石会员</option>
      </select>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">注册时间</label>
    <div class="layui-input-inline">
      <input type="text" name="menu_icon" value="{{$data['register_time']}}"  lay-verify="" autocomplete="off" class="layui-input" disabled="disabled">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">注册IP</label>
    <div class="layui-input-inline">
      <input type="text" name="menu_icon" value="{{$data['register_ip']}}"  lay-verify="" autocomplete="off" class="layui-input" disabled="disabled">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">最后登录时间</label>
    <div class="layui-input-inline">
      <input type="text" name="menu_icon"  value="{{$data['last_time']}}" lay-verify="" autocomplete="off" class="layui-input" disabled="disabled">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">最后登录IP</label>
    <div class="layui-input-inline">
      <input type="text" name="menu_icon" value="{{$data['last_ip']}}"  lay-verify="" autocomplete="off" class="layui-input" disabled="disabled">
    </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(){
		window.history.go(-1);//返回上一页
	},2500);
}
</script>
@endsection
