@extends('layouts.app') @section('title', 'View SMS Template: ' . $smsTemplate->name) @section('content')

SMS Template Details

Name {{ $smsTemplate->name }}
Status {{ $smsTemplate->is_active ? 'Active' : 'Inactive' }}
Created {{ $smsTemplate->created_at->format('M d, Y \a\t h:i A') }}
Last Updated {{ $smsTemplate->updated_at->format('M d, Y \a\t h:i A') }}
Message Preview
Subject: {{ $smsTemplate->subject }}
@php $previewText = str_replace( ['{tenant_name}', '{billing_period}', '{total_amount}', '{property_name}', '{unit_number}', '{due_date}'], ['John Doe', 'January 2025', '5,000', 'Sample Property', 'A101', '2025-02-15'], $smsTemplate->body ); @endphp {{ $previewText }}
Template with Variables
Subject: {{ $smsTemplate->subject }}
{{ $smsTemplate->body }}
Available Variables
Variable Description Example
{tenant_name} Tenant's full name John Doe
{billing_period} Billing period January 2025
{total_amount} Total bill amount 5,000
{property_name} Name of the property Sample Property
{unit_number} Unit/Shop number A101
{due_date} Payment due date 2025-02-15
@push('styles') @endpush @endsection