@extends('layouts.app') @section('title', 'Training Risk') @section('content') @include('partials.flash') @php $base = $viewer->primaryRole(); @endphp
Expired renewals and training expiring within the next {{ \App\Concerns\AssessesTrainingRisk::$riskWindowDays }} days.
{{ $summary['expired'] }}
{{ $summary['expiring'] }}
{{ $summary['total'] }}
{{ $focus->name }}
{{ $focus->roleLabel() }}{{ $focus->location?->name ? ' ยท '.$focus->location->name : '' }}
| Course | Status | Due date |
|---|---|---|
| {{ $it->title }} | @if($it->risk === 'expired') Expired {{ abs($it->days) }}d ago @else Expires in {{ $it->days }}d @endif | {{ \Carbon\Carbon::parse($it->due_at)->format('j M Y') }} |
| No expired or expiring training โ all up to date. | ||
Reminders go to the {{ $targetNoun }} below.
| {{ Str::singular($targetNoun) }} | Care workers | Expired | Expiring | Actions |
|---|---|---|---|---|
|
{{ $row['user']->name }}
{{ $row['role'] }} |
{{ $row['is_worker'] ? 'โ' : $row['workers'] }} | @if($row['expired']) {{ $row['expired'] }} @else 0 @endif | @if($row['expiring']) {{ $row['expiring'] }} @else 0 @endif |
{{ $row['is_worker'] ? 'visibility' : 'arrow_forward' }}{{ $row['is_worker'] ? 'View' : 'Open' }}
@if($row['at_risk'] > 0)
@endif
|
| No one to show here. | ||||