@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')
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.
Drag one onto the canvas, or click to drop it in automatically.