@if($successMessage) @endif
Name
Phone
Gender
Visits
Actions
@foreach($patients as $patient)
gender === 'm' ? 'male' : ($patient->gender === 'f' ? 'female' : 'user')) . '.png') }}" alt="Default User" class="rounded-circle img-fluid avatar-img-default">
{{ $patient->name }}
{{ $patient->gender === 'm' ? 'Male' : ($patient->gender === 'f' ? 'Female' : 'Unknown') }}
{{ $patient->phone }}
@if($patient->past_visits_count > 0) @endif @if($patient->upcoming_visits_count > 0) @endif
@if(empty(array_intersect($patient->visits->pluck('clinic_id')->toArray(), auth('client')->user()->clinicAssistant->pluck('id')->toArray()))) @endif
gender === 'm' ? 'male' : ($patient->gender === 'f' ? 'female' : 'user')) . '.png') }}" alt="Default User" class="rounded-circle img-fluid avatar-img-default">
{{ $patient->name }}
{{ $patient->phone }}
{{ $patient->gender === 'm' ? 'Male' : ($patient->gender === 'f' ? 'Female' : '') }}
@if($patient->past_visits_count > 0) @else @endif @if($patient->upcoming_visits_count > 0) @else @endif
@if(empty(array_intersect($patient->clinics->pluck('id')->toArray(), auth('client')->user()->clinicAssistant->pluck('id')->toArray()))) @endif
@endforeach
{{ $patients->links() }}