@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
@if ($history->isNotEmpty())
@foreach ($history as $item) @include('partials.examination_history_first_columns', [ 'appointment' => $item->appointment, 'alternateDate' => $item->completed_at ]) @endforeach
No. No. Registrasi Tanggal MCU Perusahaan/Jabatan Paket MCU Kesimpulan Status Aksi
{{ \Illuminate\Support\Str::limit( $item->conclusion ?? '-', 120, ) }} {{ ucfirst(str_replace('_', ' ', $item->status)) }}
@foreach ($history as $item) @endforeach @else

Belum ada riwayat pemeriksaan audiometry sebelumnya untuk pasien ini.

@endif