{{-- Role-scoped compliance dashboard (Team Lead → CEO). From ManagementController@dashboard: $serviceRows, $summary, $attention --}} @extends('layouts.app') @section('title', 'Compliance Overview') @section('content') @include('partials.flash') {{-- "Where would you like to start?" — CEO/COO, once per login --}} @if($showQuickStart ?? false) @php $qsRole = auth()->user()->primaryRole(); $qsOptions = [ ['insights', 'monitoring', 'Insights', 'Training health, gaps & completion trends'], ['compliance.index', 'verified_user', 'Compliance', 'Org-wide compliance status by service'], ['training-risk', 'warning', 'Training Risk', 'Who has expiring or overdue training'], ['organogram', 'account_tree', 'Organogram', 'Compliance across the whole org chart'], ]; @endphp
Where would you like to start?
{{ $title }}
{!! $desc !!}
Non-Compliance
Failing services & workers — and who's responsible (SM · RM · HOD)
{{ $tile['value'] }}
{{ $tile['label'] }}
Last 12 months · E-learning and face to face · {{ $trendHomeName ?? 'All services' }}
@if($delta > 0)▲ {{ $delta }}% this month @elseif($delta < 0)▼ {{ abs($delta) }}% this month @else No change this month @endif
{{ number_format($current['completed']) }} / {{ number_format($current['assigned']) }} training items complete
E-learning completed plus required face-to-face sessions in date, at each month-end, for current staff. Solid points are saved at the time; hollow points are rebuilt from today’s records, and e-learning from before Segra comes from imported records, so those months may look better than they really were. Peak: {{ $peak }}%.
No services assigned to you yet
Once services are assigned to you, their compliance appears here.
| Service | Workers | Overdue | Compliance |
|---|---|---|---|
|
{{ $row['service']->name }}
{{ $row['service']->code }}{{ $row['service']->region ? ' · ' . $row['service']->region : '' }} |
{{ $row['workers'] }} | @if($row['overdue'] > 0) {{ $row['overdue'] }} @else 0 @endif |
|
No upcoming training sessions right now.
| Session | Date | Format | Team booked | Action |
|---|---|---|---|---|
| {{ $s->title }} | {{ $s->session_date->format('j M Y') }} · {{ \Carbon\Carbon::parse($s->start_time)->format('H:i') }} | {{ $s->format === 'in_person' ? 'In-Person' : 'Online' }} | {{ $s->team_registered_count }} / {{ $eligibleWorkers }} | Assign team |
{{ $eligibleWorkers }} eligible care {{ \Illuminate\Support\Str::plural('worker', $eligibleWorkers) }} on your team.
@endif @endif{{ $personal['completed'] }} of {{ $personal['total'] }} courses complete
@if($personal['overdue'] > 0){{ $personal['overdue'] }} overdue
@elsePersonal compliance
@endif @if(\Illuminate\Support\Facades\Route::has(auth()->user()->primaryRole().'.courses')) Go to my courses → @endif{{ $row['user']->name }}
{{ $row['home'] ?? 'Unassigned service' }}
All on track
No overdue training across your services.