sendPackageNotification with customer variable

This commit is contained in:
Ibnu Maksum
2024-03-04 10:02:23 +07:00
parent 4ee3743cf3
commit 403de91fba
3 changed files with 8 additions and 7 deletions

View File

@ -66,10 +66,11 @@ class Message
}
}
public static function sendPackageNotification($phone, $name, $package, $price, $message, $via)
public static function sendPackageNotification($customer, $package, $price, $message, $via)
{
global $u;
$msg = str_replace('[[name]]', $name, $message);
$msg = str_replace('[[name]]', $customer['fullname'], $message);
$msg = str_replace('[[username]]', $customer['username'], $message);
$msg = str_replace('[[package]]', $package, $msg);
$msg = str_replace('[[price]]', $price, $msg);
if($u){