@php $style = $s['style'] ?? 'cream'; $align = ($s['align'] ?? 'start') === 'center' ? 'center' : 'start'; $sectionClass = match ($style) { 'sand' => 'section bg-sand', 'white' => 'section bg-white', 'dark' => 'section bg-ink', default => 'section', }; $hasContent = filled($block->text('title')) || filled($block->text('eyebrow')) || trim($block->text('body')) !== ''; @endphp @if ($hasContent)
@include('pages.blocks.partials.head', [ 'eyebrow' => $block->text('eyebrow'), 'title' => $block->text('title'), 'linkLabel' => '', 'center' => $align === 'center', ]) {!! $block->text('body') !!}
@endif