@php $combined = old('source'); if ($combined === null) { $css = (string) ($template->css ?? ''); $body = (string) ($template->body ?? ''); $combined = ($css !== '' ? "\n\n" : '').$body; } $allTemplates = \App\Models\PrintTemplate::orderByDesc('is_default')->orderBy('name')->get(['id','name','is_default']); @endphp
@csrf @if ($template->exists) @method('PUT') @endif {{-- Barre d'outils --}}
✎ Template Editor
{{-- Bloc principal : GRAND éditeur + variables --}}
{{-- Éditeur plein largeur / grande hauteur --}}
{{-- Variables --}}

Variable

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

Clique une variable pour l’insérer dans le grand champ.
{logo} = logo du routeur à l’impression (visible dans l’aperçu).

{{-- Aperçu large en dessous --}}
Aperçu (logo inclus)