@php $name = $patient['full_name'] ?? 'Unknown Patient'; $initial = strtoupper(substr($name, 0, 1)); $role = ucfirst($patient['role'] ?? 'Patient'); $upsiId = $patient['upsi_id'] ?? '-'; $email = $patient['email'] ?? '-'; $phone = $patient['phone'] ?? '-'; $faculty = $patient['faculty'] ?? '-'; $total = (float)($allocation['total_amount'] ?? 0); $balance = (float)($allocation['balance_amount'] ?? 0); $lastVisitText = !empty($lastVisit['appointment_date']) ? date('d M Y', strtotime($lastVisit['appointment_date'])) : 'No previous visit'; $ref = $appointment['reference_no'] ?? 'PKU-' . substr($appointment['id'] ?? '', 0, 8); @endphp Patient Verification

Patient Verification

{{ now()->format('D, d M Y') }}

Patient Verification

Confirm patient identity before check-in

Verification Check

{{ $ref }}

Identity Verified ✓
{{ $initial }}

{{ $name }}

{{ $role }} ID: {{ $upsiId }}

{{ $role }} Active Account
IC / UPSI Number {{ $upsiId }}
✓ Verified
Phone {{ $phone }}
✓ Matched
Email {{ $email }}
✓ Matched
Faculty {{ $faculty }}
Allocation RM{{ number_format($balance,2) }} / RM{{ number_format($total,2) }}
Active
Last Visit {{ $lastVisitText }}
@csrf
@csrf