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