@php $scheme = $section->settings->scheme; $bgImage = $section->settings->background; $opacity = $section->settings->overlay_opacity ?? 80; $height = match ($section->settings->height) { 'small' => 'h-96', 'medium' => 'h-[32rem]', 'large' => 'h-[40rem]', 'fullheight' => 'h-screen', default => 'h-96', }; @endphp
attributes() }} class="{{ $height }} wrapper relative w-full px-4 text-center"> @if ($bgImage) @endif
@foreach ($section->blocks as $block) @if ($block->type === 'heading')

liveUpdate()->text('text') }}> {{ $block->settings->text }}

@elseif ($block->type === 'subtext')

liveUpdate()->text('text') }}> {{ $block->settings->text }}

@endif @endforeach @php $buttons = collect($section->blocks)->filter(fn($block) => $block->type === 'button'); @endphp @if ($buttons->isNotEmpty())
@foreach ($buttons as $button) liveUpdate()->text('text') }}> {{ $button->settings->text }} @endforeach
@endif
@visual_design_mode @pushOnce('scripts') @endpushOnce @end_visual_design_mode