@php $doctorName = $doctor['full_name'] ?? 'Doctor'; $displayDoctorName = str_starts_with($doctorName, 'Dr.') ? $doctorName : 'Dr. ' . $doctorName; $roomName = $room['room_name'] ?? 'Dental Room 1'; @endphp Record Treatment List

Record Treatment

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

Patient Treatment Records

Select a patient appointment to view records or record a new treatment

← Back to Dashboard

Treatment Appointment List

{{ count($appointments ?? []) }} records total
@if(count($appointments ?? []) > 0) @foreach($appointments as $appointment) @php $patient = $appointment['patient'] ?? []; $name = $patient['full_name'] ?? 'Unknown Patient'; $initial = strtoupper(substr($name,0,1)); $upsiId = $patient['upsi_id'] ?? '-'; $date = !empty($appointment['appointment_date']) ? date('d M Y', strtotime($appointment['appointment_date'])) : '-'; $time = !empty($appointment['appointment_time']) ? date('g:i A', strtotime($appointment['appointment_time'])) : '-'; $status = strtolower($appointment['status'] ?? 'pending'); $hasTreatment = $appointment['has_treatment'] ?? false; @endphp @endforeach
Patient Date Time Reason Status Treatment Action
{{ $initial }}
{{ $name }} {{ $upsiId }}
{{ $date }} {{ $time }} {{ $appointment['reason'] ?? 'Dental Treatment' }} {{ ucfirst($status) }} @if($hasTreatment) Completed @else Pending @endif
View Record @if(!$hasTreatment) Record Treatment @else Recorded @endif
@else
No treatment appointments found.
@endif