Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

amitavroy/doctor-app

40 stars
2 code files
View amitavroy/doctor-app on GitHub

app/Models/Patient.php

Open in GitHub
use 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>
 
// ...

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.