@props([ 'slides' => [], 'variant' => 'compact', // 'main' | 'compact' 'id' => 'hero' ]) @if(!empty($slides))
@foreach($slides as $s) @php $img = $s['image'] ?? null; $imgDefault = is_array($img) ? ($img['default'] ?? null) : $img; $imgMobile = is_array($img) ? ($img['mobile'] ?? null) : null; $bgPos = $s['bg_pos'] ?? 'center'; $style = ''; if ($imgDefault) $style .= "--hero-bg:url('{$imgDefault}');"; if ($imgMobile) $style .= "--hero-bg-mobile:url('{$imgMobile}');"; if ($bgPos) $style .= "--hero-bg-pos:{$bgPos};"; @endphp
@if(!empty($s['kicker']))
{{ $s['kicker'] }}
@endif

{{ $s['title'] }}

@if(!empty($s['desc']))

{{ $s['desc'] }}

@endif @if(!empty($s['cta_label']) && !empty($s['cta_url'])) {{ $s['cta_label'] }} @endif
@endforeach
@if(count($slides) > 1)
@foreach($slides as $idx => $s) @endforeach
@endif
@endif