@extends(config('laravelusers.laravelUsersBladeExtended')) @section('template_title') {!! trans('laravelusers::laravelusers.create-new-user') !!} @endsection @section('template_linked_css') @if(config('laravelusers.enabledDatatablesJs')) @endif @if(config('laravelusers.fontAwesomeEnabled')) @endif @include('laravelusers::partials.styles') @include('laravelusers::partials.bs-visibility-css') @endsection @section('content')
@if(config('laravelusers.enablePackageBootstapAlerts'))
@include('laravelusers::partials.form-status')
@endif
{!! Form::open(array('route' => 'users.store', 'method' => 'POST', 'role' => 'form', 'class' => 'needs-validation')) !!} {!! csrf_field() !!}
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('email', trans('laravelusers::forms.create_user_label_email'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::text('email', NULL, array('id' => 'email', 'class' => 'form-control', 'placeholder' => trans('laravelusers::forms.create_user_ph_email'))) !!}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('name', trans('laravelusers::forms.create_user_label_username'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::text('name', NULL, array('id' => 'name', 'class' => 'form-control', 'placeholder' => trans('laravelusers::forms.create_user_ph_username'))) !!}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if($rolesEnabled)
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('role', trans('laravelusers::forms.create_user_label_role'), array('class' => 'col-md-3 control-label')); !!} @endif
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
@endif
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('password', trans('laravelusers::forms.create_user_label_password'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::password('password', array('id' => 'password', 'class' => 'form-control ', 'placeholder' => trans('laravelusers::forms.create_user_ph_password'))) !!}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if(config('laravelusers.fontAwesomeEnabled')) {!! Form::label('password_confirmation', trans('laravelusers::forms.create_user_label_pw_confirmation'), array('class' => 'col-md-3 control-label')); !!} @endif
{!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'form-control', 'placeholder' => trans('laravelusers::forms.create_user_ph_pw_confirmation'))) !!}
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
{!! Form::button(trans('laravelusers::forms.create_user_button_text'), array('class' => 'btn btn-success margin-bottom-1 mb-1 float-right','type' => 'submit' )) !!} {!! Form::close() !!}
@endsection @section('template_scripts') @if(config('laravelusers.tooltipsEnabled')) @include('laravelusers::scripts.tooltips') @endif @endsection