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

<form class="layui-form" action="{{ url()->full() }}" id="submitForm" name="submitForm" method="post" eventType="eventForm">
{!! csrf_field() !!}
  @if(isset($type))
  <div class="layui-form-item">
    <label class="layui-form-label">游戏名</label>
    <div class="layui-input-block" >
      <select name="game" id="game" lay-verify="" autocomplete="off" class="layui-input">
        <option value="">{{ trans('gamemenu.select_game') }}</option>
        @foreach(trans('gamemenu.game_type') as $k=>$v):
        <option value="{{$k}}" @if($k=='xy28')selected @endif>{{$v}}</option>
        @endforeach
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">期号</label>
    <div class="layui-input-block">
    <input type="text" name="no"   lay-verify="" autocomplete="off" class="layui-input">
    </div>    
  </div>
@endif



  <div class="layui-form-item">
    <label class="layui-form-label">二级密码</label>
    <div class="layui-input-block">
      <input type="hidden" name="id"   lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{{isset($id)?$id:''}}">
      <input type="password" name="password"   lay-verify="" placeholder="请输入密码" autocomplete="off" class="layui-input" value="">
    </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-normal">重置</button>
    </div>
  </div>
</form>
 
<script>
//Demo
layui.use(['form'], function(){
  var form = layui.form;
  
  //监听提交
  form.on('submit(submitForm)', function(data){
    return true;
  });
});

</script>
@endsection
