@extends('layouts.app') @section('title', 'Patients') @section('content')
@if(request('search')) Clear @endif
Register Patient
@forelse($patients as $patient) {{-- Whole row is clickable — opens the patient profile. The Edit link in the actions column stays as an inline ; the hmis-row-click handler in the layout deliberately skips clicks on anchors and buttons so the Edit link continues to work. The standalone "View" button was removed 25 May 2026 because the row click now does the same thing. --}} @empty @endforelse
MRN Date Created Patient Name Gender Age Phone Insurance Actions
{{ $patient->mrn }} {{ $patient->created_at->format('d M Y') }} {{-- Name used to be wrapped in an to the show page. Unwrapped on 25 May 2026 because the row click already navigates there — leaving the anchor would have created two different click targets for the same action, and the anchor styling drew the eye into thinking only the name was clickable. --}} {{ $patient->first_name }} {{ $patient->middle_name }} {{ $patient->last_name }} {{ $patient->gender }} {{ $patient->age ?? '-' }} {{ $patient->phone ?? '-' }} @if($patient->insurance_id) {{ $patient->insurance_member_no ?? 'Insured' }} @else Cash @endif Edit
{{ request('search') ? 'No patients match your search.' : 'No patients registered yet.' }} @unless(request('search'))
Register the first patient@endunless
@if($patients->hasPages())
{{ $patients->links() }}
@endif
@endsection