@extends('layouts.app') @section('content')
| # | 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 |
| No patients found. | ||||||