@extends('layouts.app') @section('content')

Patients

@forelse($patients as $p) @empty @endforelse
# Name Age Department Contact Last Visit Actions
{{ $p->id }} {{ $p->name }} {{ $p->age }} {{ $p->department }} {{ $p->contact }} {{ optional($p->visits()->latest()->first())->visit_date ?? '-' }} Edit
@csrf @method('DELETE')
No patients found.
{{ $patients->withQueryString()->links() }}
@endsection