@yield('title', 'Người dùng - Thêm mới')

@section('breadcrumb')
<h2><a href="{-route('index')-}">Người dùng</a></h2>
<span>Thêm mới</span>
@endsection

@extension('message')
@error(true)

<form method="post" action="{{$this->route('create')}}">
	@modelBinding('UserModel')

	<div class="row form-group">
		<div class="col-md-12 form-layout-label">
			@labelFor('name', ['required' => true])
		</div>
		<div class="col-sm-12 col-md-8">
			@inputFor('name', ['class' => 'form-control'])
		</div>
		<div class="col-sm-12 col-md-4">
			@errorMessage('name')
		</div>
	</div>

	<div class="row form-group">
		<div class="col-md-12 form-layout-label">
			@labelFor('username', ['required' => true])
		</div>
		<div class="col-sm-12 col-md-8">
			@inputFor('username', ['class' => 'form-control'])
		</div>
		<div class="col-sm-12 col-md-4">
			@errorMessage('username')
		</div>
	</div>

	<div class="row form-group">
		<div class="col-md-12 form-layout-label">
			@labelFor('password', ['required' => true])
		</div>
		<div class="col-sm-12 col-md-8">
			@inputFor('password', ['class' => 'form-control'])
		</div>
		<div class="col-sm-12 col-md-4">
			@errorMessage('password')
		</div>
	</div>

	<div class="row form-group">
		<div class="col-md-12 form-layout-label">
			@labelFor('repassword', ['required' => true])
		</div>
		<div class="col-sm-12 col-md-8">
			@inputFor('repassword', ['class' => 'form-control'])
		</div>
		<div class="col-sm-12 col-md-4">
			@errorMessage('repassword')
		</div>
	</div>

	<div class="row form-group">
		<div class="col-md-12 form-layout-label">
			@labelFor('group_id', ['required' => true])
		</div>
		<div class="col-sm-12 col-md-8">
			@inputFor('group_id', ['class' => 'form-control'])
		</div>
		<div class="col-sm-12 col-md-4">
			@errorMessage('group_id')
		</div>
	</div>

	<div class="row form-group">
		<div class="col-md-12 form-layout-label">
			@labelFor('is_lock')
		</div>
		<div class="col-sm-12 col-md-8">
			@inputFor('is_lock', ['description' => 'Khóa người dùng này?'])
		</div>
	</div>

	<div class="form-group">
		<input type='submit' class='btn btn-primary' value="Lưu" />
		&nbsp;
		<a class='btn btn-default' href="{-route('index')-}">Trở lại</a>
	</div>
</form>