{{-- The page builder: the blocks in order, a library to add new ones, and the static templates the editor clones. Expects $blocks (stored, normalised), $mediaPreviews (media id => url) and, through BlockDefinitions, the library itself. --}} @php $definitions = \App\Services\Content\BlockDefinitions::all(); @endphp

Pagina-opbouw

Zet blokken in de volgorde waarin ze op de site moeten staan. Elk blok is een sectie die de site al gebruikt, dus de pagina blijft in dezelfde stijl. Laat de lijst leeg om de tekst onderaan te gebruiken.

@include('admin.pages.partials.ai-wizard')
@foreach ($blocks as $index => $block) @include('admin.pages.partials.block-card', [ 'index' => $index, 'type' => $block['type'] ?? '', 'data' => $block['data'] ?? [], 'mediaPreviews' => $mediaPreviews, ]) @endforeach

Nog geen blokken. Deze pagina toont de tekst uit het veld hieronder.

@foreach ($definitions as $type => $definition) @endforeach
@foreach ($definitions as $type => $definition) @endforeach
@once @push('scripts') @endpush @endonce