@extends('admin.master')

@section('top')
  <div class="top-breadcrumb pull-left">
    <h5>添加会员</h5>
    <a class="btn btn-xs btn-default goback" onclick="javascript:history.go(-1);">
      <i class="iconfont icon-back-copy"></i><span>返回</span>
    </a>
  </div>
@endsection

@section('content')
  {!! Form::open(['route' => 'admin.member.store', 'class'=>'form-horizontal form-detail']) !!}
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home">
      <div class="tab-content">
        <div class="form-group">
          <label class="col-sm-2 control-label label-width">语言版本：</label>
          <div class="col-sm-5">
            {!! Form::select('lang', inject('lang')->lists()->pluck('name', 'slug'), null, ['class'=>'form-control']) !!}
          </div>
        </div>
        <div class="form-group form-item-required">
          <label class="col-sm-2 control-label label-width">所属组：</label>
          <div class="col-sm-5">
            {!! Form::select("group_id", [null => '请选择'] + $category, null, ['class'=>'form-control']) !!}
          </div>
        </div>
        <div class="form-group form-item-required">
          <label class="col-sm-2 control-label label-width">用户名：</label>
          <div class="col-sm-5">
            {!! Form::text("username", '', ['class'=>'form-control']) !!}
          </div>
        </div>
        <div class="form-group form-item-required">
          <label class="col-sm-2 control-label label-width">邮箱：</label>
          <div class="col-sm-5">
            {!! Form::text("email", '', ['class'=>'form-control']) !!}
          </div>
        </div>
        <div class="form-group form-item-required">
          <label class="col-sm-2 control-label label-width">密码：</label>
          <div class="col-sm-5">
            <input type="password" name="password" class="form-control" autocomplete="off">
          </div>
        </div>
        <div class="form-group form-item-required">
          <label class="col-sm-2 control-label label-width">重复密码：</label>
          <div class="col-sm-5">
            <input type="password" name="password_confirmation" class="form-control" autocomplete="off">
          </div>
        </div>
      </div>
    </div>

  </div>
  <div class="form-group">
    <label class="col-sm-3 control-label label-width"></label>
    <div class="col-sm-5">
      {!! Form::submit('提交', ['class'=>'btn btn-primary']) !!}
    </div>
  </div>
  {!! Form::close() !!}
@endsection