-
app/Models/Patient.php
Open in GitHubuse Carbon\Carbon; class Patient extends Model { // public function getLastVisitAttribute($value) { return Carbon::parse($value)->format('Y-m-d'); } // }
-
resources/js/Pages/AppointmentAdd.tsx
Open in GitHub// <List size="default" itemLayout="vertical"> // Patient ID: {patient.patient_id} <br /> Total visits: {patient.visit_count} <br /> Last visit: {patient.last_visit} </List.Item> </List> //