@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>修改会员在线状态</label>
</div>
  <div class="layui-form-item">
    <label class="layui-form-label">会员</label>
    <div class="layui-input-block">
      <input type="hidden" name="ids" value="{{isset($data['id'])?$data['id']:''}}" >
      <input type="text" name="loginname" required  lay-verify="required" autocomplete="off" class="layui-input" value="{{isset($data['account'])?$data['account']:''}}" disabled="disabled">
    </div>
  </div>
  
  <div class="layui-form-item" style="width: 360px">
	<label class="layui-form-label">{{ trans('user.statuss') }}</label>
	  <div class="layui-input-block" style="width: 200px">
			<select name="statuss" id="form_statuss" lay-verify="" autocomplete="off" class="layui-input" eventType=event-query>
        @if($data['statuss']==1)
          <option value="0" selected="selected">踢线</option>
        @endif
      </select>
	  </div>
  </div>


  <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
      <input type="password" name="password"   lay-verify="" autocomplete="off" class="layui-input" value="">
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
        <a class="layui-btn lay-btn-diy" href="javascript:history.go(-1)">返回</a>
      @if(checkRriv('/admin/User/changeStatuss'))<button class="layui-btn" lay-submit lay-filter="submitForm">立即提交</button>@endif
  </div>
</form>

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

  //监听提交
  form.on('submit(submitForm)', function(data){
    return true;
  });
});

function cbFormSuccess(data){
	layer.alert(data.msg,{},function(){
		window.history.go(-1);

	});
}
</script>
@endsection
