feat(sms): add doctor appointment notification SMS for paid appointments
This commit is contained in:
@@ -321,6 +321,17 @@ final class PaymentManager
|
||||
]);
|
||||
$this->smsService->dispatchAsync($mobile, $message, tag: SmsLog::TAG_PAYMENT);
|
||||
}
|
||||
|
||||
// اعلان به شمارهٔ «اعلان نوبت» دکتر — فقط برای نوبتهای پرداختشدهٔ سایت (همین مسیر).
|
||||
$notify = $doctor->getNotificationMobile();
|
||||
if ($notify) {
|
||||
$docMessage = $this->smsText->resolve(SmsLog::TAG_DOCTOR_APPOINTMENT, [
|
||||
'patient' => $appointment->getPatientName() ?? '—',
|
||||
'date' => $this->jalali->formatDateTime($appointment->getSlotStart(), false),
|
||||
'time' => date('H:i', $appointment->getSlotStart()),
|
||||
]);
|
||||
$this->smsService->dispatchAsync($notify, $docMessage, tag: SmsLog::TAG_DOCTOR_APPOINTMENT);
|
||||
}
|
||||
}
|
||||
|
||||
private function handleSubscriptionActivation(Payment $payment): void
|
||||
|
||||
Reference in New Issue
Block a user