@extends('landingpage::layouts.admin') {{-- Now extends the module's admin layout --}} @section('title', 'Edit Page - ' . $page->title) @push('module_styles') {{-- Push to module_styles stack --}} {{-- Select2 CSS --}} {{-- Add any page-specific Tailwind-compatible styles here if absolutely necessary, or preferably, define them as components in your main CSS/SASS file processed by Tailwind. --}} @endpush @section('module_content') {{-- Content goes into module_content section --}}

Edit Page: {{ $page->title }}

{{-- Corrected closing tag for nav --}} @if(session('success')) @endif
@csrf @method('PUT')

Page Details

{{-- Changed mb-3 to mb-4 for consistency --}} @error('title')

{{ $message }}

@enderror
@error('slug')

{{ $message }}

@enderror
@error('content')

{{ $message }}

@enderror
{{-- Optional Hero Fields (if directly on LpPage model) --}}

Default Hero Section (if no 'hero' section is added below)

SEO Settings

{{-- Meta Title, Description, Keywords fields --}}

Page Settings

Select a page template from your active theme. Leave as 'Default' for standard rendering.

is_published) ? 'checked' : '' }}>
{{-- Sections Management --}}

Page Sections

@foreach($page->sections->sortBy('sort_order') as $index => $section) @include('landingpage::admin.pages.partials.section-item', ['index' => $section->id, 'section' => $section, 'sectionTypes' => $sectionTypes, 'availableLayouts' => $availableLayouts]) @endforeach
Cancel
{{-- Section Template (for JavaScript cloning) --}} @endsection @push('module_scripts') {{-- Push to module_scripts stack --}} {{-- Include TinyMCE from CDN --}} {{-- Select2 requires jQuery --}} {{-- The TinyMCE API Key should be configured in your admin settings. --}} @endpush