@php $filtered = $term !== '' || $type !== ''; $typeSelect = ['' => 'Any type'] + $typeOptions; @endphp @can('vaccines.manage') Add a vaccine @endcan
@if ($filtered) Clear @endif
@if ($vaccines->count() === 0) {{ $filtered ? 'Nothing matches the current filters.' : 'The catalogue is empty — add the first vaccine to start scheduling.' }} @else
@foreach ($vaccines as $vaccine) @endforeach
Vaccine Disease prevented Course Route / Site Doses given Status Actions
{{ $vaccine->name }} {{ $vaccine->code }} @if ($vaccine->vaccine_type) · {{ $vaccine->vaccine_type_label }} @endif @if ($vaccine->is_government_supplied) · Government supplied @endif {{ $vaccine->disease_prevented }} {{ $vaccine->doses_required }} dose{{ $vaccine->doses_required === 1 ? '' : 's' }} @if ($vaccine->interval_days) every {{ $vaccine->interval_days }} days @endif {{ $vaccine->route_label }} {{ $vaccine->site_label }} {{ number_format($vaccine->doses_administered) }} @if ($vaccine->is_active) @else @endif
@can('vaccines.manage') Edit
@csrf
@endcan
{{ $vaccines->onEachSide(1)->links() }}
@endif