@php $slides = $block->rows('slides'); $layout = $s['layout'] ?? 'split'; $cta = $block->text('cta_label'); $ctaUrl = shop_link((string) ($s['cta_url'] ?? '')); $secondary = $block->text('secondary_label'); $secondaryUrl = shop_link((string) ($s['secondary_url'] ?? '')); $stats = $block->rows('stats'); @endphp @if ($layout === 'slider' && $slides !== [])
@foreach ($slides as $index => $slide) @php $slideTitle = $block->rowText($slide, 'title'); $slideCta = $block->rowText($slide, 'cta_label'); $slideUrl = shop_link((string) ($slide['cta_url'] ?? '')); @endphp
0) aria-hidden="true" @endif>
@if (filled($block->rowText($slide, 'eyebrow'))) {{ $block->rowText($slide, 'eyebrow') }} @endif

{{ $slideTitle }}

@if (filled($block->rowText($slide, 'subtitle')))

{{ $block->rowText($slide, 'subtitle') }}

@endif @if ($slideCta !== '') @endif
{{ $slideTitle }}
@endforeach @if (count($slides) > 1)
@foreach ($slides as $index => $slide) @endforeach
@endif
@else
@if (filled($block->text('eyebrow'))) {{ $block->text('eyebrow') }} @endif

{{ $block->text('title') }}

@if (filled($block->text('subtitle')))

{{ $block->text('subtitle') }}

@endif @if ($cta !== '' || $secondary !== '')
@if ($cta !== '') {{ $cta }} @endif @if ($secondary !== '') {{ $secondary }} @endif
@endif @if ($stats !== [])
@foreach ($stats as $stat)
{{ $block->rowText($stat, 'value') }} {{ $block->rowText($stat, 'label') }}
@endforeach
@endif
{{ $block->text('title') }} @if (filled($block->text('float_title')))
{{ $block->text('float_title') }} {{ $block->text('float_sub') }}
@endif
@endif