@extends('layouts.app') @php $editing = $user->exists; $action = $editing ? route('admin.users.update', $user) : route('admin.users.store'); $value = fn (string $field, $fallback = null) => old($field, $user->{$field} ?? $fallback); @endphp @section('title', $editing ? 'Edit user' : 'Add user') @section('heading', $editing ? 'Edit user — '.$user->name : 'Add a user') @section('actions') Cancel @endsection @section('content')
@csrf @if ($editing) @method('PUT') @endif
Person
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
Password
@if ($editing)

Leave both boxes empty to keep the current password. Setting a new one here forces this person to choose their own password at their next sign-in.

@else

Hand this password over in person or by a separate channel. The account is flagged to require a new password on first sign-in.

@endif
At least 10 characters, with letters and numbers.
@error('password')
{{ $message }}
@enderror
Access rights
@error('role_id')
{{ $message }}
@enderror
When set, this person only sees tenancies in that region, on the web and in the mobile app. Super administrators are never restricted.
A deactivated account cannot sign in and its mobile tokens are revoked.

What each role may do
@foreach ($roles as $role)

{{ $role->description }}
@endforeach
Cancel
@endsection