@props([ 'status' => 'normal', 'statusLabel' => null, 'name', 'room', 'doctor', 'initialVolume', 'currentWeight', 'timeRemaining', 'progress', 'progressTone' => 'green', 'href' => null, ]) @php $accentClasses = [ 'normal' => 'border-b-[#007a3d]', 'warning' => 'border-b-[#e9b400]', 'critical' => 'border-b-[#c91e1e]', ][$status]; $timeClasses = [ 'normal' => 'text-[#004891]', 'warning' => 'text-[#a76500]', 'critical' => 'text-[#d10f12]', ][$status]; $labelClasses = [ 'normal' => 'text-[#007a3d]', 'warning' => 'text-[#d78900]', 'critical' => 'text-[#d10f12]', ][$status]; @endphp @php $cardClasses = 'flex min-h-[324px] flex-col rounded-[7px] border-b-4 ' . $accentClasses . ' bg-white px-6 pb-6 pt-6 shadow-[0_10px_28px_rgba(39,82,120,0.04)]'; @endphp @if ($href) @endif

@if ($status === 'critical') Kritis! @else Estimasi Habis @endif

{{ $timeRemaining }}

{{ $name }}

{{ $room }} {{ $doctor }}

Volume Awal
{{ $initialVolume }}
Berat Saat Ini
{{ $currentWeight }}

Sisa Cairan

{{ $progress }}%

@if ($href)

Klik untuk lihat detail pasien

@endif
@if ($href)
@endif