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;
}
}