@php $heightValue = $record->height; if (is_numeric($heightValue) && (float)$heightValue > 0 && (float)$heightValue <= 3) { $heightValue = round((float)$heightValue * 100, 1) . ' cm'; } elseif (is_numeric($heightValue)) { $heightValue = (float)$heightValue . ' cm'; } else { $heightValue = '-'; } $weightValue = is_numeric($record->weight) ? ((float)$record->weight . ' kg') : '-'; $bmiValue = is_numeric($record->bmi) ? number_format((float)$record->bmi, 2) : '-'; $complaint = trim((string)($record->main_presenting_complaint ?? '')); if ($complaint === '') { $complaint = '-'; } if (mb_strlen($complaint) > 180) { $complaint = mb_substr($complaint, 0, 177) . '...'; } @endphp

Pre-TB Visit One-Page Summary

Record ID: {{ $record->id }} | CID: {{ $record->cid ?: '-' }} | Generated: {{ $generatedAt }}

Patient And Visit Details

Patient name{{ $record->name ?: '-' }}
Age / Sex{{ $record->age ?? '-' }} / {{ $sexLabel }}
Height / Weight / BMI{{ $heightValue }} / {{ $weightValue }} / {{ $bmiValue }}
Type of screening{{ $typeOfScreeningLabel }}
Mode of entry{{ $modeOfEntryLabel }}
Date of screening{{ $dateOfScreening }}
Date of next visit{{ $dateOfNextVisit }}
Main presenting complaint{{ $complaint }}

Symptoms

@foreach ($symptoms as $symptom) @endforeach
Symptom Present Duration (days)
{{ $symptom['label'] }} {{ $symptom['present'] ?: '-' }} {{ $symptom['days'] !== null && $symptom['days'] !== '' ? $symptom['days'] : '-' }}

Risk Factors

@foreach ($riskFactors as $label => $value) @endforeach
{{ $label }} {{ $value }}
This summary is intentionally condensed to one page for quick clinical review.