@extends('layouts.admin', [ 'title' => 'Message Templates', 'pageTitle' => 'Message Templates', 'active' => 'reminders', ]) @php $templates = [ ['id' => 1, 'name' => 'Booking confirmation', 'type' => 'Booking confirmation', 'channel' => 'WhatsApp', 'usage' => 'Sent after every new booking', 'status' => 'Active', 'updated' => 'Updated 2 days ago', 'message' => 'Hi {customer_name}, your booking with {business_name} is confirmed for {service_name}.'], ['id' => 2, 'name' => 'Appointment reminder', 'type' => 'Appointment reminder', 'channel' => 'WhatsApp', 'usage' => '24 hours before appointment', 'status' => 'Active', 'updated' => 'Updated 5 days ago', 'message' => 'Reminder: {service_name} with {staff_name} on {appointment_date} at {appointment_time}.'], ['id' => 3, 'name' => 'Invoice reminder', 'type' => 'Invoice reminder', 'channel' => 'Email', 'usage' => 'When invoice remains unpaid', 'status' => 'Active', 'updated' => 'Updated 1 week ago', 'message' => 'Invoice {invoice_number} for {invoice_amount} is due. Pay here: {booking_link}.'], ['id' => 4, 'name' => 'Cancellation notice', 'type' => 'Cancellation notice', 'channel' => 'Email', 'usage' => 'Sent after cancellation', 'status' => 'Paused', 'updated' => 'Updated 2 weeks ago', 'message' => 'Your {service_name} appointment has been cancelled. Rebook using {booking_link}.'], ['id' => 5, 'name' => 'Follow-up message', 'type' => 'Follow-up message', 'channel' => 'WhatsApp', 'usage' => '2 hours after completed appointment', 'status' => 'Active', 'updated' => 'Updated yesterday', 'message' => 'Thanks for visiting {business_name}. We hope you enjoyed your {service_name}.'], ]; @endphp @section('content')
Create reusable WhatsApp and email templates with booking, appointment, invoice, and customer variables.
@include('admin.reminders.partials.nav', ['activeTab' => 'templates']){{ $template['usage'] }}
{{ $template['message'] }}
{{ $template['updated'] }}
Archived or filtered-out templates will appear here so owners can restore messages without rebuilding them.