@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')
@else
Background image uploaded (not previewed)
@endif
@endif
Section Settings
@php $settings = $section['settings'] ?? [] @endphp
Background Settings
@if(!empty($settings['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
description
No content sections added yet. Click "Add Section" to get started.
@endif