@php $doctorName = $doctor['full_name'] ?? 'Doctor'; $displayDoctorName = str_starts_with($doctorName, 'Dr.') ? $doctorName : 'Dr. ' . $doctorName; $initial = strtoupper(substr(str_replace('Dr. ', '', $doctorName), 0, 1)); $roomName = $room['room_name'] ?? 'Dental Room 1'; $staffId = $doctor['upsi_id'] ?? $doctor['staff_id'] ?? '-'; $email = $doctor['email'] ?? '-'; $phone = $doctor['phone'] ?? '-'; $department = $doctor['department'] ?? 'Pergigian (Dental)'; $specialisation = $doctor['specialisation'] ?? 'General Dentistry'; $qualification = $doctor['qualification'] ?? 'BDS (Malaya), MFDS RCS'; $registrationNo = $doctor['registration_no'] ?? 'ADC/2015/1234'; $years = $doctor['years_of_practice'] ?? '9 years'; $language = $doctor['language'] ?? 'Malay, English'; $dutyStatus = $doctor['duty_status'] ?? 'On Duty'; @endphp Doctor Profile

My Profile

{{ now()->format('D, d M Y') }}
🔔
@if(session('success'))
{{ session('success') }}
@endif

Doctor Profile

Manage your professional information and preferences

{{ $initial }}

{{ $displayDoctorName }}

Dental Officer · {{ $roomName }}

{{ $dutyStatus }}
Staff ID{{ $staffId }}
Department{{ $department }}
Room Assignment{{ $roomName }}
Specialisation{{ $specialisation }}
Today's Summary
Patients Seen
{{ $patientsSeen }}
Treatments Done
{{ $treatmentsDone }}
Queue Remaining
{{ $queueRemaining }}
Follow-Ups Issued
{{ $followUpsIssued }}

Professional Information

Edit Profile
{{ $displayDoctorName }}
{{ $staffId }}
{{ $email }}
{{ $phone }}
{{ $qualification }}
{{ $registrationNo }}
{{ $years }}
{{ $language }}
Weekly Schedule
MonOn
TueOn
WedOn
ThuOn
FriHalf

Morning Session

8:00 AM – 12:00 PM

{{ $roomName }}

Afternoon Session

2:00 PM – 5:00 PM

{{ $roomName }}

Recent Treatments

View All →
@if(count($recentTreatments) > 0) @foreach($recentTreatments as $t) @php $patient = $t['patient']['full_name'] ?? 'Patient'; $date = !empty($t['treatment_date']) ? date('d M Y', strtotime($t['treatment_date'])) : '-'; $amount = (float)($t['amount'] ?? 0); $appointmentId = $t['appointment_id'] ?? null; @endphp @endforeach
Date Patient Treatment Cost Status
{{ $date }} @if($appointmentId) {{ $patient }} @else {{ $patient }} @endif {{ $t['treatment_type'] ?? 'Dental Treatment' }} RM{{ number_format($amount,2) }} Completed
@else
No recent treatment records found.
@endif