Patients List Total Patients : {{ $totalPatients }}
| Patient | Phone | Doctor | Address | Last Visit | Status | |
|---|---|---|---|---|---|---|
| {{ $patient->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->patient->address ?? 'N/A' }} | {{ $lastVisit }} | {{ ucfirst($patient->status) }} | ||
| No patients found. | ||||||