@php $isEdit = $user->exists; $action = $isEdit ? route('admin.users.update', $user) : route('admin.users.store'); $input = 'w-full px-4 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; $label = 'block text-label-md font-label-md text-on-surface-variant mb-1.5'; $currentRole = old('role', $user->roles->first()?->name); $isOperational = \App\Models\User::isOperationalRole($currentRole); $val = fn ($field, $default = null) => old($field, $default ?? $user->{$field}); $dateVal = fn ($field) => old($field, $user->{$field}?->format('Y-m-d')); @endphp
@csrf @if($isEdit) @method('PUT') @endif {{-- Personal --}}

Personal Details

Full name is set automatically from first + last name.

{{-- Account & Role --}}

Account & Role

{{-- Employment --}}

Employment

corporate_fare Head Office
{{-- Select for management + head-office roles (options set by role via JS) --}} {{-- Care worker: derived from their service's Service Manager --}} {{-- CEO: top of the hierarchy --}}
{{-- Contact --}}

Contact

{{-- Address --}}

Address

Cancel