api chat, send summary, health sertificate, callback duitku

This commit is contained in:
2024-05-16 17:12:29 +07:00
parent 8bcc3fe15d
commit 0ac3e4d451
10 changed files with 504 additions and 84 deletions

View File

@@ -490,4 +490,13 @@ class Helper
return $umur . ' years old';
}
public static function calculateDateDifference($startDate, $endDate)
{
$start = Carbon::parse($startDate);
$end = Carbon::parse($endDate);
return $start->diffInDays($end) + 1;
}
}

View File

@@ -23,6 +23,13 @@ class Livechat extends Model
'accept_date',
'start_date',
'end_date',
'status',
'subject',
'object',
'assessment',
'plan',
'health_certificate_start',
'health_certificate_end',
];
public function doctor() {

View File

@@ -14,6 +14,7 @@ class PrescriptionItem extends Model
'qty',
'unit_id',
'note',
'signa'
'signa',
'direction'
];
}