@extends('admin.layouts.app') @section('title', 'Edit Content Section') @section('content')

Edit Content Section: {{ $contentSection->title }}

@csrf @method('PUT')
Unique identifier for this content section (lowercase, no spaces)
@error('section_key')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
You can use HTML tags for formatting
@error('content')
{{ $message }}
@enderror
@if($contentSection->image_path)
Current image
Current image
@endif
Upload a new image to replace the current one (optional)
@error('image')
{{ $message }}
@enderror
Lower numbers appear first
@error('sort_order')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
@if($contentSection->section_key === 'destinations')
@if($contentSection->data && is_array($contentSection->data)) @foreach($contentSection->data as $index => $destination)
@if(isset($destination['flag_path']))
Flag
@endif
@endforeach @endif
@else
Optional JSON data for custom fields (advanced users only)
@error('data')
{{ $message }}
@enderror
@endif
View Cancel
Section Info
Created:
{{ $contentSection->created_at->format('M d, Y H:i') }}
Last Updated:
{{ $contentSection->updated_at->format('M d, Y H:i') }}
Status:
@if($contentSection->is_active) Active @else Inactive @endif
Tips
Section Key Guidelines:
  • Use lowercase letters only
  • Use hyphens instead of spaces
  • Keep it descriptive but short
  • Examples: hero, about-us, services
Content Tips:
  • HTML tags are allowed for formatting
  • Use <br> for line breaks
  • Use <strong> for bold text
  • Use <em> for italic text
@endsection @push('scripts') @endpush