{{-- Template list --}} Templates
@foreach ($list as $group => $rows)
{{ $group }}
@foreach ($rows as $row) @endforeach @endforeach
{{-- Editor + preview --}}
{{ $definition['name'] ?? 'Template' }}

{{ $definition['description'] ?? '' }}

@error('subject')

{{ $message }}

@enderror
@error('body')

{{ $message }}

@enderror
@if (! empty($tokens))
@foreach ($tokens as $token => $sample) @php $tokenLabel = '{{ '.$token.' }}'; @endphp @endforeach
@endif
@foreach ($globalTokens as $token => $desc) @php $gLabel = '{{ '.$token.' }}'; @endphp @endforeach
Save template
{{-- Consent gate (D83b) — super-admin only --}} @if (auth()->user()?->isSuperAdmin()) GDPR consent gate @if ($essential)
This is an essential email (login / verification / admin) — it is always sent and can’t be consent-gated.
@else

When on, each send is checked against the central rules (process.yspi.ie). Owed messages hitting an overridable hard-stop still go; a final refusal (unsubscribed / no consent) is suppressed. Leave off for transactional mail.

@if ($gated)
@error('consentCategory')

{{ $message }}

@enderror
@endif Save gate settings @endif
@endif {{-- Live preview --}} Preview

Subject: {{ $previewSubject }} · sample token values

@if (auth()->user()?->isSuperAdmin())
@error('testAddress')

{{ $message }}

@enderror
Send testSending…

Sends the values shown above (including unsaved edits) with sample token data.

@endif