feat(sms): add doctor appointment notification SMS for paid appointments

This commit is contained in:
hamed
2026-07-02 21:11:17 +03:30
parent 10be1728ff
commit 1804b4215d
5 changed files with 162 additions and 1 deletions
+2
View File
@@ -20,6 +20,7 @@ class SmsLog
public const TAG_USER_TEMPLATE = 'user_template';
public const TAG_WELCOME = 'welcome';
public const TAG_SECRETARY = 'secretary';
public const TAG_DOCTOR_APPOINTMENT = 'doctor_appointment';
public const TAGS = [
self::TAG_GLOBAL,
@@ -31,6 +32,7 @@ class SmsLog
self::TAG_USER_TEMPLATE,
self::TAG_WELCOME,
self::TAG_SECRETARY,
self::TAG_DOCTOR_APPOINTMENT,
];
#[ORM\Id]
+5
View File
@@ -48,6 +48,11 @@ class SmsMessageTemplate
'body' => "شما به‌عنوان منشیِ {owner} در کلینیک‌پرو تعریف شدید.\nشماره‌کاربری: {username}\nلینک ورود: {link}",
'variables' => ['owner', 'username', 'link'],
],
SmsLog::TAG_DOCTOR_APPOINTMENT => [
'title' => 'نوبت جدید (اعلان به پزشک)',
'body' => "نوبت جدید ثبت شد.\nبیمار: {patient}\nتاریخ: {date} ساعت {time}\n\nبرای مدیریت نوبت‌های خود به‌صورت رایگان به سایت clinic-pro.ir مراجعه کنید.\nکلینیک پرو",
'variables' => ['patient', 'date', 'time'],
],
];
#[ORM\Id]