@extends('layouts.admin') @section('title', 'Patients Directory') @section('page', 'patients') @section('content') @php $cur = config('clinic.currency.symbol'); @endphp

Patients Directory

Manage all your patients and their treatment history in one place.

Total Patients
{{ $stats['total'] }}
{{ $stats['active'] }} Active · {{ $stats['inactive'] }} Inactive
Active Patients
{{ $stats['active'] }}
{{ $stats['total'] ? round($stats['active']/$stats['total']*100) : 0 }}% of total
Pending Dues
{{ $stats['dues_count'] }}
patients with balance
New This Month
{{ $stats['new_month'] }}
↑ +{{ $stats['new_month'] }} this month
Filter & Segment ControlsFilter patients by status or doctor
Patient List {{ $patients->total() }} Records
@forelse($patients as $p) @php $due = $p->balanceDue(); $lastTx = $p->treatments->sortByDesc('created_at')->first(); @endphp @empty @endforelse
Patient NameContact InfoAssigned DoctorLast ProcedureLast VisitTags / LabelsBalanceActions
{{ strtoupper(substr($p->full_name,0,1)) }}
{{ $p->dob ? $p->dob->age.' yrs' : '—' }} · {{ ucfirst($p->gender ?? '—') }} · {{ $p->city ?? '—' }}
{{ $p->phone }}
{{ $p->email ?? '—' }}
{{ $p->assignedDoctor?->name ?? '—' }} {{ $lastTx?->diagnosis?->name ?? $p->last_treatment ?? '—' }} {{ $p->last_visit_date?->format('Y-m-d') ?? '—' }} @forelse($p->tags as $t){{ $t->name }} @empty {{ ucfirst($p->crm_status) }}@endforelse @if($due > 0){{ $cur }} {{ number_format($due,2) }} DUE @else● Paid in full@endif
No patients found.
Showing {{ $patients->firstItem() ?? 0 }} to {{ $patients->lastItem() ?? 0 }} of {{ $patients->total() }} patients
@for($i=1;$i<=$patients->lastPage();$i++) {{ $i }} @endfor
@endsection