@php $history = $history ?? collect(); $audiometryHistoryChartPayload = []; foreach ($history as $h) { $r = $h->right_ear_results; $r = is_array($r) ? $r : (json_decode($r, true) ?: []); $l = $h->left_ear_results; $l = is_array($l) ? $l : (json_decode($l, true) ?: []); $rb = $h->right_bc_results; $rb = is_array($rb) ? $rb : (json_decode($rb, true) ?: []); $lb = $h->left_bc_results; $lb = is_array($lb) ? $lb : (json_decode($lb, true) ?: []); $audiometryHistoryChartPayload[$h->id] = [ 'right' => $r, 'left' => $l, 'rightBc' => $rb, 'leftBc' => $lb, ]; } @endphp
| No. | No. Registrasi | Tanggal MCU | Perusahaan/Jabatan | Paket MCU | Kesimpulan | Status | Aksi |
|---|---|---|---|---|---|---|---|
| {{ \Illuminate\Support\Str::limit( $item->conclusion ?? '-', 120, ) }} | {{ ucfirst(str_replace('_', ' ', $item->status)) }} |
Belum ada riwayat pemeriksaan audiometry sebelumnya untuk pasien ini.