@forelse($allergyHistoryRecord as $entry)
@if($entry->allergy == 'yes')
{{ $entry->created_at->format('d M Y') }}
{{ $entry->created_at->format('h:i A') }}
{{ $entry->allergyType->allergy_name ?? 'N/A' }}
{{ $entry->allergy_details ?: 'No allergy details recorded.' }}
@endif
@empty
No allergy history found.
@endforelse
@if($allergyHistoryRecord->count() && $allergyYesCount === 0)
No allergy history found.
@endif