@php $mcuHistory = $mcuHistory ?? collect(); $mcuHistoryShowData = $mcuHistoryShowData ?? []; $mcuHealthStatusLabels = [ 'fit' => 'Fit', 'fit_with_treatment' => 'Fit With Treatment', 'temporary_unfit' => 'Temporary Unfit', 'unfit' => 'Unfit', 'fit_for_the_job' => 'Fit For The Job', 'fit_for_the_job_with_treatment' => 'Fit For The Job With Treatment', 'fit_with_note' => 'Fit With Note', 'fit_for_the_job_with_note' => 'Fit For The Job With Note', ]; @endphp
@if ($mcuHistory->isNotEmpty())
@foreach ($mcuHistory as $histResult) @php $hs = $histResult->health_status; $hsLabel = $mcuHealthStatusLabels[$hs] ?? ($hs ? ucwords(str_replace('_', ' ', $hs)) : null); $snippetSource = trim((string) ($histResult->examination_summary ?? '') ?: (string) ($histResult->doctor_notes ?? '')); $snippet = \Illuminate\Support\Str::limit($snippetSource, 220); $summaryCell = ($hsLabel ? $hsLabel . ($snippet !== '' ? ': ' : '') : '') . $snippet; if ($summaryCell === '') { $summaryCell = 'Belum ada ringkasan'; } @endphp @include('partials.examination_history_first_columns', [ 'appointment' => $histResult->appointment, 'overrideMcuDate' => $histResult->examination_date, 'patient' => $histResult->patient, 'historyMcuResult' => $histResult ]) @endforeach
No. No. Registrasi Tanggal MCU Perusahaan/Jabatan Paket MCU Ringkasan Hasil MCU Sebelumnya Aksi
{!! nl2br(e($summaryCell)) !!}
@if ($mcuHistory instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $mcuHistory->links('partials.tables.pagination') }} @endif
@foreach ($mcuHistory as $histResult) @php $__showEmbed = array_merge($mcuHistoryShowData[$histResult->id] ?? [], [ 'mcuHistoryModalEmbed' => true, ]); @endphp @endforeach @else

Belum ada riwayat MCU sebelumnya yang sudah difinalisasi untuk pasien ini.

@endif