@extends('layouts.app') @section('content')
Patients
Search and manage registered patient records
← Dashboard + Register Patient
@if($patients->isEmpty())
👨‍⚕️
No patients found
@else
@foreach($patients as $p) @php $status = strtolower( $p->status ?? 'active' ); $bg = match($status) { 'active' => '#dcfce7', 'inactive' => '#fef3c7', 'archived' => '#fee2e2', default => '#f3f4f6' }; $color = match($status) { 'active' => '#166534', 'inactive' => '#92400e', 'archived' => '#991b1b', default => '#374151' }; @endphp @endforeach
Patient Patient No Gender District Status Action
{{ $p->first_name }} {{ $p->last_name }}
@if($p->phone)
{{ $p->phone }}
@endif
{{ $p->patient_no }}
{{ $p->gender }}
{{ $p->district ?? '—' }}
{{ ucfirst($status) }} View Patient
@endif
@endsection