@if (session()->has('message')) @endif @if (session()->has('error')) @endif

My Patients Total Patients: {{ $patients->total() ?? 0 }}

Manage all patients assigned to you
@if (!$isLoaded)
Loading...

Loading patients...

@else
@forelse ($patients as $patient) @foreach ($patient->patientClinics as $association) @php $user = $association->patient; $profileImage = $user->patient?->profile_image; @endphp @endforeach @empty @endforelse
Name {!! $sortField === 'name' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!} Email {!! $sortField === 'email' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!} Clinic Status Joined Date Actions
{{ $patient->email }}
{{ $association->clinic->name ?? 'N/A' }}
{{ ucfirst($association->status ?? 'Inactive') }} {{ $association->created_at ? $association->created_at->format('M d, Y') : 'N/A' }}
No Patients Found

@if ($searchTerm) No patients match your search criteria. @else You don't have any patients assigned yet. @endif

@if ($searchTerm) @endif
{{-- Pagination --}} @if ($patients->hasPages())
{{ $patients->links('vendor.livewire.bootstrap') }}
@endif @endif