@extends('admin.layout')
@section('title', 'Edit Page — '.$page->title)
@section('content')
Visual Drag & Drop Page
Design this page freely — drag, drop, and style any element, no fixed sections.
Open Visual Designer →
@else
{{-- CANVAS: a live preview of the real page, edited in place. Drag a
block type from the panel on the right onto it to add a section;
drag a block's ⠿ handle up/down to reorder it. --}}
This is what the page actually looks like. Click any text to edit it right here, drag a block from the right to add a section, or drag a block's ⠿ handle to reorder it.
@forelse ($page->blocks as $block)
{{ \App\Models\PageBlock::types()[$block->type] ?? $block->type }}
@include('blocks.'.$block->type, ['data' => $block->data, 'adminEditable' => true])
@empty
No blocks yet. Drag a block from the panel on the right to get started.
@endforelse
{{-- TOOLS PANEL --}}
Add a Block
Drag one onto the page, or click to add it to the end.
@foreach (\App\Models\PageBlock::types() as $key => $label)
{{ $label }}
@endforeach
Page Settings