@extends('components.app-layout') @section('title', 'SMS Templates') @section('subtitle', 'Manage reusable SMS message templates') @section('content')

SMS Templates

Create and manage reusable SMS message templates

Create Template
@forelse($templates as $template)

{{ $template->name }}

{{ $template->description }}

{{ $template->is_active ? 'Active' : 'Inactive' }}
View Edit
@php $categoryColors = [ 'general' => 'bg-blue-100 text-blue-800', 'birthday' => 'bg-pink-100 text-pink-800', 'event' => 'bg-purple-100 text-purple-800', 'announcement' => 'bg-yellow-100 text-yellow-800', 'reminder' => 'bg-orange-100 text-orange-800', 'welcome' => 'bg-green-100 text-green-800', 'thank_you' => 'bg-indigo-100 text-indigo-800', 'invitation' => 'bg-cyan-100 text-cyan-800', 'emergency' => 'bg-red-100 text-red-800', 'custom' => 'bg-gray-100 text-gray-800' ]; @endphp {{ ucwords(str_replace('_', ' ', $template->category)) }}

{{ $template->message }}

@if($template->variables && count($template->variables) > 0)

Variables:

@foreach($template->variables as $variable) {{ $variable }} @endforeach
@endif
Used {{ $template->usage_count ?? 0 }} times {{ $template->created_at->format('M d, Y') }}
@empty

No templates found

Get started by creating your first SMS template.

Create Template
@endforelse
@if($templates->hasPages())
{{ $templates->links() }}
@endif
@endsection