@extends('layouts.app') @section('title', 'Edit staff profile') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $label = 'block text-label-md font-label-md text-outline uppercase tracking-wide mb-1.5'; $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 text-on-surface outline-none'; $fmt = fn ($d) => $d ? \Illuminate\Support\Carbon::parse($d)->format('Y-m-d') : ''; @endphp arrow_back Staff Management

Edit profile — {{ $worker->name }}

Update this person’s details. Their password isn’t set here — use Send onboarding so they can set their own.

@if($errors->any())

Please fix the following:

@endif
@csrf @method('PUT') {{-- Personal --}}

Personal

{{-- Contact --}}

Contact

{{-- Employment --}}

Role & Employment

@if($canEditRole)

Promote or demote between Care Worker and Service Manager.

@else @if($currentRole === 'service_manager')@endif
lock {{ $currentRoleLabel }}

This role is managed by an administrator.

@endif
{{-- Homes / services (care workers only) --}} @if($canEditServices)

Homes (services)

Tick every home this person works in. They’ll appear on each home’s compliance matrix and be assigned the right training for all of them. The first ticked home is their primary.

@if($assignableServices->isEmpty())

You don’t oversee any homes to assign.

@else
@foreach($assignableServices as $svc) @php $checked = in_array((int) $svc->id, array_map('intval', $workerServiceIds), true); @endphp @endforeach

Homes outside your area that this person is also attached to are kept as they are.

@endif
@endif @if($canEditSmServices ?? false)

Services they manage (Service Manager)

Choose where {{ $worker->first_name ?: $worker->name }} is based and every service they oversee as Service Manager. Their primary service is always one they oversee. Only your own services are listed — any others they manage stay as they are.

@foreach($smScopeServices as $svc) @php $mine = in_array((int) $svc->id, $smManagedIds, true); $other = ! $mine && $svc->service_manager_id ? $svc->serviceManager?->name : null; @endphp @endforeach
@endif {{-- Address --}}

Address

Cancel
@endsection