{{-- One care worker's full training record. From ManagementController@complianceWorker: $worker, $service, $items, $summary --}} @extends('layouts.app') @section('title', $worker->name . ' — Training') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); @endphp @php $fromStaff = request('from') === 'staff' && \Illuminate\Support\Facades\Route::has($role.'.staff-login'); $backUrl = $fromStaff ? route($role.'.staff-login') : ($backService ? route($role.'.compliance.index', ['service' => $backService->id]) : route($role.'.compliance.index')); $backLabel = $fromStaff ? 'Staff Management' : ($backService?->name ?? 'All services'); @endphp arrow_back {{ $backLabel }} {{-- Worker details --}}
{{ $value }}
{{ $label }}
{{ $worker->name }}
@include('management._donut', ['segs' => $mixSegs($summary), 'total' => (int) $summary['total'], 'centerValue' => $summary['compliance'].'%', 'centerLabel' => '']){{ $summary['completed'] }} of {{ $summary['total'] }} complete
Contribution to house
@include('management._donut', [ 'segs' => [['label' => 'This worker', 'value' => (int) $summary['completed'], 'hex' => '#0E7C7B'], ['label' => 'Other workers', 'value' => $rest, 'hex' => '#C3CBD3']], 'total' => (int) $house['completed'], 'centerValue' => $contribution.'%', 'centerLabel' => '', ]){{ $summary['completed'] }} of {{ $house['completed'] }} house completions
{{ $service?->name ?? 'House' }}
@include('management._donut', ['segs' => $mixSegs($house), 'total' => (int) $house['total'], 'centerValue' => $house['compliance'].'%', 'centerLabel' => '']){{ $house['completed'] }} of {{ $house['total'] }} complete
{{ $title }} · Face to face Automatic
Covered by {{ $cov['by'] }}, attended {{ $cov['on']->format('j M Y') }} — either one is enough.
{{ $na->title() }} · {{ $na->course_id ? 'E-learning' : 'Face to face' }}
“{{ $na->reason }}” — {{ $na->creator?->name ?? 'unknown' }}, {{ $na->created_at->format('j M Y') }}
Medication Competency Pack {{ $mcIcon }} {{ $mcLabel }}
@if($mcCur) {{ $mcCur->typeLabel() }} · assessed {{ $mcCur->assessed_at?->format('j M Y') }}@if($mcCur->expires_at) · renewal due {{ $mcCur->expires_at->format('j M Y') }}@endif @else Not yet assessed as competent to administer medication. @endif @if($medCompetency['open']) · assessment in progress@endif
Training {{ $worker->name }} completed that didn’t come across from the original records — e-learning or a face-to-face session. Choose it and the date it was completed: e-learning is marked complete from that date with a certificate issued to their Vault; a session is marked attended on that date. Renewal dates are worked out from the refresh cycle, and it’s recorded in the audit log under your name. Insulin / PEG / Dysphagia observations need the PDF — use Upload certificates below.
Completed training elsewhere? Upload {{ $worker->name }}’s certificates (e.g. from a previous employer) — approved straight away.
| Course | Completed | Uploaded by | Status |
|---|---|---|---|
| {{ $u->course->title ?? 'Course' }} {{ $u->sourceLabel() }}{{ $u->provider ? ' · '.$u->provider : '' }}{{ $u->certificate_number ? ' · No. '.$u->certificate_number : '' }} @if($mgrFile)View certificate file@endif | {{ optional($u->completion_date)->format('j M Y') }} | {{ (int) $u->submitted_by === (int) $u->user_id || ! $u->submitter ? $worker->name.' (self)' : $u->submitter->name }} {{ $u->created_at->format('j M Y') }} | @if($u->isApproved()) check_circle Approved @if($u->reviewer)by {{ $u->reviewer->name }}@endif @elseif($u->isRejected()) error Not approved {{ $u->review_note }} @else hourglass_top Awaiting approval @endif |
Overdue and outstanding first
| Course | Status | Enrolled | Completed | Due / Renewal | Actions |
|---|---|---|---|---|---|
| {{ $it['course']->title }} | {{ $b[1] }} {{ $b[2] }} @if($it['status'] !== 'completed' && $it['progress'] > 0) {{ $it['progress'] }}% @endif | {{ $it['assigned_at'] ? \Carbon\Carbon::parse($it['assigned_at'])->format('j M Y') : '—' }} | {{ $it['completed_at'] ? \Carbon\Carbon::parse($it['completed_at'])->format('j M Y') : '—' }} | @if($it['due_at']) @php $past = \Carbon\Carbon::parse($it['due_at'])->isPast(); @endphp {{ \Carbon\Carbon::parse($it['due_at'])->format('j M Y') }} @else — @endif | @if($it['status'] === 'completed' && \Illuminate\Support\Facades\Route::has($role.'.worker.certificate')) workspace_premium View @elseif($canRecord ?? false) @elseif(! ($canReassign ?? false)) — @endif @if(($canNa ?? false) && ! $it['na']) @endif @if(($canReassign ?? false) && ($it['status'] !== 'not_started' || $it['progress'] > 0 || $it['completed_at'])) @endif |
| No training assigned. | |||||
{{ $courseTitle }}
{{ $fmtTime($courseTotal) }}| Session | Date | Trainer | Outcome |
|---|---|---|---|
| {{ $s['title'] }} @if($s['certificate_url'])workspace_premiumCertificate @endif· {{ $s['format'] === 'online' ? 'Online' : 'In-person' }} | {{ $when ? \Illuminate\Support\Carbon::parse($when)->format('j M Y') : '—' }} | {{ $s['trainer'] ?? '—' }} | {{ $badge[2] }} {{ $badge[0] }} |