{{-- This is a partial form for creating/editing LpPageSection --}} {{-- Assumes $page, $section (LpPageSection instance), $sectionTypes, $availableLayouts are passed --}}
@error('title')

{{ $message }}

@enderror
@error('type')

{{ $message }}

@enderror
@error('layout')

{{ $message }}

@enderror

Choose how this section's content will be visually arranged.

@error('sort_order')

{{ $message }}

@enderror
{{-- Here you would typically include dynamic fields based on the selected 'Section Type'. This often involves JavaScript to show/hide relevant input fields for 'content'. For simplicity, we're assuming 'content' is handled as a JSON blob or by more advanced means. Example: --}}

Section Content Fields:

Content fields for this section (e.g., text, image URLs, button links) would appear here, dynamically based on the 'Section Type' selected. This often requires JavaScript. For now, manage content directly if your setup supports it, or implement dynamic forms. The 'content' field will be saved as a JSON object.

{{-- Example for a simple textarea to manually input JSON for content --}}

Enter content as a valid JSON object. This will be parsed and stored.

@error('content')

{{ $message }}

@enderror