@extends('layouts.app') @section('title', 'Staff Management') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $selInput = 'py-2.5 pl-3 pr-8 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; $base = array_filter([ 'service' => $filters['serviceId'], 'sm' => $filters['smId'], 'login' => $filters['login'], 'q' => $filters['q'] !== '' ? $filters['q'] : null, 'unassigned' => $unassigned ? 1 : null, 'management' => $management ? 1 : null, ]); $hasFilters = ! empty(array_diff_key($base, ['unassigned' => 1, 'management' => 1])); @endphp
Your management team — the Service Managers and Team Leads of the homes you oversee, plus any Office Managers tied to you — with their login status. Send an onboarding email to anyone who hasn’t signed in yet.
@elseSee who has — and hasn’t — signed in across your care homes. Click a name to view their compliance, or set a worker’s care home from the Care Home column.
@endif{{ $value }}
{{ $label }}
| Staff member | Care home / role | Service Manager / covers | Last login | Status | Actions | ||
|---|---|---|---|---|---|---|---|
| @php $workerRoute = \Illuminate\Support\Facades\Route::has($role.'.compliance.worker') ? route($role.'.compliance.worker', ['worker' => $w, 'from' => 'staff']) : null; @endphp @if($workerRoute) {{ $w->name }} @else {{ $w->name }} @endif {{ $w->email }} | @if($isMgr){{ $w->role_label }} | {{ $w->covers }} | @else@php $canAssign = \Illuminate\Support\Facades\Route::has($role.'.worker.assign-location'); @endphp @if($canAssign) @else {{ $w->location?->name ?? '—' }} @endif | {{ $w->location?->serviceManager?->name ?? '—' }} | @endif{{ $w->last_login_at ? $w->last_login_at->format('j M Y, H:i') : '—' }} | @if($w->last_login_at) how_to_reg Logged in @else no_accounts Not logged in @endif |
edit Edit
@unless($unassigned)
@endunless
|