@extends('layouts.app') @section('title', 'Non-Compliance') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); @endphp

Services and care workers falling short โ€” and who's accountable.

{{-- Search across services, workers and responsible managers --}}
search @foreach($options as $opt)@endforeach
@if($filters['q'] !== '' || $filters['sort'] !== 'worst') Clear @endif
{{-- Summary --}}
gpp_bad

{{ $summary['services'] }}

Services

person_alert

{{ $summary['workers'] }}

Care Workers

warning

{{ $summary['overdue'] }}

Overdue Courses

{{-- Services needing attention --}}

Services needing attention ({{ $servicesPage->total() }})

Below full compliance, with the responsible managers

@forelse($servicesPage as $s) @empty @endforelse
Service Compliance Overdue Service Manager Registered Manager HOD
{{ $s['service']->name }} {{ $s['compliance'] }}% @if($s['overdue']){{ $s['overdue'] }}@else0@endif {{ $s['sm'] ?? 'โ€”' }} {{ $s['rm'] ?? 'โ€”' }} {{ $s['hod'] ?? 'โ€”' }}
{{ $filters['q'] !== '' ? 'No services match your search.' : 'Every service is fully compliant. ๐ŸŽ‰' }}
@if($servicesPage->hasPages())
{{ $servicesPage->links() }}
@endif
{{-- Care workers with overdue training --}}

Care workers with overdue training ({{ $workersPage->total() }})

Click a worker to see their full record ยท shows who's responsible

@forelse($workersPage as $w) @php $detail = \Illuminate\Support\Facades\Route::has($role.'.compliance.worker') ? route($role.'.compliance.worker', $w['id']) : null; @endphp @empty @endforelse
Care Worker Overdue Service Service Manager Registered Manager HOD
@if($detail){{ $w['name'] }}@else{{ $w['name'] }}@endif {{ $w['overdue'] }} {{ $w['service'] ?? 'โ€”' }} {{ $w['sm'] ?? 'โ€”' }} {{ $w['rm'] ?? 'โ€”' }} {{ $w['hod'] ?? 'โ€”' }}
{{ $filters['q'] !== '' ? 'No care workers match your search.' : 'No care worker has overdue training. ๐ŸŽ‰' }}
@if($workersPage->hasPages())
{{ $workersPage->links() }}
@endif
@endsection