@if ($page['body'] ?? null)

{{ $page['body'] }}

@endif @if ($page['media_path'] ?? null)
{{ $page['heading'] ?? $page['title'] ?? '' }}
@endif @if (($page['button_primary'] ?? null) && ($page['button_primary_url'] ?? null)) @endif @if (($page['button_secondary'] ?? null) && ($page['button_secondary_url'] ?? null)) @endif @foreach (collect($page)->filter(fn ($value) => is_array($value) && isset($value['order']))->sortBy('order')->concat($page['sections'] ?? []) as $section) @if (is_array($section) && isset($section['order']) && ($section['enabled'] ?? false))
@if ($section['title'] ?? null)

{{ $section['title'] }}

@endif @if ($section['body'] ?? null)

{{ $section['body'] }}

@endif @if ($section['media_path'] ?? null) {{ $section['title'] ?? '' }} @endif @if ($section['button_label'] ?? null) @php($target = $section['button_target'] ?? '') @if (str_starts_with($target, '/') && ! str_starts_with($target, '//')) {{ $section['button_label'] }} @endif @endif
@endif @endforeach