@php $latest = $customer->records->first(); $status = $latest ? $latest->renewal_status : 'no_record'; $statusColor = $latest ? $latest->status_color : 'secondary'; $statusLabel = $latest ? $latest->status_label : 'No Record'; @endphp
{{ $customer->name }}
{{ $customer->is_corporate ? 'Corporate' : 'Individual' }} {{ $statusLabel }}Current Medical Status
{{ $statusLabel }}Record History
@if($customer->records->isEmpty())No medical records found