PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.8
Booking for Appointments and Events Calendar – Amelia v2.4.8
2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Infrastructure / WP / Translations / NotificationsStrings.php
ameliabooking / src / Infrastructure / WP / Translations Last commit date
BackendStrings.php 1 year ago FrontendStrings.php 1 year ago LiteBackendStrings.php 1 week ago LiteFrontendStrings.php 1 week ago NotificationsStrings.php 1 week ago
NotificationsStrings.php
2111 lines
1 <?php
2
3 namespace AmeliaBooking\Infrastructure\WP\Translations;
4
5 /**
6 * Class NotificationsStrings
7 *
8 * @package AmeliaBooking\Infrastructure\WP\Translations
9 *
10 * @SuppressWarnings(ExcessiveMethodLength)
11 * phpcs:disable Generic.Files.LineLength
12 */
13 class NotificationsStrings
14 {
15 /**
16 * Default notification copy — gettext extraction (jenkins/localazyUpload.sh --keyword).
17 *
18 * @param string $text English source (msgid).
19 * @return string
20 */
21 private static function notificationTxt($text)
22 {
23 return __($text, 'ameliabooking');
24 }
25
26 /**
27 * Array of default customer's notifications that are not time based
28 *
29 * @return array
30 */
31 public static function getAppointmentCustomerNonTimeBasedEmailNotifications()
32 {
33 return [
34 [
35 'name' => 'customer_appointment_approved',
36 'entity' => 'appointment',
37 'type' => 'email',
38 'time' => 'NULL',
39 'timeBefore' => 'NULL',
40 'timeAfter' => 'NULL',
41 'sendTo' => 'customer',
42 'subject' => self::notificationTxt('%service_name% Appointment Approved'),
43 'content' =>
44 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>You have successfully scheduled
45 <strong>%service_name%</strong> appointment with <strong>%employee_full_name%</strong>. We are
46 waiting you at <strong>%location_address% </strong>on <strong>%appointment_date_time%</strong>.
47 <br><br>Thank you for choosing our company,<br><strong>%company_name%</strong>')
48 ],
49 [
50 'name' => 'customer_appointment_pending',
51 'entity' => 'appointment',
52 'type' => 'email',
53 'time' => 'NULL',
54 'timeBefore' => 'NULL',
55 'timeAfter' => 'NULL',
56 'sendTo' => 'customer',
57 'subject' => self::notificationTxt('%service_name% Appointment Pending'),
58 'content' =>
59 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>The <strong>%service_name%</strong> appointment
60 with <strong>%employee_full_name%</strong> at <strong>%location_address%</strong>, scheduled for
61 <strong>%appointment_date_time%</strong> is waiting for a confirmation.<br><br>Thank you for
62 choosing our company,<br><strong>%company_name%</strong>')
63 ],
64 [
65 'name' => 'customer_appointment_rejected',
66 'entity' => 'appointment',
67 'type' => 'email',
68 'time' => 'NULL',
69 'timeBefore' => 'NULL',
70 'timeAfter' => 'NULL',
71 'sendTo' => 'customer',
72 'subject' => self::notificationTxt('%service_name% Appointment Rejected'),
73 'content' =>
74 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Your <strong>%service_name%</strong>
75 appointment, scheduled on <strong>%appointment_date_time%</strong> at <strong>%location_address%
76 </strong>has been rejected.<br><br>Thank you for choosing our company,
77 <br><strong>%company_name%</strong>')
78 ],
79 [
80 'name' => 'customer_appointment_canceled',
81 'entity' => 'appointment',
82 'type' => 'email',
83 'time' => 'NULL',
84 'timeBefore' => 'NULL',
85 'timeAfter' => 'NULL',
86 'sendTo' => 'customer',
87 'subject' => self::notificationTxt('%service_name% Appointment Canceled'),
88 'content' =>
89 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Your <strong>%service_name%</strong>
90 appointment, scheduled on <strong>%appointment_date_time%</strong> at <strong>%location_address%
91 </strong>has been canceled.<br><br>Thank you for choosing our company,
92 <br><strong>%company_name%</strong>')
93 ],
94 [
95 'name' => 'customer_appointment_rescheduled',
96 'entity' => 'appointment',
97 'type' => 'email',
98 'time' => 'NULL',
99 'timeBefore' => 'NULL',
100 'timeAfter' => 'NULL',
101 'sendTo' => 'customer',
102 'subject' => self::notificationTxt('%service_name% Appointment Rescheduled'),
103 'content' =>
104 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>The details for your
105 <strong>%service_name%</strong> appointment with <strong>%employee_full_name%</strong> at
106 <strong>%location_name%</strong> has been changed. The appointment is now set for
107 <strong>%appointment_date%</strong> at <strong>%appointment_start_time%</strong>.<br><br>
108 Thank you for choosing our company,<br><strong>%company_name%</strong>')
109 ]
110 ];
111 }
112
113 /**
114 * Array of default customer's notifications that are time based (require cron job)
115 *
116 * @return array
117 */
118 public static function getAppointmentCustomerTimeBasedEmailNotifications()
119 {
120 return [
121 [
122 'name' => 'customer_appointment_next_day_reminder',
123 'entity' => 'appointment',
124 'type' => 'email',
125 'time' => '"17:00:00"',
126 'timeBefore' => 'NULL',
127 'timeAfter' => 'NULL',
128 'sendTo' => 'customer',
129 'subject' => self::notificationTxt('%service_name% Appointment Reminder'),
130 'content' =>
131 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>We would like to remind you that you have
132 <strong>%service_name%</strong> appointment tomorrow at <strong>%appointment_start_time%</strong>.
133 We are waiting for you at <strong>%location_name%</strong>.<br><br>Thank you for
134 choosing our company,<br><strong>%company_name%</strong>')
135 ],
136 [
137 'name' => 'customer_appointment_follow_up',
138 'entity' => 'appointment',
139 'type' => 'email',
140 'time' => 'NULL',
141 'timeBefore' => 'NULL',
142 'timeAfter' => 1800,
143 'sendTo' => 'customer',
144 'subject' => self::notificationTxt('%service_name% Appointment Follow Up'),
145 'content' =>
146 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Thank you once again for choosing our company.
147 We hope you were satisfied with your <strong>%service_name%</strong>.<br><br>We look forward to
148 seeing you again soon,<br><strong>%company_name%</strong>')
149 ],
150 [
151 'name' => 'customer_birthday_greeting',
152 'entity' => 'appointment',
153 'type' => 'email',
154 'time' => '"17:00:00"',
155 'timeBefore' => 'NULL',
156 'timeAfter' => 'NULL',
157 'sendTo' => 'customer',
158 'subject' => self::notificationTxt('Happy Birthday'),
159 'content' =>
160 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Happy birthday!<br>We wish you all the best.
161 <br><br>Thank you for choosing our company,<br><strong>%company_name%</strong>')
162 ]
163 ];
164 }
165
166
167 /**
168 * Array of default employee's notifications that are not time based
169 *
170 * @return array
171 */
172 public static function getAppointmentProviderNonTimeBasedEmailNotifications()
173 {
174 return [
175 [
176 'name' => 'provider_appointment_approved',
177 'entity' => 'appointment',
178 'type' => 'email',
179 'time' => 'NULL',
180 'timeBefore' => 'NULL',
181 'timeAfter' => 'NULL',
182 'sendTo' => 'provider',
183 'subject' => self::notificationTxt('%service_name% Appointment Approved'),
184 'content' =>
185 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>You have one confirmed
186 <strong>%service_name%</strong> appointment at <strong>%location_name%</strong> on
187 <strong>%appointment_date%</strong> at <strong>%appointment_start_time%</strong>. The appointment
188 is added to your schedule.<br><br>Thank you,<br><strong>%company_name%</strong>')
189 ],
190 [
191 'name' => 'provider_appointment_pending',
192 'entity' => 'appointment',
193 'type' => 'email',
194 'time' => 'NULL',
195 'timeBefore' => 'NULL',
196 'timeAfter' => 'NULL',
197 'sendTo' => 'provider',
198 'subject' => self::notificationTxt('%service_name% Appointment Pending'),
199 'content' =>
200 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>You have new appointment
201 in <strong>%service_name%</strong>. The appointment is waiting for a confirmation.<br><br>Thank
202 you,<br><strong>%company_name%</strong>')
203 ],
204 [
205 'name' => 'provider_appointment_rejected',
206 'entity' => 'appointment',
207 'type' => 'email',
208 'time' => 'NULL',
209 'timeBefore' => 'NULL',
210 'timeAfter' => 'NULL',
211 'sendTo' => 'provider',
212 'subject' => self::notificationTxt('%service_name% Appointment Rejected'),
213 'content' =>
214 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>Your <strong>%service_name%</strong> appointment
215 at <strong>%location_name%</strong>, scheduled for <strong>%appointment_date%</strong> at
216 <strong>%appointment_start_time%</strong> has been rejected.
217 <br><br>Thank you,<br><strong>%company_name%</strong>')
218 ],
219 [
220 'name' => 'provider_appointment_canceled',
221 'entity' => 'appointment',
222 'type' => 'email',
223 'time' => 'NULL',
224 'timeBefore' => 'NULL',
225 'timeAfter' => 'NULL',
226 'sendTo' => 'provider',
227 'subject' => self::notificationTxt('%service_name% Appointment Canceled'),
228 'content' =>
229 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>Your <strong>%service_name%</strong> appointment,
230 scheduled on <strong>%appointment_date%</strong>, at <strong>%location_name%</strong> has been
231 canceled.<br><br>Thank you,<br><strong>%company_name%</strong>')
232 ],
233 [
234 'name' => 'provider_appointment_rescheduled',
235 'entity' => 'appointment',
236 'type' => 'email',
237 'time' => 'NULL',
238 'timeBefore' => 'NULL',
239 'timeAfter' => 'NULL',
240 'sendTo' => 'provider',
241 'subject' => self::notificationTxt('%service_name% Appointment Rescheduled'),
242 'content' =>
243 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>The details for your
244 <strong>%service_name%</strong> appointment at <strong>%location_name%</strong> has been changed.
245 The appointment is now set for <strong>%appointment_date%</strong> at
246 <strong>%appointment_start_time%</strong>.<br><br>Thank you,<br><strong>%company_name%</strong>')
247 ]
248 ];
249 }
250
251 /**
252 * Array of default providers's notifications that are time based (require cron job)
253 *
254 * @return array
255 */
256 public static function getAppointmentProviderTimeBasedEmailNotifications()
257 {
258 return [
259 [
260 'name' => 'provider_appointment_next_day_reminder',
261 'entity' => 'appointment',
262 'type' => 'email',
263 'time' => '"17:00:00"',
264 'timeBefore' => 'NULL',
265 'timeAfter' => 'NULL',
266 'sendTo' => 'provider',
267 'subject' => self::notificationTxt('%service_name% Appointment Reminder'),
268 'content' =>
269 self::notificationTxt('Dear <strong>%employee_full_name%</strong>,<br><br>We would like to remind you that you have
270 <strong>%service_name%</strong> appointment tomorrow at <strong>%appointment_start_time%</strong>
271 at <strong>%location_name%</strong>.<br><br>Thank you,
272 <br><strong>%company_name%</strong>')
273 ]
274 ];
275 }
276
277 /**
278 * Array of default customer's notifications that are not time based
279 *
280 * @return array
281 */
282 public static function getAppointmentCustomerNonTimeBasedSMSNotifications()
283 {
284 return [
285 [
286 'name' => 'customer_appointment_approved',
287 'entity' => 'appointment',
288 'type' => 'sms',
289 'time' => 'NULL',
290 'timeBefore' => 'NULL',
291 'timeAfter' => 'NULL',
292 'sendTo' => 'customer',
293 'subject' => 'NULL',
294 'content' =>
295 self::notificationTxt('Dear %customer_full_name%,
296
297 You have successfully scheduled %service_name% appointment with %employee_full_name%. We are waiting for you at %location_address% on %appointment_date_time%.
298
299 Thank you for choosing our company,
300 %company_name%')
301 ],
302 [
303 'name' => 'customer_appointment_pending',
304 'entity' => 'appointment',
305 'type' => 'sms',
306 'time' => 'NULL',
307 'timeBefore' => 'NULL',
308 'timeAfter' => 'NULL',
309 'sendTo' => 'customer',
310 'subject' => 'NULL',
311 'content' =>
312 self::notificationTxt('Dear %customer_full_name%,
313
314 The %service_name% appointment with %employee_full_name% at %location_address%, scheduled for %appointment_date_time% is waiting for a confirmation.
315
316 Thank you for choosing our company,
317 %company_name%')
318 ],
319 [
320 'name' => 'customer_appointment_rejected',
321 'entity' => 'appointment',
322 'type' => 'sms',
323 'time' => 'NULL',
324 'timeBefore' => 'NULL',
325 'timeAfter' => 'NULL',
326 'sendTo' => 'customer',
327 'subject' => 'NULL',
328 'content' =>
329 self::notificationTxt('Dear %customer_full_name%,
330
331 Your %service_name% appointment, scheduled on %appointment_date_time% at %location_address% has been rejected.
332
333 Thank you for choosing our company,
334 %company_name%')
335 ],
336 [
337 'name' => 'customer_appointment_canceled',
338 'entity' => 'appointment',
339 'type' => 'sms',
340 'time' => 'NULL',
341 'timeBefore' => 'NULL',
342 'timeAfter' => 'NULL',
343 'sendTo' => 'customer',
344 'subject' => 'NULL',
345 'content' =>
346 self::notificationTxt('Dear %customer_full_name%,
347
348 Your %service_name% appointment, scheduled on %appointment_date_time% at %location_address% has been canceled.
349
350 Thank you for choosing our company,
351 %company_name%')
352 ],
353 [
354 'name' => 'customer_appointment_rescheduled',
355 'entity' => 'appointment',
356 'type' => 'sms',
357 'time' => 'NULL',
358 'timeBefore' => 'NULL',
359 'timeAfter' => 'NULL',
360 'sendTo' => 'customer',
361 'subject' => 'NULL',
362 'content' =>
363 self::notificationTxt('Dear %customer_full_name%,
364
365 The details for your %service_name% appointment with %employee_full_name% at %location_name% has been changed. The appointment is now set for %appointment_date% at %appointment_start_time%.
366
367 Thank you for choosing our company,
368 %company_name%')
369 ]
370 ];
371 }
372
373 /**
374 * Array of default customer's notifications that are time based (require cron job)
375 *
376 * @return array
377 */
378 public static function getAppointmentCustomerTimeBasedSMSNotifications()
379 {
380 return [
381 [
382 'name' => 'customer_appointment_next_day_reminder',
383 'entity' => 'appointment',
384 'type' => 'sms',
385 'time' => '"17:00:00"',
386 'timeBefore' => 'NULL',
387 'timeAfter' => 'NULL',
388 'sendTo' => 'customer',
389 'subject' => 'NULL',
390 'content' =>
391 self::notificationTxt('Dear %customer_full_name%,
392
393 We would like to remind you that you have %service_name% appointment tomorrow at %appointment_start_time%. We are waiting for you at %location_name%.
394
395 Thank you for choosing our company,
396 %company_name%')
397 ],
398 [
399 'name' => 'customer_appointment_follow_up',
400 'entity' => 'appointment',
401 'type' => 'sms',
402 'time' => 'NULL',
403 'timeBefore' => 'NULL',
404 'timeAfter' => 1800,
405 'sendTo' => 'customer',
406 'subject' => 'NULL',
407 'content' =>
408 self::notificationTxt('Dear %customer_full_name%,
409
410 Thank you once again for choosing our company. We hope you were satisfied with your %service_name%.
411
412 We look forward to seeing you again soon,
413 %company_name%')
414 ],
415 [
416 'name' => 'customer_birthday_greeting',
417 'entity' => 'appointment',
418 'type' => 'sms',
419 'time' => '"17:00:00"',
420 'timeBefore' => 'NULL',
421 'timeAfter' => 'NULL',
422 'sendTo' => 'customer',
423 'subject' => 'NULL',
424 'content' =>
425 self::notificationTxt('Dear %customer_full_name%,
426
427 Happy birthday! We wish you all the best.
428
429 Thank you for choosing our company,
430 %company_name%')
431 ]
432 ];
433 }
434
435
436 /**
437 * Array of default employee's notifications that are not time based
438 *
439 * @return array
440 */
441 public static function getAppointmentProviderNonTimeBasedSMSNotifications()
442 {
443 return [
444 [
445 'name' => 'provider_appointment_approved',
446 'entity' => 'appointment',
447 'type' => 'sms',
448 'time' => 'NULL',
449 'timeBefore' => 'NULL',
450 'timeAfter' => 'NULL',
451 'sendTo' => 'provider',
452 'subject' => 'NULL',
453 'content' =>
454 self::notificationTxt('Hi %employee_full_name%,
455
456 You have one confirmed %service_name% appointment at %location_name% on %appointment_date% at %appointment_start_time%. The appointment is added to your schedule.
457
458 Thank you,
459 %company_name%')
460 ],
461 [
462 'name' => 'provider_appointment_pending',
463 'entity' => 'appointment',
464 'type' => 'sms',
465 'time' => 'NULL',
466 'timeBefore' => 'NULL',
467 'timeAfter' => 'NULL',
468 'sendTo' => 'provider',
469 'subject' => 'NULL',
470 'content' =>
471 self::notificationTxt('Hi %employee_full_name%,
472
473 You have new appointment in %service_name%. The appointment is waiting for a confirmation.
474
475 Thank you,
476 %company_name%')
477 ],
478 [
479 'name' => 'provider_appointment_rejected',
480 'entity' => 'appointment',
481 'type' => 'sms',
482 'time' => 'NULL',
483 'timeBefore' => 'NULL',
484 'timeAfter' => 'NULL',
485 'sendTo' => 'provider',
486 'subject' => 'NULL',
487 'content' =>
488 self::notificationTxt('Hi %employee_full_name%,
489
490 Your %service_name% appointment at %location_name%, scheduled for %appointment_date% at %appointment_start_time% has been rejected.
491
492 Thank you,
493 %company_name%')
494 ],
495 [
496 'name' => 'provider_appointment_canceled',
497 'entity' => 'appointment',
498 'type' => 'sms',
499 'time' => 'NULL',
500 'timeBefore' => 'NULL',
501 'timeAfter' => 'NULL',
502 'sendTo' => 'provider',
503 'subject' => 'NULL',
504 'content' =>
505 self::notificationTxt('Hi %employee_full_name%,
506
507 Your %service_name% appointment, scheduled on %appointment_date%, at %location_name% has been canceled.
508
509 Thank you,
510 %company_name%')
511 ],
512 [
513 'name' => 'provider_appointment_rescheduled',
514 'entity' => 'appointment',
515 'type' => 'sms',
516 'time' => 'NULL',
517 'timeBefore' => 'NULL',
518 'timeAfter' => 'NULL',
519 'sendTo' => 'provider',
520 'subject' => 'NULL',
521 'content' =>
522 self::notificationTxt('Hi %employee_full_name%,
523
524 The details for your %service_name% appointment at %location_name% has been changed. The appointment is now set for %appointment_date% at %appointment_start_time%.
525
526 Thank you,
527 %company_name%')
528 ]
529 ];
530 }
531
532 /**
533 * Array of default providers's notifications that are time based (require cron job)
534 *
535 * @return array
536 */
537 public static function getAppointmentProviderTimeBasedSMSNotifications()
538 {
539 return [
540 [
541 'name' => 'provider_appointment_next_day_reminder',
542 'entity' => 'appointment',
543 'type' => 'sms',
544 'time' => '"17:00:00"',
545 'timeBefore' => 'NULL',
546 'timeAfter' => 'NULL',
547 'sendTo' => 'provider',
548 'subject' => 'NULL',
549 'content' =>
550 self::notificationTxt('Dear %employee_full_name%,
551
552 We would like to remind you that you have %service_name% appointment tomorrow at %appointment_start_time% at %location_name%.
553
554 Thank you,
555 %company_name%')
556 ]
557 ];
558 }
559
560 /**
561 * Array of default customer's notifications that are not time based
562 *
563 * @return array
564 */
565 public static function getEventCustomerNonTimeBasedEmailNotifications()
566 {
567 return [
568 [
569 'name' => 'customer_event_approved',
570 'entity' => 'event',
571 'type' => 'email',
572 'time' => 'NULL',
573 'timeBefore' => 'NULL',
574 'timeAfter' => 'NULL',
575 'sendTo' => 'customer',
576 'subject' => self::notificationTxt('%event_name% Event Booked'),
577 'content' =>
578 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>You have successfully scheduled
579 <strong>%event_name%</strong> event. We are
580 waiting you at <strong>%event_location% </strong>on <strong>%event_start_date_time%</strong>.
581 <br><br>Thank you for choosing our company,<br><strong>%company_name%</strong>')
582 ],
583 [
584 'name' => 'customer_event_rejected',
585 'entity' => 'event',
586 'type' => 'email',
587 'time' => 'NULL',
588 'timeBefore' => 'NULL',
589 'timeAfter' => 'NULL',
590 'sendTo' => 'customer',
591 'subject' => self::notificationTxt('%event_name% Event Canceled By Admin'),
592 'content' =>
593 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Your <strong>%event_name%</strong>
594 event, scheduled on <strong>%event_start_date_time%</strong> at <strong>%event_location%
595 </strong>has been canceled.<br><br>Thank you for choosing our company,
596 <br><strong>%company_name%</strong>')
597 ],
598 [
599 'name' => 'customer_event_canceled',
600 'entity' => 'event',
601 'type' => 'email',
602 'time' => 'NULL',
603 'timeBefore' => 'NULL',
604 'timeAfter' => 'NULL',
605 'sendTo' => 'customer',
606 'subject' => self::notificationTxt('%event_name% Event Canceled By Attendee'),
607 'content' =>
608 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Your <strong>%event_name%</strong>
609 event, scheduled on <strong>%event_start_date_time%</strong> at <strong>%event_location%
610 </strong>has been canceled.<br><br>Thank you for choosing our company,
611 <br><strong>%company_name%</strong>')
612 ],
613 [
614 'name' => 'customer_event_rescheduled',
615 'entity' => 'event',
616 'type' => 'email',
617 'time' => 'NULL',
618 'timeBefore' => 'NULL',
619 'timeAfter' => 'NULL',
620 'sendTo' => 'customer',
621 'subject' => self::notificationTxt('%event_name% Event Rescheduled'),
622 'content' =>
623 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>The details for your
624 <strong>%event_name%</strong> event at
625 <strong>%event_location%</strong> has been changed. The event is now set for
626 <strong>%event_start_date_time%</strong>.<br><br>
627 Thank you for choosing our company,<br><strong>%company_name%</strong>')
628 ]
629 ];
630 }
631
632 /**
633 * Array of default customer's notifications that are time based (require cron job)
634 *
635 * @return array
636 */
637 public static function getEventCustomerTimeBasedEmailNotifications()
638 {
639 return [
640 [
641 'name' => 'customer_event_next_day_reminder',
642 'entity' => 'event',
643 'type' => 'email',
644 'time' => '"17:00:00"',
645 'timeBefore' => 'NULL',
646 'timeAfter' => 'NULL',
647 'sendTo' => 'customer',
648 'subject' => self::notificationTxt('%event_name% Event Reminder'),
649 'content' =>
650 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>We would like to remind you that you have
651 <strong>%event_name%</strong> event tomorrow at <strong>%event_start_date_time%</strong>.
652 We are waiting for you at <strong>%event_location%</strong>.<br><br>Thank you for
653 choosing our company,<br><strong>%company_name%</strong>')
654 ],
655 [
656 'name' => 'customer_event_follow_up',
657 'entity' => 'event',
658 'type' => 'email',
659 'time' => 'NULL',
660 'timeBefore' => 'NULL',
661 'timeAfter' => 1800,
662 'sendTo' => 'customer',
663 'subject' => self::notificationTxt('%event_name% Event Follow Up'),
664 'content' =>
665 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Thank you once again for choosing our company.
666 We hope you were satisfied with your <strong>%event_name%</strong>.<br><br>We look forward to
667 seeing you again soon,<br><strong>%company_name%</strong>')
668 ]
669 ];
670 }
671
672 /**
673 * Array of default employee's notifications that are not time based
674 *
675 * @return array
676 */
677 public static function getEventProviderNonTimeBasedEmailNotifications()
678 {
679 return [
680 [
681 'name' => 'provider_event_approved',
682 'entity' => 'event',
683 'type' => 'email',
684 'time' => 'NULL',
685 'timeBefore' => 'NULL',
686 'timeAfter' => 'NULL',
687 'sendTo' => 'provider',
688 'subject' => self::notificationTxt('%event_name% Event Booked'),
689 'content' =>
690 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>You have one confirmed
691 <strong>%event_name%</strong> Event at <strong>%event_location%</strong> on
692 <strong>%event_start_date_time%</strong>. The event
693 is added to your schedule.<br><br>Thank you,<br><strong>%company_name%</strong>')
694 ],
695 [
696 'name' => 'provider_event_rejected',
697 'entity' => 'event',
698 'type' => 'email',
699 'time' => 'NULL',
700 'timeBefore' => 'NULL',
701 'timeAfter' => 'NULL',
702 'sendTo' => 'provider',
703 'subject' => self::notificationTxt('%event_name% Event Canceled By Admin'),
704 'content' =>
705 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>Your <strong>%event_name%</strong> event
706 at <strong>%event_location%</strong>, scheduled for <strong>%event_start_date_time%</strong>
707 has been canceled.<br><br>Thank you,<br><strong>%company_name%</strong>')
708 ],
709 [
710 'name' => 'provider_event_canceled',
711 'entity' => 'event',
712 'type' => 'email',
713 'time' => 'NULL',
714 'timeBefore' => 'NULL',
715 'timeAfter' => 'NULL',
716 'sendTo' => 'provider',
717 'subject' => self::notificationTxt('%event_name% Event Canceled By Customer'),
718 'content' =>
719 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>Your <strong>%event_name%</strong> event,
720 scheduled on <strong>%event_start_date_time%</strong>, at <strong>%event_location%</strong> has been
721 canceled.<br><br>Thank you,<br><strong>%company_name%</strong>')
722 ],
723 [
724 'name' => 'provider_event_rescheduled',
725 'entity' => 'event',
726 'type' => 'email',
727 'time' => 'NULL',
728 'timeBefore' => 'NULL',
729 'timeAfter' => 'NULL',
730 'sendTo' => 'provider',
731 'subject' => self::notificationTxt('%event_name% Event Rescheduled'),
732 'content' =>
733 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>The details for your
734 <strong>%event_name%</strong> event at <strong>%event_location%</strong> has been changed.
735 The event is now set for <strong>%event_start_date_time%</strong>.
736 <br><br>Thank you,<br><strong>%company_name%</strong>')
737 ]
738 ];
739 }
740
741 /**
742 * Array of default providers's notifications that are time based (require cron job)
743 *
744 * @return array
745 */
746 public static function getEventProviderTimeBasedEmailNotifications()
747 {
748 return [
749 [
750 'name' => 'provider_event_next_day_reminder',
751 'entity' => 'event',
752 'type' => 'email',
753 'time' => '"17:00:00"',
754 'timeBefore' => 'NULL',
755 'timeAfter' => 'NULL',
756 'sendTo' => 'provider',
757 'subject' => self::notificationTxt('%event_name% Event Reminder'),
758 'content' =>
759 self::notificationTxt('Dear <strong>%employee_full_name%</strong>,<br><br>We would like to remind you that you have
760 <strong>%event_name%</strong> event at <strong>%event_start_date_time%</strong>
761 at <strong>%event_location%</strong>.<br><br>Thank you,
762 <br><strong>%company_name%</strong>')
763 ]
764 ];
765 }
766
767 /**
768 * Array of default customer's notifications that are not time based
769 *
770 * @return array
771 */
772 public static function getEventCustomerNonTimeBasedSMSNotifications()
773 {
774 return [
775 [
776 'name' => 'customer_event_approved',
777 'entity' => 'event',
778 'type' => 'sms',
779 'time' => 'NULL',
780 'timeBefore' => 'NULL',
781 'timeAfter' => 'NULL',
782 'sendTo' => 'customer',
783 'subject' => 'NULL',
784 'content' =>
785 self::notificationTxt('Dear %customer_full_name%,
786
787 You have successfully scheduled %event_name% event. We are waiting for you at %event_location% on %event_start_date_time%.
788
789 Thank you for choosing our company,
790 %company_name%')
791 ],
792 [
793 'name' => 'customer_event_rejected',
794 'entity' => 'event',
795 'type' => 'sms',
796 'time' => 'NULL',
797 'timeBefore' => 'NULL',
798 'timeAfter' => 'NULL',
799 'sendTo' => 'customer',
800 'subject' => 'NULL',
801 'content' =>
802 self::notificationTxt('Dear %customer_full_name%,
803
804 Your %event_name% event, scheduled on %event_start_date_time% at %event_location% has been cancelled.
805
806 Thank you for choosing our company,
807 %company_name%')
808 ],
809 [
810 'name' => 'customer_event_canceled',
811 'entity' => 'event',
812 'type' => 'sms',
813 'time' => 'NULL',
814 'timeBefore' => 'NULL',
815 'timeAfter' => 'NULL',
816 'sendTo' => 'customer',
817 'subject' => 'NULL',
818 'content' =>
819 self::notificationTxt('Dear %customer_full_name%,
820
821 Your %event_name% event, scheduled on %event_start_date_time% at %event_location% has been cancelled.
822
823 Thank you for choosing our company,
824 %company_name%')
825 ],
826 [
827 'name' => 'customer_event_rescheduled',
828 'entity' => 'event',
829 'type' => 'sms',
830 'time' => 'NULL',
831 'timeBefore' => 'NULL',
832 'timeAfter' => 'NULL',
833 'sendTo' => 'customer',
834 'subject' => 'NULL',
835 'content' =>
836 self::notificationTxt('Dear %customer_full_name%,
837
838 The details for your %event_name% event at %event_location% has been changed. The event is now set for %event_start_date_time%.
839
840 Thank you for choosing our company,
841 %company_name%')
842 ]
843 ];
844 }
845
846 /**
847 * Array of default customer's notifications that are time based (require cron job)
848 *
849 * @return array
850 */
851 public static function getEventCustomerTimeBasedSMSNotifications()
852 {
853 return [
854 [
855 'name' => 'customer_event_next_day_reminder',
856 'entity' => 'event',
857 'type' => 'sms',
858 'time' => '"17:00:00"',
859 'timeBefore' => 'NULL',
860 'timeAfter' => 'NULL',
861 'sendTo' => 'customer',
862 'subject' => 'NULL',
863 'content' =>
864 self::notificationTxt('Dear %customer_full_name%,
865
866 We would like to remind you that you have %event_name% event at %event_start_date_time%. We are waiting for you at %event_location%.
867
868 Thank you for choosing our company,
869 %company_name%')
870 ],
871 [
872 'name' => 'customer_event_follow_up',
873 'entity' => 'event',
874 'type' => 'sms',
875 'time' => 'NULL',
876 'timeBefore' => 'NULL',
877 'timeAfter' => 1800,
878 'sendTo' => 'customer',
879 'subject' => 'NULL',
880 'content' =>
881 self::notificationTxt('Dear %customer_full_name%,
882
883 Thank you once again for choosing our company. We hope you were satisfied with your %event_name%.
884
885 We look forward to seeing you again soon,
886 %company_name%')
887 ]
888 ];
889 }
890
891 /**
892 * Array of default employee's notifications that are not time based
893 *
894 * @return array
895 */
896 public static function getEventProviderNonTimeBasedSMSNotifications()
897 {
898 return [
899 [
900 'name' => 'provider_event_approved',
901 'entity' => 'event',
902 'type' => 'sms',
903 'time' => 'NULL',
904 'timeBefore' => 'NULL',
905 'timeAfter' => 'NULL',
906 'sendTo' => 'provider',
907 'subject' => 'NULL',
908 'content' =>
909 self::notificationTxt('Hi %employee_full_name%,
910
911 You have one confirmed %event_name% event at %event_location% on %event_start_date_time%. The event is added to your schedule.
912
913 Thank you,
914 %company_name%')
915 ],
916 [
917 'name' => 'provider_event_rejected',
918 'entity' => 'event',
919 'type' => 'sms',
920 'time' => 'NULL',
921 'timeBefore' => 'NULL',
922 'timeAfter' => 'NULL',
923 'sendTo' => 'provider',
924 'subject' => 'NULL',
925 'content' =>
926 self::notificationTxt('Hi %employee_full_name%,
927
928 Your %event_name% event at %event_location%, scheduled for %event_start_date_time% has been canceled by admin.
929
930 Thank you,
931 %company_name%')
932 ],
933 [
934 'name' => 'provider_event_canceled',
935 'entity' => 'event',
936 'type' => 'sms',
937 'time' => 'NULL',
938 'timeBefore' => 'NULL',
939 'timeAfter' => 'NULL',
940 'sendTo' => 'provider',
941 'subject' => 'NULL',
942 'content' =>
943 self::notificationTxt('Hi %employee_full_name%,
944
945 Your %event_name% event, scheduled on %event_start_date_time%, at %event_location% has been canceled.
946
947 Thank you,
948 %company_name%')
949 ],
950 [
951 'name' => 'provider_event_rescheduled',
952 'entity' => 'event',
953 'type' => 'sms',
954 'time' => 'NULL',
955 'timeBefore' => 'NULL',
956 'timeAfter' => 'NULL',
957 'sendTo' => 'provider',
958 'subject' => 'NULL',
959 'content' =>
960 self::notificationTxt('Hi %employee_full_name%,
961
962 The details for your %event_name% event at %event_location% has been changed. The event is now set for %event_start_date_time%.
963
964 Thank you,
965 %company_name%')
966 ]
967 ];
968 }
969
970 /**
971 * Array of default providers's notifications that are time based (require cron job)
972 *
973 * @return array
974 */
975 public static function getEventProviderTimeBasedSMSNotifications()
976 {
977 return [
978 [
979 'name' => 'provider_event_next_day_reminder',
980 'entity' => 'event',
981 'type' => 'sms',
982 'time' => '"17:00:00"',
983 'timeBefore' => 'NULL',
984 'timeAfter' => 'NULL',
985 'sendTo' => 'provider',
986 'subject' => 'NULL',
987 'content' =>
988 self::notificationTxt('Dear %employee_full_name%,
989
990 We would like to remind you that you have %event_name% event at %event_start_date_time% at %event_location%.
991
992 Thank you,
993 %company_name%')
994 ]
995 ];
996 }
997
998 /**
999 * default customer's notification
1000 *
1001 * @return array
1002 */
1003 public static function getAccountRecoveryNotification()
1004 {
1005 return [
1006 'name' => 'customer_account_recovery',
1007 'entity' => 'appointment',
1008 'type' => 'email',
1009 'time' => 'NULL',
1010 'timeBefore' => 'NULL',
1011 'timeAfter' => 'NULL',
1012 'sendTo' => 'customer',
1013 'subject' => self::notificationTxt('Customer Panel Access'),
1014 'content' =>
1015 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>You can access your profile on this <b><a href="%customer_panel_url%">link</a></b>.
1016 <br><br>Thank you for choosing our company,<br><strong>%company_name%</strong>')
1017 ];
1018 }
1019
1020 /**
1021 * default customer's notification
1022 *
1023 * @return array
1024 */
1025 public static function getEmployeeAccountRecoveryNotification()
1026 {
1027 return [
1028 'name' => 'provider_panel_recovery',
1029 'entity' => 'appointment',
1030 'type' => 'email',
1031 'time' => 'NULL',
1032 'timeBefore' => 'NULL',
1033 'timeAfter' => 'NULL',
1034 'sendTo' => 'provider',
1035 'subject' => self::notificationTxt('Employee Panel Access'),
1036 'content' =>
1037 self::notificationTxt('Dear <strong>%employee_full_name%</strong>,<br><br>You can access your profile and track your bookings on this <b><a href="%employee_panel_url%">link</a></b>.
1038 <br><br>Best regards,<br><strong>%company_name%</strong>')
1039 ];
1040 }
1041
1042 /**
1043 * Employee Panel Access Notification
1044 *
1045 * @return array
1046 */
1047 public static function getEmployeePanelAccessNotification()
1048 {
1049 return [
1050 'name' => 'provider_panel_access',
1051 'entity' => 'appointment',
1052 'type' => 'email',
1053 'time' => 'NULL',
1054 'timeBefore' => 'NULL',
1055 'timeAfter' => 'NULL',
1056 'sendTo' => 'provider',
1057 'subject' => self::notificationTxt('Employee Panel Access'),
1058 'content' =>
1059 self::notificationTxt('Dear <strong>%employee_full_name%</strong>,<br><br>You can access your profile and track your bookings on this <b><a href="%employee_panel_url%">link</a></b>.<br><br>Your login credentials:<br>Email: <b>%employee_email%</b><br>Password: <b>%employee_password%</b>
1060 <br><br>Best regards,<br><strong>%company_name%</strong>')
1061 ];
1062 }
1063
1064 /**
1065 * default customer's package notification
1066 *
1067 * @return array
1068 */
1069 public static function getCustomerPackagePurchasedEmailNotification()
1070 {
1071 return [
1072 'name' => 'customer_package_purchased',
1073 'entity' => 'appointment',
1074 'type' => 'email',
1075 'time' => 'NULL',
1076 'timeBefore' => 'NULL',
1077 'timeAfter' => 'NULL',
1078 'sendTo' => 'customer',
1079 'subject' => self::notificationTxt('Package %package_name% purchased'),
1080 'content' =>
1081 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>You have successfully purchased
1082 <strong>%package_name%</strong>.
1083 <br><br>Thank you for choosing our company,<br><strong>%company_name%</strong>')
1084 ];
1085 }
1086
1087 /**
1088 * default customer's package notification
1089 *
1090 * @return array
1091 */
1092 public static function getCustomerPackagePurchasedSmsNotification()
1093 {
1094 return [
1095 'name' => 'customer_package_purchased',
1096 'entity' => 'appointment',
1097 'type' => 'sms',
1098 'time' => 'NULL',
1099 'timeBefore' => 'NULL',
1100 'timeAfter' => 'NULL',
1101 'sendTo' => 'customer',
1102 'subject' => self::notificationTxt('Package %package_name% purchased'),
1103 'content' =>
1104 self::notificationTxt('Dear %customer_full_name%,
1105
1106 You have successfully purchased %package_name%.
1107
1108 Thank you for choosing our company,
1109 %company_name%')
1110 ];
1111 }
1112
1113 /**
1114 * default provider's package notification
1115 *
1116 * @return array
1117 */
1118 public static function getProviderPackagePurchasedEmailNotification()
1119 {
1120 return [
1121 'name' => 'provider_package_purchased',
1122 'entity' => 'appointment',
1123 'type' => 'email',
1124 'time' => 'NULL',
1125 'timeBefore' => 'NULL',
1126 'timeAfter' => 'NULL',
1127 'sendTo' => 'provider',
1128 'subject' => self::notificationTxt('Package %package_name% purchased'),
1129 'content' =>
1130 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>
1131 Customer <strong>%customer_full_name%</strong> has purchased <strong>%package_name%</strong> package.<br><br>
1132 Thank you,<br><strong>%company_name%</strong>')
1133 ];
1134 }
1135
1136 /**
1137 * default provider's package notification
1138 *
1139 * @return array
1140 */
1141 public static function getProviderPackagePurchasedSmsNotification()
1142 {
1143 return [
1144 'name' => 'provider_package_purchased',
1145 'entity' => 'appointment',
1146 'type' => 'sms',
1147 'time' => 'NULL',
1148 'timeBefore' => 'NULL',
1149 'timeAfter' => 'NULL',
1150 'sendTo' => 'provider',
1151 'subject' => self::notificationTxt('Package %package_name% purchased'),
1152 'content' =>
1153 self::notificationTxt('Hi %employee_full_name%,
1154
1155 Customer %customer_full_name% has purchased %package_name% package.
1156
1157 Thank you, %company_name%')
1158 ];
1159 }
1160
1161 /**
1162 * default customer's package canceled notification
1163 *
1164 * @return array
1165 */
1166 public static function getCustomerPackageCanceledEmailNotification()
1167 {
1168 return [
1169 'name' => 'customer_package_canceled',
1170 'entity' => 'appointment',
1171 'type' => 'email',
1172 'time' => 'NULL',
1173 'timeBefore' => 'NULL',
1174 'timeAfter' => 'NULL',
1175 'sendTo' => 'customer',
1176 'subject' => self::notificationTxt('Package %package_name% canceled'),
1177 'content' =>
1178 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>The <strong>%package_name%</strong> that you have purchased has been canceled.<br><br>Thank you,<br><strong>%company_name%</strong>')
1179 ];
1180 }
1181
1182 /**
1183 * default customer's package canceled notification
1184 *
1185 * @return array
1186 */
1187 public static function getCustomerPackageCanceledSmsNotification()
1188 {
1189 return [
1190 'name' => 'customer_package_canceled',
1191 'entity' => 'appointment',
1192 'type' => 'sms',
1193 'time' => 'NULL',
1194 'timeBefore' => 'NULL',
1195 'timeAfter' => 'NULL',
1196 'sendTo' => 'customer',
1197 'subject' => self::notificationTxt('Package %package_name% canceled'),
1198 'content' =>
1199 self::notificationTxt('Dear %customer_full_name%,
1200
1201 The %package_name% that you have purchased has been canceled.
1202
1203 Thank you,
1204 %company_name%')
1205 ];
1206 }
1207
1208 /**
1209 * default provider's package canceled notification
1210 *
1211 * @return array
1212 */
1213 public static function getProviderPackageCanceledEmailNotification()
1214 {
1215 return [
1216 'name' => 'provider_package_canceled',
1217 'entity' => 'appointment',
1218 'type' => 'email',
1219 'time' => 'NULL',
1220 'timeBefore' => 'NULL',
1221 'timeAfter' => 'NULL',
1222 'sendTo' => 'provider',
1223 'subject' => self::notificationTxt('Package %package_name% canceled'),
1224 'content' =>
1225 self::notificationTxt('Dear <strong>%employee_full_name%</strong>,<br><br>The <strong>%package_name%</strong> purchased by <strong>%customer_full_name%</strong> has been canceled.')
1226 ];
1227 }
1228
1229 /**
1230 * default customer's waiting list notification - events
1231 *
1232 * @return array
1233 */
1234 public static function getCustomerWaitingListEmailNotification()
1235 {
1236 return [
1237 'name' => 'customer_event_waiting',
1238 'entity' => 'event',
1239 'type' => 'email',
1240 'time' => 'NULL',
1241 'timeBefore' => 'NULL',
1242 'timeAfter' => 'NULL',
1243 'sendTo' => 'customer',
1244 'subject' => self::notificationTxt('%event_name% Waiting List joined'),
1245 'content' =>
1246 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>You have successfully joined the Waiting List for the
1247 <strong>%event_name%</strong> event at
1248 <strong>%event_location%</strong> on
1249 <strong>%event_start_date_time%</strong>.<br><br>
1250 Thank you for choosing our company,<br><strong>%company_name%</strong>')
1251 ];
1252 }
1253
1254 /**
1255 * default customer's waiting list notification - appointments
1256 *
1257 * @return array
1258 */
1259 public static function getCustomerAppointmentWaitingListEmailNotification()
1260 {
1261 return [
1262 'name' => 'customer_appointment_waiting',
1263 'entity' => 'appointment',
1264 'type' => 'email',
1265 'time' => 'NULL',
1266 'timeBefore' => 'NULL',
1267 'timeAfter' => 'NULL',
1268 'sendTo' => 'customer',
1269 'subject' => self::notificationTxt('%service_name% Waiting List joined'),
1270 'content' =>
1271 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>You have successfully joined the Waiting List for the
1272 <strong>%service_name%</strong> service at
1273 <strong>%location_address%</strong> on
1274 <strong>%appointment_date_time%</strong>.<br><br>
1275 Thank you for choosing our company,<br><strong>%company_name%</strong>')
1276 ];
1277 }
1278
1279 /**
1280 * default customer's waiting list notification - events
1281 *
1282 * @return array
1283 */
1284 public static function getProviderWaitingListEmailNotification()
1285 {
1286 return [
1287 'name' => 'provider_event_waiting',
1288 'entity' => 'event',
1289 'type' => 'email',
1290 'time' => 'NULL',
1291 'timeBefore' => 'NULL',
1292 'timeAfter' => 'NULL',
1293 'sendTo' => 'provider',
1294 'subject' => self::notificationTxt('%event_name% Waiting List joined'),
1295 'content' =>
1296 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>A new attendee has been added to the waiting list for
1297 <strong>%event_name%</strong> Event at
1298 <strong>%event_location%</strong> on
1299 <strong>%event_start_date_time%</strong>.<br><br>
1300 Thank you,<br><strong>%company_name%</strong>')
1301 ];
1302 }
1303
1304 /**
1305 * default customer's waiting list notification - appointments
1306 *
1307 * @return array
1308 */
1309 public static function getProviderAppointmentWaitingListEmailNotification()
1310 {
1311 return [
1312 'name' => 'provider_appointment_waiting',
1313 'entity' => 'appointment',
1314 'type' => 'email',
1315 'time' => 'NULL',
1316 'timeBefore' => 'NULL',
1317 'timeAfter' => 'NULL',
1318 'sendTo' => 'provider',
1319 'subject' => self::notificationTxt('%service_name% Waiting List joined'),
1320 'content' =>
1321 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>A new attendee has been added to the waiting list for
1322 <strong>%service_name%</strong> Service at
1323 <strong>%location_address%</strong> on
1324 <strong>%appointment_date_time%</strong>.<br><br>
1325 Thank you,<br><strong>%company_name%</strong>')
1326 ];
1327 }
1328
1329 /**
1330 * default customer's waiting list available spot notification - appointments
1331 *
1332 * @return array
1333 */
1334 public static function getCustomerAppointmentWaitingListAvailableSpotEmailNotification()
1335 {
1336 return [
1337 'name' => 'customer_appointment_waiting_available_spot',
1338 'entity' => 'appointment',
1339 'type' => 'email',
1340 'time' => 'NULL',
1341 'timeBefore' => 'NULL',
1342 'timeAfter' => 'NULL',
1343 'sendTo' => 'customer',
1344 'subject' => self::notificationTxt('A Spot Just Opened Up for %service_name% '),
1345 'content' =>
1346 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br> Good news! A spot has just become available for
1347 <strong>%service_name%</strong> on
1348 <strong>%appointment_date_time%</strong>.<br><br>
1349 You’re on the waiting list, and now is your chance to confirm your booking before it’s taken by someone else.<br><br>
1350 <a href="%appointment_approve_url%">Confirm My Appointment</a><br><br>
1351 Thank you for choosing our company,<br><strong>%company_name%</strong>')
1352 ];
1353 }
1354
1355 /**
1356 * default customer's waiting list notification
1357 *
1358 * @return array
1359 */
1360 public static function getCustomerWaitingListSmsNotification()
1361 {
1362 return [
1363 'name' => 'customer_event_waiting',
1364 'entity' => 'event',
1365 'type' => 'sms',
1366 'time' => 'NULL',
1367 'timeBefore' => 'NULL',
1368 'timeAfter' => 'NULL',
1369 'sendTo' => 'customer',
1370 'subject' => self::notificationTxt('%event_name% Waiting List joined'),
1371 'content' =>
1372 self::notificationTxt('Dear %customer_full_name%,
1373
1374 You have successfully joined the Waiting List for the %event_name% event at %event_location% on %event_start_date_time%.
1375 Thank you for choosing our company,
1376
1377 %company_name%')
1378 ];
1379 }
1380
1381 /**
1382 * default customer's waiting list notification - appointments
1383 *
1384 * @return array
1385 */
1386 public static function getCustomerAppointmentWaitingListSmsNotification()
1387 {
1388 return [
1389 'name' => 'customer_appointment_waiting',
1390 'entity' => 'appointment',
1391 'type' => 'sms',
1392 'time' => 'NULL',
1393 'timeBefore' => 'NULL',
1394 'timeAfter' => 'NULL',
1395 'sendTo' => 'customer',
1396 'subject' => self::notificationTxt('%event_name% Waiting List joined'),
1397 'content' =>
1398 self::notificationTxt('Dear %customer_full_name%,
1399
1400 You have successfully joined the Waiting List for the
1401 %service_name% service at %location_address% on %appointment_date_time%.
1402
1403 Thank you for choosing our company,
1404 %company_name%')
1405 ];
1406 }
1407
1408 /**
1409 * default customer's waiting list available spot notification - appointments
1410 *
1411 * @return array
1412 */
1413 public static function getCustomerAppointmentWaitingListAvailableSpotSmsNotification()
1414 {
1415 return [
1416 'name' => 'customer_appointment_waiting_available_spot',
1417 'entity' => 'appointment',
1418 'type' => 'sms',
1419 'time' => 'NULL',
1420 'timeBefore' => 'NULL',
1421 'timeAfter' => 'NULL',
1422 'sendTo' => 'customer',
1423 'subject' => self::notificationTxt('A Spot Just Opened Up for %service_name%'),
1424 'content' =>
1425 self::notificationTxt('Dear %customer_full_name%,
1426
1427 Good news! A spot has just become available for
1428 %service_name% on %appointment_date_time%.
1429
1430 You’re on the waiting list, and now is your chance to confirm your booking before it’s taken by someone else.
1431 <a href="%appointment_approve_url%">Confirm My Appointment</a>
1432
1433 Thank you for choosing our company,
1434 %company_name%')
1435 ];
1436 }
1437
1438 /**
1439 * default customer's waiting list notification
1440 *
1441 * @return array
1442 */
1443 public static function getProviderWaitingListSmsNotification()
1444 {
1445 return [
1446 'name' => 'provider_event_waiting',
1447 'entity' => 'event',
1448 'type' => 'sms',
1449 'time' => 'NULL',
1450 'timeBefore' => 'NULL',
1451 'timeAfter' => 'NULL',
1452 'sendTo' => 'provider',
1453 'subject' => self::notificationTxt('%event_name% Waiting List joined'),
1454 'content' =>
1455 self::notificationTxt('Hi %employee_full_name%,
1456
1457 A new attendee has been added to the waiting list for %event_name% Event at %event_location% on %event_start_date_time%.
1458
1459 Thank you,
1460 %company_name%')
1461 ];
1462 }
1463
1464 /**
1465 * default customer's waiting list notification - appointments
1466 *
1467 * @return array
1468 */
1469 public static function getProviderAppointmentWaitingListSmsNotification()
1470 {
1471 return [
1472 'name' => 'provider_appointment_waiting',
1473 'entity' => 'appointment',
1474 'type' => 'sms',
1475 'time' => 'NULL',
1476 'timeBefore' => 'NULL',
1477 'timeAfter' => 'NULL',
1478 'sendTo' => 'provider',
1479 'subject' => self::notificationTxt('%service_name% Waiting List joined'),
1480 'content' =>
1481 self::notificationTxt('Hi %employee_full_name%,
1482
1483 A new attendee has been added to the waiting list for %service_name% Service at %location_address% on %appointment_date_time%.
1484
1485 Thank you,
1486 %company_name%')
1487 ];
1488 }
1489
1490 /**
1491 * default provider's package canceled notification
1492 *
1493 * @return array
1494 */
1495 public static function getProviderPackageCanceledSmsNotification()
1496 {
1497 return [
1498 'name' => 'provider_package_canceled',
1499 'entity' => 'appointment',
1500 'type' => 'sms',
1501 'time' => 'NULL',
1502 'timeBefore' => 'NULL',
1503 'timeAfter' => 'NULL',
1504 'sendTo' => 'provider',
1505 'subject' => self::notificationTxt('Package %package_name% canceled'),
1506 'content' =>
1507 self::notificationTxt('Dear %employee_full_name%,
1508
1509 The %package_name% purchased by %customer_full_name% has been canceled.')
1510 ];
1511 }
1512
1513 /**
1514 * default provider's package notification
1515 *
1516 * @return array
1517 */
1518 public static function getProviderCartEmailNotification()
1519 {
1520 return [
1521 'name' => 'provider_cart',
1522 'entity' => 'appointment',
1523 'type' => 'email',
1524 'time' => 'NULL',
1525 'timeBefore' => 'NULL',
1526 'timeAfter' => 'NULL',
1527 'sendTo' => 'provider',
1528 'subject' => self::notificationTxt('Cart Purchase'),
1529 'content' =>
1530 self::notificationTxt('<p>Hi <strong>%employee_full_name%</strong>,</p><p><br></p><p>Customer <strong>%customer_full_name%</strong> has successfully scheduled several appointments. The details about bookings are shown below.</p><p><br></p><p>%cart_appointments_details%</p><p><br></p><p>Thank you,</p><p><strong>%company_name%</strong></p>')
1531 ];
1532 }
1533
1534 /**
1535 * default provider's package notification
1536 *
1537 * @return array
1538 */
1539 public static function getProviderCartSmsNotification()
1540 {
1541 return [
1542 'name' => 'provider_cart',
1543 'entity' => 'appointment',
1544 'type' => 'sms',
1545 'time' => 'NULL',
1546 'timeBefore' => 'NULL',
1547 'timeAfter' => 'NULL',
1548 'sendTo' => 'provider',
1549 'subject' => 'NULL',
1550 'content' =>
1551 self::notificationTxt('Hi %employee_full_name%,
1552
1553 Customer %customer_full_name% has successfully scheduled several appointments.
1554
1555 Thank you,
1556 %company_name%')
1557 ];
1558 }
1559
1560 /**
1561 * default customer's cart notification
1562 *
1563 * @return array
1564 */
1565 public static function getCustomerCartEmailNotification()
1566 {
1567 return [
1568 'name' => 'customer_cart',
1569 'entity' => 'appointment',
1570 'type' => 'email',
1571 'time' => 'NULL',
1572 'timeBefore' => 'NULL',
1573 'timeAfter' => 'NULL',
1574 'sendTo' => 'customer',
1575 'subject' => self::notificationTxt('Cart Purchase'),
1576 'content' =>
1577 self::notificationTxt('<p>Dear <strong>%customer_full_name%</strong>,</p><p><br></p><p>You have successfully purchased several appointments. The details about your bookings are shown below.</p><p><br></p><p>%cart_appointments_details%.</p><p><br></p><p>Thank you for choosing our company,</p><p><strong>%company_name%</strong></p>')
1578 ];
1579 }
1580
1581 /**
1582 * default customer's cart notification
1583 *
1584 * @return array
1585 */
1586 public static function getCustomerCartSmsNotification()
1587 {
1588 return [
1589 'name' => 'customer_cart',
1590 'entity' => 'appointment',
1591 'type' => 'sms',
1592 'time' => 'NULL',
1593 'timeBefore' => 'NULL',
1594 'timeAfter' => 'NULL',
1595 'sendTo' => 'customer',
1596 'subject' => 'NULL',
1597 'content' =>
1598 self::notificationTxt('Dear %customer_full_name%,
1599
1600 You have successfully scheduled several appointments.
1601
1602 Thank you for choosing our company,
1603 %company_name%')
1604 ];
1605 }
1606
1607
1608 /**
1609 * Array of default whatsapp notifications
1610 *
1611 * @return array
1612 */
1613 public static function getWhatsAppNotifications()
1614 {
1615 // needs to be changed for basic and lite
1616 $sendTo = ['customer', 'provider'];
1617 $statuses = ['approved', 'pending', 'rejected', 'canceled', 'rescheduled', 'next_day_reminder', 'follow_up'];
1618 $entities = ['appointment', 'event'];
1619 $newRows = [];
1620
1621 foreach ($entities as $entity) {
1622 foreach ($sendTo as $to) {
1623 foreach ($statuses as $status) {
1624 if ($status === 'follow_up' && $to === 'provider' || $status === 'pending' && $entity === 'event') {
1625 continue;
1626 }
1627 $newRows[] = [
1628 'name' => $to . '_' . $entity . '_' . $status,
1629 'entity' => $entity,
1630 'type' => 'whatsapp',
1631 'time' => $status === 'next_day_reminder' ? '"17:00:00"' : 'NULL',
1632 'timeBefore' => 'NULL',
1633 'timeAfter' => $status === 'follow_up' ? 1800 : 'NULL',
1634 'sendTo' => $to,
1635 'subject' => '',
1636 'content' => ''
1637 ];
1638 }
1639 }
1640 }
1641
1642 $sendTo = ['customer', 'provider'];
1643 $statuses = ['purchased', 'canceled'];
1644
1645 foreach ($sendTo as $to) {
1646 foreach ($statuses as $status) {
1647 $newRows[] = [
1648 'name' => $to . '_package_' . $status,
1649 'entity' => 'appointment',
1650 'type' => 'whatsapp',
1651 'time' => 'NULL',
1652 'timeBefore' => 'NULL',
1653 'timeAfter' => 'NULL',
1654 'sendTo' => $to,
1655 'subject' => '',
1656 'content' => ''
1657 ];
1658 }
1659 }
1660
1661 $newRows[] = [
1662 'name' => 'customer_birthday_greeting',
1663 'entity' => 'appointment',
1664 'type' => 'whatsapp',
1665 'time' => '"17:00:00"',
1666 'timeBefore' => 'NULL',
1667 'timeAfter' => 'NULL',
1668 'sendTo' => 'customer',
1669 'subject' => '',
1670 'content' => ''
1671 ];
1672
1673 return array_merge(
1674 $newRows,
1675 [
1676 [
1677 'name' => 'customer_account_recovery',
1678 'entity' => 'appointment',
1679 'type' => 'whatsapp',
1680 'time' => 'NULL',
1681 'timeBefore' => 'NULL',
1682 'timeAfter' => 'NULL',
1683 'sendTo' => 'customer',
1684 'subject' => '',
1685 'content' => ''
1686 ],
1687 [
1688 'name' => 'provider_panel_access',
1689 'entity' => 'appointment',
1690 'type' => 'whatsapp',
1691 'time' => 'NULL',
1692 'timeBefore' => 'NULL',
1693 'timeAfter' => 'NULL',
1694 'sendTo' => 'provider',
1695 'subject' => '',
1696 'content' => ''
1697 ],
1698 [
1699 'name' => 'provider_panel_recovery',
1700 'entity' => 'appointment',
1701 'type' => 'whatsapp',
1702 'time' => 'NULL',
1703 'timeBefore' => 'NULL',
1704 'timeAfter' => 'NULL',
1705 'sendTo' => 'provider',
1706 'subject' => '',
1707 'content' => ''
1708 ]
1709 ]
1710 );
1711 }
1712
1713 /**
1714 * Array of default whatsapp notifications
1715 *
1716 * @return array
1717 */
1718 public static function getWhatsAppCartNotifications()
1719 {
1720 // needs to be changed for basic and lite
1721 $sendTo = ['customer', 'provider'];
1722
1723 $newRows = [];
1724
1725 foreach ($sendTo as $to) {
1726 $newRows[] = [
1727 'name' => $to . '_cart',
1728 'entity' => 'appointment',
1729 'type' => 'whatsapp',
1730 'time' => 'NULL',
1731 'timeBefore' => 'NULL',
1732 'timeAfter' => 'NULL',
1733 'sendTo' => $to,
1734 'subject' => '',
1735 'content' => ''
1736 ];
1737 }
1738
1739 return $newRows;
1740 }
1741
1742 /**
1743 * Array of default whatsapp notifications
1744 *
1745 * @return array
1746 */
1747 public static function getWhatsAppWaitingListNotifications()
1748 {
1749 $sendTo = ['customer', 'provider'];
1750
1751 $newRows = [];
1752
1753 foreach ($sendTo as $to) {
1754 $newRows[] = [
1755 'name' => $to . '_event_waiting',
1756 'entity' => 'event',
1757 'type' => 'whatsapp',
1758 'time' => 'NULL',
1759 'timeBefore' => 'NULL',
1760 'timeAfter' => 'NULL',
1761 'sendTo' => $to,
1762 'subject' => '',
1763 'content' => ''
1764 ];
1765 }
1766
1767 return $newRows;
1768 }
1769
1770 /**
1771 * Array of default whatsapp notifications
1772 *
1773 * @return array
1774 */
1775 public static function getWhatsAppAppointmentWaitingListNotifications()
1776 {
1777 $sendTo = ['customer', 'provider'];
1778
1779 $newRows = [];
1780
1781 foreach ($sendTo as $to) {
1782 $newRows[] = [
1783 'name' => $to . '_appointment_waiting',
1784 'entity' => 'appointment',
1785 'type' => 'whatsapp',
1786 'time' => 'NULL',
1787 'timeBefore' => 'NULL',
1788 'timeAfter' => 'NULL',
1789 'sendTo' => $to,
1790 'subject' => '',
1791 'content' => ''
1792 ];
1793 }
1794
1795 return $newRows;
1796 }
1797
1798 /**
1799 * Array of default whatsapp notifications
1800 *
1801 * @return array
1802 */
1803 public static function getWhatsAppAppointmentWaitingListAvailableSpotNotifications()
1804 {
1805 $sendTo = ['customer'];
1806
1807 $newRows = [];
1808
1809 foreach ($sendTo as $to) {
1810 $newRows[] = [
1811 'name' => $to . '_appointment_waiting_available_spot',
1812 'entity' => 'appointment',
1813 'type' => 'whatsapp',
1814 'time' => 'NULL',
1815 'timeBefore' => 'NULL',
1816 'timeAfter' => 'NULL',
1817 'sendTo' => $to,
1818 'subject' => '',
1819 'content' => ''
1820 ];
1821 }
1822
1823 return $newRows;
1824 }
1825
1826 /**
1827 * default appointment updated notifications
1828 *
1829 * @return array
1830 */
1831 public static function getAppointmentUpdatedNotifications($newActivation)
1832 {
1833 $status = $newActivation ? 'enabled' : 'disabled';
1834 return [
1835 [
1836 'name' => 'customer_appointment_updated',
1837 'entity' => 'appointment',
1838 'type' => 'email',
1839 'time' => 'NULL',
1840 'timeBefore' => 'NULL',
1841 'timeAfter' => 'NULL',
1842 'sendTo' => 'customer',
1843 'subject' => self::notificationTxt('%service_name% Appointment Details Changed'),
1844 'content' =>
1845 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Details of the appointment on <strong>%appointment_date_time%</strong> have changed: <br>
1846 <ul>
1847 <li>Employee: <strong>%employee_full_name%</strong></li>
1848 <li>Location: <strong>%location_name%</strong></li>
1849 <li>Extras: <strong>%service_extras%</strong></li>
1850 </ul><br>Thank you for choosing our company,<br>
1851 <strong>%company_name%</strong>'),
1852 'status' => $status
1853 ],
1854 [
1855 'name' => 'provider_appointment_updated',
1856 'entity' => 'appointment',
1857 'type' => 'email',
1858 'time' => 'NULL',
1859 'timeBefore' => 'NULL',
1860 'timeAfter' => 'NULL',
1861 'sendTo' => 'provider',
1862 'subject' => self::notificationTxt('%service_name% Appointment Details Changed'),
1863 'content' =>
1864 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>Details of the appointment on <strong>%appointment_date_time%</strong> have changed:
1865 <br>
1866 <ul>
1867 <li>Customers: <strong>%customer_full_name%</strong></li>
1868 <li>Location: <strong>%location_name%</strong></li>
1869 <li>Extras: <strong>%service_extras%</strong></li>
1870 <li>Employee: <strong>%assigned_employee_name%</strong></li>
1871 </ul><br>Thank you,<br>
1872 <strong>%company_name%</strong>'),
1873 'status' => $status
1874 ],
1875 [
1876 'name' => 'customer_appointment_updated',
1877 'entity' => 'appointment',
1878 'type' => 'sms',
1879 'time' => 'NULL',
1880 'timeBefore' => 'NULL',
1881 'timeAfter' => 'NULL',
1882 'sendTo' => 'customer',
1883 'subject' => self::notificationTxt('%service_name% Appointment Details Changed'),
1884 'content' =>
1885 self::notificationTxt('Dear %customer_full_name%,
1886
1887 Details of the appointment on %appointment_date_time% have changed:
1888 Employee: %employee_full_name%
1889 Location: %location_name%
1890 Extras: %service_extras%
1891
1892 Thank you for choosing our company,
1893 %company_name%'),
1894 'status' => $status
1895 ],
1896 [
1897 'name' => 'provider_appointment_updated',
1898 'entity' => 'appointment',
1899 'type' => 'sms',
1900 'time' => 'NULL',
1901 'timeBefore' => 'NULL',
1902 'timeAfter' => 'NULL',
1903 'sendTo' => 'provider',
1904 'subject' => self::notificationTxt('%service_name% Appointment Details Changed'),
1905 'content' =>
1906 self::notificationTxt('Hi %employee_full_name%,
1907
1908 Details of the appointment on %appointment_date_time% have changed:
1909 Customers: %customer_full_name%,
1910 Location: %location_name%,
1911 Extras: %service_extras%,
1912 Employee: %assigned_employee_name%
1913
1914 Thank you,
1915 %company_name%'),
1916 'status' => $status
1917 ],
1918 [
1919 'name' => 'customer_appointment_updated',
1920 'entity' => 'appointment',
1921 'type' => 'whatsapp',
1922 'time' => 'NULL',
1923 'timeBefore' => 'NULL',
1924 'timeAfter' => 'NULL',
1925 'sendTo' => 'customer',
1926 'subject' => '',
1927 'content' => '',
1928 'status' => $status
1929 ],
1930 [
1931 'name' => 'provider_appointment_updated',
1932 'entity' => 'appointment',
1933 'type' => 'whatsapp',
1934 'time' => 'NULL',
1935 'timeBefore' => 'NULL',
1936 'timeAfter' => 'NULL',
1937 'sendTo' => 'provider',
1938 'subject' => '',
1939 'content' => '',
1940 'status' => $status
1941 ],
1942 ];
1943 }
1944
1945
1946 /**
1947 * default event updated notifications
1948 *
1949 * @return array
1950 */
1951 public static function getEventUpdatedNotifications($newActivation)
1952 {
1953 $status = $newActivation ? 'enabled' : 'disabled';
1954 return [
1955 [
1956 'name' => 'customer_event_updated',
1957 'entity' => 'event',
1958 'type' => 'email',
1959 'time' => 'NULL',
1960 'timeBefore' => 'NULL',
1961 'timeAfter' => 'NULL',
1962 'sendTo' => 'customer',
1963 'subject' => self::notificationTxt('%event_name% Event Details Changed'),
1964 'content' =>
1965 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Details of the event on <strong>%event_start_date_time%</strong> have changed:
1966 <ul>
1967 <li>Organizer: <strong>%employee_full_name%</strong></li>
1968 <li>Location: <strong>%location_name%</strong></li>
1969 </ul><br>Thank you for choosing our company, <br>
1970 <strong>%company_name%</strong>'),
1971 'status' => $status
1972 ],
1973 [
1974 'name' => 'provider_event_updated',
1975 'entity' => 'event',
1976 'type' => 'email',
1977 'time' => 'NULL',
1978 'timeBefore' => 'NULL',
1979 'timeAfter' => 'NULL',
1980 'sendTo' => 'provider',
1981 'subject' => self::notificationTxt('%event_name% Event Details Changed'),
1982 'content' =>
1983 self::notificationTxt('Hi <strong>%employee_full_name%</strong>,<br><br>Details of the event on <strong>%event_start_date_time%</strong> have changed:
1984 <ul>
1985 <li>Description: <strong>%event_description%</strong></li>
1986 <li>Location: <strong>%location_name%</strong></li>
1987 </ul><br>Thank you, <br>
1988 <strong>%company_name%</strong>'),
1989 'status' => $status
1990 ],
1991 [
1992 'name' => 'customer_event_updated',
1993 'entity' => 'event',
1994 'type' => 'sms',
1995 'time' => 'NULL',
1996 'timeBefore' => 'NULL',
1997 'timeAfter' => 'NULL',
1998 'sendTo' => 'customer',
1999 'subject' => self::notificationTxt('%event_name% Event Details Changed'),
2000 'content' =>
2001 self::notificationTxt('Dear %customer_full_name%,
2002
2003 Details of the event on %event_start_date_time% have changed:
2004 Organizer: %employee_full_name%
2005 Location: %location_name%
2006
2007 Thank you for choosing our company,
2008 %company_name%'),
2009 'status' => $status
2010 ],
2011 [
2012 'name' => 'provider_event_updated',
2013 'entity' => 'event',
2014 'type' => 'sms',
2015 'time' => 'NULL',
2016 'timeBefore' => 'NULL',
2017 'timeAfter' => 'NULL',
2018 'sendTo' => 'provider',
2019 'subject' => self::notificationTxt('%event_name% Event Details Changed'),
2020 'content' =>
2021 self::notificationTxt('Hi %employee_full_name%,
2022
2023 Details of the event on %event_start_date_time% have changed:
2024 Description: %event_description%,
2025 Location: %location_name%
2026
2027 Thank you,
2028 %company_name%'),
2029 'status' => $status
2030 ],
2031 [
2032 'name' => 'customer_event_updated',
2033 'entity' => 'event',
2034 'type' => 'whatsapp',
2035 'time' => 'NULL',
2036 'timeBefore' => 'NULL',
2037 'timeAfter' => 'NULL',
2038 'sendTo' => 'customer',
2039 'subject' => '',
2040 'content' => '',
2041 'status' => $status
2042 ],
2043 [
2044 'name' => 'provider_event_updated',
2045 'entity' => 'event',
2046 'type' => 'whatsapp',
2047 'time' => 'NULL',
2048 'timeBefore' => 'NULL',
2049 'timeAfter' => 'NULL',
2050 'sendTo' => 'provider',
2051 'subject' => '',
2052 'content' => '',
2053 'status' => $status
2054 ],
2055 ];
2056 }
2057
2058
2059 /**
2060 * default invoice notifications
2061 *
2062 * @return array
2063 */
2064 public static function getInvoiceNotification()
2065 {
2066 return [
2067 [
2068 'name' => 'customer_invoice',
2069 'entity' => 'appointment',
2070 'type' => 'email',
2071 'time' => 'NULL',
2072 'timeBefore' => 'NULL',
2073 'timeAfter' => 'NULL',
2074 'sendTo' => 'customer',
2075 'subject' => self::notificationTxt('Booking Invoice'),
2076 'content' =>
2077 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>Please find the attached invoice for your reference. If you have any questions, feel free to contact us.
2078 <br><br>Thank you for choosing our company, <br>
2079 <strong>%company_name%</strong>')
2080 ]
2081 ];
2082 }
2083
2084 /**
2085 * default customer's QR Code notification
2086 *
2087 * @return array
2088 */
2089 public static function getCustomerQrCodeEmailNotification()
2090 {
2091 return [
2092 'name' => 'customer_event_qr_code',
2093 'entity' => 'event',
2094 'type' => 'email',
2095 'time' => 'NULL',
2096 'timeBefore' => 'NULL',
2097 'timeAfter' => 'NULL',
2098 'sendTo' => 'customer',
2099 'subject' => self::notificationTxt('E-Ticket for %event_name%'),
2100 'content' =>
2101 self::notificationTxt('Dear <strong>%customer_full_name%</strong>,<br><br>
2102 Thank you for registering for
2103 <strong>%event_name%</strong> on
2104 <strong>%event_start_date_time%</strong>.<br><br>
2105 Please save the following E-Ticket on your mobile phone and present it upon arrival.<br><br>
2106 We are waiting for you at <strong>%event_location%</strong>.<br><br>
2107 Thank you for choosing our company,<br><strong>%company_name%</strong>')
2108 ];
2109 }
2110 }
2111