@extends('layouts.app') @section('title', __('New User')) @section('content')
{{ __('Create a New User') }}
@include('partials/flash_messages')
{{ csrf_field() }} @if (Auth::user()->isAdmin())
{{ __('Role') }}
{{ __('User') }}
{{ __('Administrator') }}
@include('partials/field_error', ['field'=>'role'])
@endif
{{ __('First Name') }}
@include('partials/field_error', ['field'=>'first_name'])
{{ __('Last Name') }}
@include('partials/field_error', ['field'=>'last_name'])
@action('user.create.before_email')
{{ __('Email') }}
@include('partials/field_error', ['field'=>'email'])
{{ __('Password') }}
@include('partials/field_error', ['field'=>'password'])
@if (count($mailboxes))
{{ __('Which mailboxes will user use?') }}
{{ __('all') }}
/
{{ __('none') }}
@foreach ($mailboxes as $mailbox)
id, old('mailboxes'))) checked="checked" @endif> {{ $mailbox->name }}
@endforeach
@include('partials/field_error', ['field'=>'mailboxes'])
@endif
{{-- Mark as checked if it has been checked before or if form has not been submitted yet --}}
{{ __('Send an invite email') }}
{{ __("An invite can be sent later if you aren't ready") }}
{{ __('Create User') }}
{{ __('Cancel') }}
@endsection @section('javascript') @parent permissionsInit(); userCreateInit(); @endsection