@php $settings = $section->settings ?? []; $alignment = $settings['alignment'] ?? 'left'; $alignClass = match($alignment) { 'center' => 'text-center mx-auto', 'right' => 'text-right ml-auto', default => 'text-left mr-auto', }; @endphp @php $pt = $settings['padding_top'] ?? '80px'; $pb = $settings['padding_bottom'] ?? '80px'; $bg = $settings['bg_color'] ?? 'transparent'; $tx = $settings['text_color'] ?? 'inherit'; $ptStyle = "padding-top: $pt;"; $pbStyle = "padding-bottom: $pb;"; $bgStyle = $bg !== 'transparent' ? "background-color: $bg;" : ''; $txStyle = $tx !== 'inherit' ? "color: $tx;" : ''; $maxWidth = $settings['max_width'] ?? '5xl'; $containerClass = match($maxWidth) { 'container' => 'container mx-auto px-6', 'full' => 'w-full px-6', default => 'max-w-' . $maxWidth . ' mx-auto px-6', }; @endphp
{{-- Decorative Background Effect --}}
@if($settings['title'] ?? false)

{{ $settings['title'] }}

@endif
{!! $settings['content'] ?? '' !!}