@extends('layouts.admin-simple') @section('title', 'Edit Page') @section('page-title', 'Edit Page: ' . $page->title) @section('breadcrumb') @endsection @section('page-actions')
visibility View preview Preview
@endsection @section('content')
@csrf @method('PUT')
Page Information
@error('title')
{{ $message }}
@enderror
URL-friendly version of the title
@error('slug')
{{ $message }}
@enderror
Laravel route name (e.g., page.about)
@error('route_name')
{{ $message }}
@enderror
SEO description (max 500 characters)
@error('meta_description')
{{ $message }}
@enderror
Comma-separated keywords for SEO
@error('meta_keywords')
{{ $message }}
@enderror
Content Sections
@if($page->content_sections && count($page->content_sections) > 0) @foreach($page->content_sections as $key => $section)
{{ ucfirst(str_replace('_', ' ', $section['type'] ?? 'text')) }} {{ $section['title'] ?: 'Section ' . $loop->iteration }}
Upload an image for this section (JPG, PNG, WebP) @if(isset($section['settings']['image_path']) && $section['settings']['image_path'])
Current image: {{ basename($section['settings']['image_path']) }} @if(($section['type'] ?? '') !== 'hero')
Section Image
@else
Background image uploaded (not previewed)
@endif
@endif
Section Settings
@php $settings = $section['settings'] ?? [] @endphp
Background Settings
@if(!empty($settings['background_image']))
Background Image
@endif
Counter Items
@php $counters = $settings['counters'] ?? [] @endphp @foreach($counters as $index => $counter)
@endforeach @if(empty($counters))
No counter items defined. Add them by editing the settings manually.
@endif
@endforeach @endif
@if(!$page->content_sections || count($page->content_sections) == 0)
description

No content sections added yet. Click "Add Section" to get started.

@else @endif
Custom Styling
@error('custom_css')
{{ $message }}
@enderror
@error('custom_js')
{{ $message }}
@enderror
Page Settings
is_enabled) ? 'checked' : '' }}>
Disabled pages will return 404 error
show_in_nav) ? 'checked' : '' }}>
@error('sort_order')
{{ $message }}
@enderror
@error('template')
{{ $message }}
@enderror
Page Information
Created
{{ $page->created_at->format('M j, Y g:i A') }}
Updated
{{ $page->updated_at->format('M j, Y g:i A') }}
@if($page->is_enabled) @endif
cancel Cancel
@endsection @push('scripts') @endpush