Tambahkan notifikasi nilai kritis

This commit is contained in:
Dwi Swandhana
2026-03-15 05:51:26 +07:00
parent 89d254eae8
commit e3afceee52
@@ -117,9 +117,11 @@
<th>No Foto</th>
<th>No Register</th>
<th>Pasien</th>
<th>Asal Pasien</th>
<th>Spesimen</th>
<th>Waktu Set Nilai Kritis</th>
<th>Waktu Ditindaklanjuti</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@@ -129,14 +131,43 @@
<td>{{ $item->nofoto ?? '-' }}</td>
<td>{{ $item->noregister ?? '-' }}</td>
<td>{{ $item->nmpasien ?? '-' }}</td>
<td>{{ $item->asalpasien ?? '-' }}</td>
<td>{{ $item->nm_spesimen ?? '-' }}</td>
<td>{{ $item->critical_set_at ? \Carbon\Carbon::parse($item->critical_set_at)->format('d-m-Y H:i:s') : '-' }}</td>
<td>
{{ $item->critical_set_at ? \Carbon\Carbon::parse($item->critical_set_at)->format('d-m-Y H:i:s') : '-' }}
@if(!empty($item->critical_set_by_name))
<br><small>oleh {{ $item->critical_set_by_name }}</small>
@endif
</td>
<td>
{{ $item->followed_up_at ? \Carbon\Carbon::parse($item->followed_up_at)->format('d-m-Y H:i:s') : '-' }}
@if(!empty($item->followed_up_by_name))
<br><small>oleh {{ $item->followed_up_by_name }}</small>
@endif
</td>
<td>
@php
$status = $item->follow_up_status ?? '';
$method = $item->follow_up_method ?? '';
$recipient = $item->follow_up_recipient ?? '';
$reason = $item->follow_up_reason ?? '';
@endphp
@if($status === 'reported')
<div><strong>Dilaporkan</strong></div>
<small class="text-muted">
Melalui: {{ $method !== '' ? $method : '-' }}<br>
Penerima: {{ $recipient !== '' ? $recipient : '-' }}
</small>
@elseif($status === 'not_reported')
<div><strong>Belum Dilaporkan</strong></div>
<small class="text-muted">
Alasan: {{ $reason !== '' ? $reason : '-' }}
</small>
@else
<small class="text-muted">-</small>
@endif
</td>
</tr>
@endforeach
</tbody>