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