{{-- Template Form Partial - With Quill.js Rich Text Editor --}} {{-- Quill CSS --}}
{{-- Left: Form Fields + Editor --}}
{{-- Top Bar: Category, Name, Preview Button --}}
@error('category')

{{ $message }}

@enderror
@error('name')

{{ $message }}

@enderror
{{-- Company Assignment (Super Admin Only) --}} @if(auth()->user()->role === 'super_admin')

Leave as "Global" to make available to all companies, or select a specific company.

@error('company_id')

{{ $message }}

@enderror
@endif {{-- Quill Rich Text Editor --}}

Use the formatting toolbar and insert variables from the panel on the right. Click any image to resize it.

{!! old('content', $template->content ?? '') !!}
{{-- Image resize toolbar (shown when image is clicked) --}}
@error('content')

{{ $message }}

@enderror
{{-- Active Toggle --}} @if(isset($template)) @endif
{{-- Right: Variable Toolbar --}}

Insert Variable

@foreach($variables as $group => $vars)
@foreach($vars as $key => $label) @endforeach
@endforeach {{-- Custom Variable --}}

Custom Variable

Custom variables will be filled at generation time.

{{-- Tips --}}

Tips

  • Click variables on the right to insert at cursor
  • Use toolbar for headings, bold, lists, alignment
  • Click an image to show the resize toolbar
  • Preview button shows variables filled with sample data
{{-- ══ Preview Modal ══ --}}