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

<form class="layui-form" action="" id="submitForm" name="submitForm" method="post" eventType="eventForm">
{!! 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" style="width: 190px;" 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="" style="width: 190px;" 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']}}" disabled="disabled">
    </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']}}" disabled="disabled">
    </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']}}" 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_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">
      <textarea name="menu_icon" rows="10" cols="50" readonly="readonly">{{$data['remark']}}</textarea>
    </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>

  <div class="layui-form-item">
    <label class="layui-form-label">所属会员组</label>
    <div class="layui-input-block">
	<input type="text" name="bank_number"   lay-verify="" style="width: 190px;" value="{{($data['grade']==0)?trans('status.account_detailed.grade')[10]:trans('status.account_detailed.grade')[$data['grade']]}}" 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['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" style="width: 200px;" 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>
</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();
	},2500);
}
</script>
@endsection
