@extends('admin.layout') @section('title', 'Freeform Canvas — '.$page->title) @php $elementsForJs = $elements->map(function ($e) { return [ 'id' => $e->id, 'type' => $e->type, 'x' => $e->x, 'y' => $e->y, 'w' => $e->w, 'h' => $e->h, 'z_index' => $e->z_index, 'content' => $e->content, 'url' => $e->url, 'image_url' => $e->image_url, 'style' => $e->style ?? [], ]; })->values()->all(); @endphp @section('content')

{{ $page->title }} — Freeform Canvas

@if ($page->is_published) Published @else Draft — not visible to visitors @endif
← Page Settings Preview →
@csrf

Click an element to select it, drag it anywhere, drag its bottom-right corner to resize. Double-click text to edit it. Use the panel on the right to add elements and style whatever's selected.

Add an Element

Drag one onto the canvas, or click to drop it in automatically.

@foreach ($types as $key => $label) @endforeach
Page Settings
@csrf @method('PUT') @include('admin.pages._form')
@endsection