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 --}}