@can('patients.export') Export CSV @endcan @can('patients.create') Register patient @endcan
@if (request()->hasAny(['q', 'category', 'status', 'gender', 'county', 'sort'])) Clear @endif
@if ($patients->isEmpty()) @if (request('q')) Nothing on file matches “{{ request('q') }}”. Confirm the spelling, then register the patient if they are new. @else The index is empty. Register the first patient to get started. @endif @can('patients.create') Register patient @endcan @else
@foreach ($patients as $patient) @endforeach
Patient MRN Age / Sex Contact Category Cover Visits Status
{{ Str::of($patient->first_name)->substr(0, 1)->upper() }}{{ Str::of($patient->last_name)->substr(0, 1)->upper() }}
{{ $patient->full_name }} @if ($patient->isRestricted()) @endif
{{ $patient->national_id ? 'ID '.$patient->national_id : 'No national ID on file' }}
{{ $patient->medical_record_number }} {{ $patient->age_display }} · {{ $patient->gender_label }} {{ $patient->phone ?: '—' }} @if ($patient->town)
{{ $patient->town }}{{ $patient->county ? ', '.$patient->county : '' }}
@endif
@if ($patient->primaryInsurance)
{{ $patient->primaryInsurance->payer?->name }}
{{ $patient->primaryInsurance->member_number }}
@else Self paying @endif
{{ $patient->visits_count }} Open

Showing {{ $patients->firstItem() }}–{{ $patients->lastItem() }} of {{ number_format($patients->total()) }}

{{ $patients->links() }}
@endif