Content documents / {{ $document->exists ? 'Edit' : 'Create' }}

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

Structured, reusable content that can be placed into one or more page regions.

@if($document->exists)
@csrf Create 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 will appear everywhere it is published. Use “Create independent copy” for page-specific content.
@endif
@csrf @if($document->exists) @method('PUT') @endif

Document

@foreach($types as $type) @endforeach

Structured data

This phase retains JSON editing while adding validation, copies, placement controls and preview. Schema-generated field controls follow in the next checkpoint.

@push('scripts') @endpush