Patient Record
{{ $name }} · {{ $queueNo }}
{{ $name }}
Allocation Status
Treatment History
{{ $visits }} visits total{{ $treatmentName }}
{{ $date }} · {{ $doctorText }}
“{{ $notes }}”@php $doctorName = $doctor['full_name'] ?? 'Doctor'; $displayDoctorName = str_starts_with($doctorName, 'Dr.') ? $doctorName : 'Dr. ' . $doctorName; $roomName = $room['room_name'] ?? 'Dental Room 1'; $name = $patient['full_name'] ?? 'Unknown Patient'; $initial = strtoupper(substr($name, 0, 1)); $patientId = $patient['upsi_id'] ?? '-'; $role = ucfirst($patient['role'] ?? 'Patient'); $faculty = $patient['faculty'] ?? '-'; $dobText = !empty($patient['date_of_birth']) ? date('d M Y', strtotime($patient['date_of_birth'])) : '-'; $bloodType = $patient['blood_type'] ?? '-'; $allergies = $patient['allergies'] ?? 'None recorded'; $queueNo = $queue['queue_number'] ?? '-'; $total = (float)($allocation['total_amount'] ?? (($patient['role'] ?? '') === 'staff' ? 250 : 100)); $balance = (float)($allocation['balance_amount'] ?? $total); $used = max($total - $balance, 0); $percent = $total > 0 ? min(($used / $total) * 100, 100) : 0; $visits = count($treatmentHistory ?? []); @endphp
{{ $name }} · {{ $queueNo }}
{{ $date }} · {{ $doctorText }}
“{{ $notes }}”