I'm building a CRM multitenacy application in laravel 9, where, when the tenant create a new customer I'm sending a welcome email to the customer.
Now i want to allow the user to create a custom message template using also variables.
For example, if the tenant has the following tag variables available :
[guest_name]
[check_in_date]
[check_out_date]
The tenant should be able to create a message template like:
Dear [guest_name], thank you very much for booking a room with us.
Your check in is expected on [check_in_date], while check out is expected on [check_out_date].
I'm getting crazy to understand how to do it, as it seems i cannot find anything similar online but I've seen it in many CRM before.
Is there anybody who can help me to understand how to do so or at least point me in the right direction to find informations on this type of feature?
Thank you very much.