@extends('backend.layouts.app') @section('title', 'Edit Email Template') @push('styles') @endpush @section('content') @php $pageTitle = 'Edit Email Template'; $indexRoute = 'email-template.index'; $indexLabel = 'Email Templates'; @endphp @include('backend.layouts.partials._page_header')

{{ $template->template_name }}

{{ $definition['description'] ?? 'Edit the subject and body below.' }}

{{ $template->template_key }} {{ $categoryLabels[$template->category] ?? $template->category }}
@csrf @method('PUT')
@error('category')

{{ $message }}

@enderror

Options come from Parameter group EMAIL_TEMPLATE_CATEGORY.

@error('subject')

{{ $message }}

@enderror

Placeholders are allowed in the subject, for example [[ticket_no]].

@error('body_html')

{{ $message }}

@enderror
@error('body_text')

{{ $message }}

@enderror

This is the fallback shown by email clients that block HTML.

@foreach ($placeholders as $token => $label) @endforeach

Click a placeholder to insert it at the cursor. Values are escaped before being inserted into HTML.

Cancel Preview

Send Test Email

The preview uses sample data. The saved template is not changed.

@csrf
@error('test_email')

{{ $message }}

@enderror

If MAIL_MAILER=log, the message is written to the Laravel log instead of your inbox.

Default Content

Restore this template to the content shipped with the application.

@csrf
@endsection @push('scripts') @endpush