@extends('admin.layouts.app') @section('title', 'Patients') @section('page-title', 'Patients') @section('page-subtitle', 'Patient records') @section('content')
Add Patient

{{ $stats['total'] }}

Total

{{ $stats['active'] }}

Active

{{ $stats['new_this_month'] }}

New This Month

{{ $stats['in_treatment'] }}

In Treatment

@if(count($psychologists) > 0)
@endif
@forelse($patients as $patient) @empty @endforelse
Patient ID Patient Psychologist Status Actions
{{ $patient->patient_id }}

{{ $patient->full_name }}

{{ $patient->age }} years old

{{ $patient->psychologist?->name ?? 'Unassigned' }}

{{ ucfirst($patient->status) }}
@csrf @method('DELETE')

No patients found

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