@foreach($slides as $i => $slide)
@php $videoUrl = $slide['video'] ?? null; @endphp
@if($slide['type'] == 'youtube') @else {{ $slide['name'] ?? '' }} @endif
@php $primaryCta = array_replace($defaultPrimaryCta ?? [], $slide['primary_cta'] ?? []); $secondaryCta = array_replace($defaultSecondaryCta ?? [], $slide['secondary_cta'] ?? []); $primaryHref = $primaryCta['url'] ?? ''; $secondaryHref = $secondaryCta['url'] ?? ''; $primaryIsExternal = str_starts_with($primaryHref, 'http://') || str_starts_with($primaryHref, 'https://'); $secondaryIsExternal = str_starts_with($secondaryHref, 'http://') || str_starts_with($secondaryHref, 'https://'); @endphp {!! $slide['detail'] ?? '' !!}
@endforeach
@foreach ($slides as $i => $slide) @endforeach