2016-10-01 15:24:22 +01:00
|
|
|
@extends('themes.base.layout')
|
|
|
|
@section('title', trans('admin.create_user'))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
2017-03-26 21:29:10 +01:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('users.index') }}">@lang('navigation.breadcrumb.users')</a></li>
|
|
|
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.create_user')</li>
|
2016-10-01 15:24:22 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="col">
|
2016-10-01 15:24:22 +01:00
|
|
|
<h1>@lang('admin.create_user_title')</h1>
|
|
|
|
<p>@lang('admin.create_user_intro')</p>
|
|
|
|
<hr/>
|
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<form action="{{ route('users.store') }}" method="post">
|
|
|
|
{{ csrf_field() }}
|
2016-10-28 14:05:53 +01:00
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}">
|
|
|
|
<label class="form-control-label" for="user-name">@lang('forms.name_label')</label>
|
|
|
|
<input type="text" class="form-control" id="user-name" name="name" value="{{ old('name') }}">
|
|
|
|
|
|
|
|
@if ($errors->has('name'))
|
|
|
|
<div class="form-control-feedback">
|
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="form-group{{ $errors->has('email') ? ' has-danger' : '' }}">
|
|
|
|
<label class="form-control-label" for="user-email">@lang('forms.email_label')</label>
|
|
|
|
<input type="text" class="form-control" id="user-email" name="email" value="{{ old('email') }}">
|
2016-10-28 14:05:53 +01:00
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
@if ($errors->has('email'))
|
|
|
|
<div class="form-control-feedback">
|
|
|
|
<strong>{{ $errors->first('email') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="form-group{{ $errors->has('password') ? ' has-danger' : '' }}">
|
|
|
|
<label class="form-control-label" for="user-password">@lang('forms.password_label')</label>
|
|
|
|
<input type="password" class="form-control" id="user-password" name="password" value="{{ old('password') }}">
|
2016-10-28 14:05:53 +01:00
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
@if ($errors->has('password'))
|
|
|
|
<div class="form-control-feedback">
|
|
|
|
<strong>{{ $errors->first('password') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}">
|
|
|
|
<label class="form-control-label" for="user-password-confirm">@lang('forms.password_confirm_label')</label>
|
|
|
|
<input type="password" class="form-control" id="user-password-confirm" name="password_confirmation" value="{{ old('password_confirmation') }}">
|
2016-10-28 14:05:53 +01:00
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
@if ($errors->has('password_confirmation'))
|
|
|
|
<div class="form-control-feedback">
|
|
|
|
<strong>{{ $errors->first('password_confirmation') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="form-check">
|
|
|
|
<label class="form-check-label">
|
|
|
|
<input class="form-check-input" type="checkbox" name="is_admin">
|
|
|
|
@lang('forms.admin_user_label')
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-10-01 15:24:22 +01:00
|
|
|
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="text-right">
|
|
|
|
<a href="{{ route('users.index') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
|
|
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.create_action')</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|