@csrf @method('PUT')
@error('body_html')

{{ $message }}

@enderror
Save template Cancel
@if (empty($template->available_variables))

This template takes no placeholders.

@else
    @foreach ($template->available_variables as $variable) {{-- Built in PHP so the literal braces never appear in the Blade source; writing '{{ ' inline makes the compiler try to parse it as an echo. --}} @php $placeholder = str_repeat('{', 2).' '.$variable.' '.str_repeat('}', 2); @endphp
  • {{ $placeholder }}
  • @endforeach
@endif

Placeholders are replaced with escaped text. This is not a template language — PHP and Blade are not executed here, and a placeholder that is not supplied is removed rather than shown to the reader.

Subject

{{ $preview['subject'] }}

Body

{!! $preview['body'] !!}