{{-- Insulin / PEG / Dysphagia observations — staff at the manager's homes that require them. From ObservationRecordController@index: $rows, $homesRequiring. --}} @extends('layouts.app') @section('title', 'Observations') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $inputCls = 'w-full px-4 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; @endphp
clinical_notes Upload each staff member’s Insulin, PEG and Dysphagia observation as a PDF with its date — previous ones as well as new ones. Insulin lasts 6 months, PEG and Dysphagia 1 year; each turns orange 3 months before it runs out. The IDDSI, Dysphagia and Choking face-to-face session is compulsory for anyone needing the Dysphagia observation. Only staff at services that require an observation are listed.
@if($rows->isEmpty())No staff to show
{{ $homesRequiring ? 'The services that require these observations have no staff yet.' : 'None of your services require these yet — tick them under Required Face to Face Trainings in Manage Course.' }}
| Staff member | Service | @foreach(\App\Models\ObservationRecord::TYPES as $name){{ $name }} | @endforeachAction |
|---|---|---|---|
| {{ $row['user']->name }} {{ $row['user']->email }} @foreach($row['missing'] as $title) warning {{ $title }} not attended @endforeach | {{ implode(', ', $row['homes']) ?: '—' }} | @foreach(array_keys(\App\Models\ObservationRecord::TYPES) as $type) @php $rec = $row['latest'][$type] ?? null; @endphp@if(! in_array($type, $row['types'], true)) Not required @elseif($rec) @php $state = $rec->state(); @endphp {{ $rec->observed_at->format('j M Y') }} {{ $state === 'expired' ? 'Expired' : 'Renew by' }} {{ $rec->expiresOn()->format('j M Y') }} @else Not uploaded @endif | @endforeachupload_file Upload / view |