add new featurs like realtime 2026-5-10-3
This commit is contained in:
@@ -47,12 +47,15 @@ try {
|
||||
$stmt->execute();
|
||||
$expiring_drivers = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
foreach($expiring_drivers as $d) {
|
||||
// فك تشفير البيانات الحساسة
|
||||
$firstName = $encryptionHelper->decryptData($d['first_name']);
|
||||
$lastName = $encryptionHelper->decryptData($d['last_name']);
|
||||
|
||||
$alerts[] = [
|
||||
'type' => 'license',
|
||||
'severity' => 'warning',
|
||||
'title' => 'رخصة كابتن قاربت على الانتهاء',
|
||||
'description' => "رخصة الكابتن " . $d['first_name'] . " " . $d['last_name'] . " ستنتهي بتاريخ " . $d['expiry_date'] . ".",
|
||||
// We use current time for sorting purposes, but display the expiry date
|
||||
'description' => "رخصة الكابتن " . $firstName . " " . $lastName . " ستنتهي بتاريخ " . $d['expiry_date'] . ".",
|
||||
'date' => date('Y-m-d H:i:s'),
|
||||
'action_id' => $d['id']
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user