{{-- One staff member's Insulin / PEG / Dysphagia observations: upload a dated PDF, see the history. From ObservationRecordController@show / @mine: $worker, $types, $history, $missing (type => session not attended); $self = a care worker on their own page (no list to go back to, no removing). --}} @extends('layouts.app') @section('title', $worker->name.' — Observations') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $self = $self ?? false; $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 @unless($self) arrow_back All staff @endunless
{{ $errors->first() }}
@endifAdd a previous observation or a new one — the latest date shows on the matrix. Renewed {{ \App\Models\ObservationRecord::renewalLabel($type) }}{{ $type === 'dysphagia' ? ', and again whenever the person’s dysphagia / eating & drinking plan changes' : '' }}.
@if($pre = \App\Models\ObservationRecord::PREREQUISITES[$type] ?? null) @if(isset($missing[$type]))warning The {{ $pre }} face-to-face session is compulsory for this observation and {{ $self ? 'you haven’t' : $worker->name.' hasn’t' }} attended it yet{{ $self ? ' — ask your manager to book you on.' : ' — book them onto it from their compliance page.' }}
@elsecheck_circle {{ $pre }} session attended
@endif @endifOr upload a previous paper record (PDF)
Nothing uploaded yet.
@endforelse