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

Patients

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