@php $filters = [ 'attention' => 'Needs attention', 'overdue' => 'Overdue', 'upcoming' => 'Coming up', 'all' => 'Everything', ]; @endphp @can('immunizations.schedule') Schedule a dose @endcan @can('immunizations.reports') Coverage report @endcan
@foreach ($filters as $key => $label) {{ $label }} @endforeach
@if ($doses->isEmpty()) @if ($term !== '' || $filter !== 'attention') Nothing matches this view — try the “Everything” tab or clear the search. @else No open doses at all. Schedule one and it lands here as soon as it is due. @endif @else
@foreach ($doses as $dose) @endforeach
Patient Vaccine Dose Due Status Action
{{ $dose->patient?->full_name }} @if ($dose->patient?->isRestricted()) @endif {{ $dose->patient?->medical_record_number }} {{ $dose->vaccine?->name }} @if ($dose->vaccine?->doses_required > 1) of {{ $dose->vaccine->doses_required }} doses @endif Dose {{ $dose->dose_number }} {{ $dose->scheduled_date?->format('d M Y') }} @if ($dose->status === 'overdue' && $dose->scheduled_date) {{ $dose->scheduled_date->diffForHumans() }} @endif Open
{{ $doses->links() }} @endif