{{ $dsarId ? 'Edit DSAR Type' : 'Create New DSAR Type' }}
@if(!empty($unknownAtSave))
Unknown placeholders detected: {{ implode(', ', $unknownAtSave) }}
These will render as literal text (e.g. %{{ $unknownAtSave[0] }}%) in the generated letter.
@endif
@error('display_name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{-- LEFT: content editors --}}
Letter Content
@error('content')
{{ $message }}
@enderror
Email Content (optional — falls back to the letter content above if left blank)
@error('email_content')
{{ $message }}
@enderror
{{-- RIGHT: placeholders + live preview --}}
Available placeholders click to insert
@foreach($placeholdersByCategory as $category => $group) @if($group->isNotEmpty())
{{ $category }}
@foreach($group as $p)
%{{ $p->token }}% @if($p->description)
{{ $p->description }}
@endif
@endforeach
@endif @endforeach
Live preview
@if(!empty($previewUnknown))
Unknown placeholders: {{ implode(', ', $previewUnknown) }}
@endif
Letter content
{!! $previewContent ?: 'Start typing to see a preview...' !!}
@if($email_content)
Email content
{!! $previewEmailContent !!}
@endif