{{-- Page Header --}}

{{ $editingPage ? 'Edit Page' : 'Create Page' }}

@if($editingPage)

Last updated {{ $editingPage->updated_at->diffForHumans() }}

@endif
@if($editingPage && $editingPage->is_published) Published @elseif($editingPage) Draft @endif {{ $editingPage ? 'Update' : 'Create' }} Page
{{-- Page Settings --}} Page Settings
{{-- Basic Information --}}
Title Slug Template @foreach($availableTemplates as $template) {{ $template }} @endforeach
{{-- SEO & Publishing --}}
Meta Title Meta Description
Published Show in Navigation
{{-- Page Components --}}
Page Components Add Component
@forelse($components as $index => $component)
{{ $component['component_type'] }} @if(!$component['is_active']) Inactive @endif
Edit {{ $component['is_active'] ? 'Disable' : 'Enable' }} Remove
{{-- Component Preview --}}
@if(!empty($component['content']['title'])) Title: {{ $component['content']['title'] }} @endif
@empty

No components added yet.

Click "Add Component" to get started.

@endforelse
{{-- Component Selection Modal --}}
Add Component
@foreach($availableComponents as $componentClass => $componentInfo)

{{ $componentInfo['name'] }}

{{ $componentInfo['description'] ?? 'No description available' }}

@endforeach