@extends('admin.layouts.main') @section('title', $template->exists ? 'Edit SMS Template' : 'Create SMS Template') @section('menu', 'Settings') @section('content')
{{ $template->exists ? 'Edit' : 'Create' }} SMS Template
@csrf @if($template->exists) @method('PUT') @endif
@if($errors->has('name')){{ $errors->first('name') }}@endif
exists ? 'disabled' : '' }}> @if($errors->has('slug')){{ $errors->first('slug') }}@endif
0/1000 characters. Use @{{variable_name}} for dynamic content. @if($errors->has('body')){{ $errors->first('body') }}@endif
List of variable names that can be used in the body with @{{variable}} syntax.
Available Variables

Click to insert into message body:

@php $availableVars = ['client_name', 'client_first_name', 'invoice_number', 'invoice_total', 'invoice_balance', 'invoice_due_date', 'currency', 'company_name', 'days_overdue', 'days_until_due', 'due_label']; @endphp @foreach($availableVars as $var) @endforeach
@endsection @push('scripts') @endpush