{{ $rp->pengobatan_ke }}
{{ $rp->diagnosa }}
{{ $rp->tgl_mulai_pengobatan }}
{{ $rp->tgl_estimasi_selesai }}
{{ $rp->jam_minum ?? '-' }}
{{ $rp->jumlah_missed ?? 0 }} Hari
@php
$status = $rp->status_kesehatan ?? 'Masih Proses';
$bgColor = '#f1f5f9';
$textColor = '#475569';
if ($status == 'Sembuh') {
$bgColor = '#dcfce7';
$textColor = '#166534';
}
elseif ($status == 'Gagal') {
$bgColor = '#fee2e2';
$textColor = '#991b1b';
}
elseif ($status == 'Meninggal') {
$bgColor = '#e2e8f0';
$textColor = '#334155';
}
elseif ($status == 'Masih Proses') {
$bgColor = '#fef3c7';
$textColor = '#92400e';
}
@endphp
{{ $status }}
1 && $isRiwayatLama)
onclick="toggleRiwayat(this)"
@endif>
Progress Minum Obat - Pengobatan Ke {{ $rp->pengobatan_ke }}
@if($totalRiwayat > 1 && $isRiwayatLama)
@endif
TAHAP AWAL (56 HARI)
@foreach($rp->tahap_awal as $hari => $item)
TAHAP LANJUTAN (112 HARI)
{{ $hari }}
@if(($item['status'] ?? null) == 'done')
@elseif(($item['status'] ?? null) == 'missed')
@endif
@endforeach
@foreach($rp->tahap_lanjutan as $hari => $item)
{{ $hari }}
@if(($item['status'] ?? null) == 'done')
@elseif(($item['status'] ?? null) == 'missed')
@endif
@endforeach