Files
maria_uslugi/sms/templates.php
T
2026-03-05 10:25:39 +01:00

24 lines
801 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// /sms/templates.php
return [
// Notification Utility pour rendez-vous
'notification_rdv' => [
'language' => 'en', // ou 'fr' si tu crées une version FR
'components' => [
// BODY a exactement 2 variables: {{1}} = Nom client, {{2}} = DateHeure
'body_params' => 2,
// Si un jour tu ajoutes un HEADER ou un BUTTON avec variables, ajoute 'header_params' / 'button_url_params' etc.
],
],
// Nouveau template avec bouton URL
'en_attente_confirmation' => [
'language' => 'ru', // adapte si tu as une locale différente
'components' => [
'body_params' => 2, // {{1}} nom client, {{2}} date/heure
'button_url_params' => ['0' => 1] // bouton index "0" a 1 placeholder {{1}} (l’ID du RDV)
],
],
];