{{-- $index: Unique identifier for the section (e.g., existing ID or 'new_X') $section: LpPageSection instance (null for new sections) $sectionTypes: Array of available section types [key => Label] $availableLayouts: Array of available layouts [key => Label] (This needs to be passed to this partial) --}} @php $currentSection = $section ?? new \Modules\LandingPage\Entities\LpPageSection(); // Use a blank section for new items $isNew = !isset($section) || !$section->id; // Determine if it's a new section @endphp
Section content has errors.
@elseif($isNew || !$currentSection->type)Select a section type to see its content fields.
@endif