Patient Management

Manage patient records and information

@if(!auth()->user()->isDoctor()) @endif
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
@forelse($patients as $patient) @empty @endforelse
Patient ID @if($sortBy === 'patient_id') @if($sortDirection === 'asc') ↑ @else ↓ @endif @endif Name @if($sortBy === 'first_name') @if($sortDirection === 'asc') ↑ @else ↓ @endif @endif Email Phone Age Registered @if($sortBy === 'created_at') @if($sortDirection === 'asc') ↑ @else ↓ @endif @endif Actions
{{ $patient->patient_id }} {{ $patient->full_name }} {{ $patient->email ?? 'N/A' }} {{ $patient->phone ?? 'N/A' }} {{ $patient->age }} years {{ $patient->created_at->format('M d, Y') }}
@if(auth()->user()->isFrontDesk() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) @php $hasActiveVisit = $patient->active_visit !== null; @endphp @if($hasActiveVisit) @else @endif @endif View @if(!auth()->user()->isDoctor()) Edit @endif
@if($search) No patients found matching "{{ $search }}" @else No patients registered yet. @if(!auth()->user()->isDoctor()) @endif @endif
@if($patients->hasPages())
{{ $patients->links() }}
@endif
@if($showCreateModal) @endif @if($showCreateVisitModal && $selectedPatientForVisit) @endif