@php $builderSchema = $selectedType?->schema ?: []; $builderData = old('data_json', json_encode($document->data ?: [], JSON_UNESCAPED_SLASHES)); @endphp
Content documents / {{ $document->exists ? 'Visual editor' : 'Create' }}

{{ $document->exists ? $document->title : 'Create content document' }}

Build and edit structured content visually. The stored document format remains fully compatible with the existing renderer.

@if($document->exists)
@csrfCreate independent copy
@csrf @method('DELETE')Delete
@endif
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
The document could not be saved.
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if($document->exists && $document->placements->count() > 1)
Shared document. This document is used in {{ $document->placements->count() }} page placements. Changes appear everywhere it is published.
@endif
@csrf @if($document->exists) @method('PUT') @endif
@foreach($types as $type)@endforeach
Saved

Canvas

{{ $selectedType?->name ?? 'Content document' }} · live structured preview

@push('scripts') @endpush