Patients List Total Patients : {{ $totalPatients }}
| Patient | Phone | {{--Doctor | --}}Address | Last Visit | Status | |
|---|---|---|---|---|---|---|
| {{ $patient->patient->phone ?? 'N/A' }} | {{--
@if ($doctor)
@php
// Access the doctor profile through the doctor relationship
$doctorProfile = $doctor->doctor;
$doctorProfileImage = $doctorProfile->profile_image ?? null;
$doctorInitials = getInitials($doctor->name);
$avatarColorClass = getAvatarColorClass($doctor->name);
@endphp
@if ($doctorProfileImage && Storage::disk('public')->exists($doctorProfileImage))
{{ $doctorInitials }}
@endif
{{ $doctor->name }}{{ $doctorProfile->specialization ?? 'General Practitioner' }} | --}}
{{ $patient->patient->address ?? 'N/A' }} | {{ $lastVisit }} | {{ ucfirst($patient->patient->status) }} | ||
| No patients found. | ||||||