<div class="dropdown-item noti-title">
	<h5 class="m-0">
		<span class="float-right">
			<a href="{{ route('criticalValueNotifications') }}" class="text-dark"><small>Lihat Semua</small></a>
		</span>
		Nilai Kritis
	</h5>
</div>
<div style="max-height: 320px; overflow-y: auto;">
	@if(($items ?? collect())->isEmpty())
		<div class="dropdown-item text-muted">Tidak ada sample nilai kritis yang perlu dilaporkan.</div>
	@else
		@foreach($items as $criticalItem)
			<a href="{{ route('criticalValueNotificationOpen', $criticalItem->id) }}" class="dropdown-item notify-item">
				<div class="notify-icon bg-warning"><i class="fa fa-exclamation-triangle"></i></div>
				<p class="notify-details">
					{{ $criticalItem->nofoto ?? '-' }} - {{ $criticalItem->nmpasien ?? 'Tanpa Nama' }}
					<small class="text-muted">
						Set: {{ $criticalItem->critical_set_at ? \Carbon\Carbon::parse($criticalItem->critical_set_at)->format('d-m-Y H:i:s') : '-' }}
					</small>
				</p>
			</a>
		@endforeach
	@endif
</div>
