2016-10-01 15:24:22 +01:00
|
|
|
@extends('themes.base.layout')
|
|
|
|
@section('title', trans('admin.create_user'))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
|
|
|
<div class="breadcrumb">
|
|
|
|
<div class="container">
|
|
|
|
<ol class="breadcrumb">
|
2017-02-13 10:36:53 +00:00
|
|
|
<li><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
2016-10-01 15:24:22 +01:00
|
|
|
<li><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
2017-02-13 10:36:53 +00:00
|
|
|
<li><a href="{{ route('users.index') }}">@lang('navigation.breadcrumb.users')</a></li>
|
2016-10-01 15:24:22 +01:00
|
|
|
<li class="active">@lang('navigation.breadcrumb.create_user')</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<h1>@lang('admin.create_user_title')</h1>
|
|
|
|
<p>@lang('admin.create_user_intro')</p>
|
|
|
|
<hr/>
|
|
|
|
|
2017-02-13 10:36:53 +00:00
|
|
|
{!! Form::open(['route' => 'users.store', 'method' => 'POST']) !!}
|
2016-10-01 15:24:22 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
2016-10-28 14:05:53 +01:00
|
|
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
2016-10-01 15:24:22 +01:00
|
|
|
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!}
|
|
|
|
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
2016-10-28 14:05:53 +01:00
|
|
|
|
|
|
|
@if ($errors->has('name'))
|
|
|
|
<span class="help-block">
|
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-6">
|
2016-10-28 14:05:53 +01:00
|
|
|
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
|
2016-10-01 15:24:22 +01:00
|
|
|
{!! Form::label('email', trans('forms.email_label'), ['class' => 'control-label']) !!}
|
|
|
|
{!! Form::text('email', old('email'), ['class' => 'form-control']) !!}
|
2016-10-28 14:05:53 +01:00
|
|
|
|
|
|
|
@if ($errors->has('email'))
|
|
|
|
<span class="help-block">
|
|
|
|
<strong>{{ $errors->first('email') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
2016-10-28 14:05:53 +01:00
|
|
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
2016-10-01 15:24:22 +01:00
|
|
|
{!! Form::label('password', trans('forms.password_label'), ['class' => 'control-label']) !!}
|
|
|
|
{!! Form::password('password', ['class' => 'form-control']) !!}
|
2016-10-28 14:05:53 +01:00
|
|
|
|
|
|
|
@if ($errors->has('password'))
|
|
|
|
<span class="help-block">
|
|
|
|
<strong>{{ $errors->first('password') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-6">
|
2016-10-28 14:05:53 +01:00
|
|
|
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
|
2016-10-01 15:24:22 +01:00
|
|
|
{!! Form::label('password_confirmation', trans('forms.password_confirm_label'), ['class' => 'control-label']) !!}
|
|
|
|
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
|
2016-10-28 14:05:53 +01:00
|
|
|
|
|
|
|
@if ($errors->has('password_confirmation'))
|
|
|
|
<span class="help-block">
|
|
|
|
<strong>{{ $errors->first('password_confirmation') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="is_admin">
|
|
|
|
<strong>@lang('forms.admin_user_label')</strong>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-actions">
|
2017-02-13 10:36:53 +00:00
|
|
|
<a href="{{ route('users.index') }}" class="btn btn-default">@lang('forms.cancel_action')</a>
|
2016-10-01 15:24:22 +01:00
|
|
|
{!! Form::submit(trans('forms.create_action'), ['class' => 'btn btn-success']) !!}
|
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|