@extends('layouts.admin') @section('title', $page->exists ? 'Edit — ' . $page->title : 'New Landing Page') @section('admin')
@include('admin._nav')

{{ $page->exists ? 'Edit Landing Page' : 'New Landing Page' }}

@if($page->exists && $page->status === 'published') View live @endif
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif
@csrf @if($page->exists)@method('PUT')@endif

Page Details

/lp/
Powered by GrapesJS

Tip: Open the Blocks panel (left), drag a section onto the canvas, then click any element to style it.

Form & Tags

@php $allTags = \App\Models\Tag::orderBy('name')->get(); $selected = old('tag_slugs', $page->tag_slugs ?? []); @endphp
@foreach($allTags as $tag) @endforeach

Publishing

@foreach(['draft'=>'Draft','published'=>'Published'] as $val => $label) @endforeach
← Back to list
@if($page->exists) @if($page->status === 'published') @else @endif @endif
@if($page->exists) @endif
@endsection @push('scripts') @vite(['resources/js/landing-builder.js']) @endpush