@php $embed = \App\Support\Content::videoEmbed($c['video_url'] ?? null); $videoMedia = app(\App\Support\MediaLibrary::class)->get($c['video'] ?? null); $hasVideo = $embed || ($videoMedia && $videoMedia->isVideo()); $uid = 'walk-'.$section->id; @endphp
@if (filled($c['eyebrow'] ?? null))

{{ $c['eyebrow'] }}

@endif @if (filled($c['text'] ?? null))

{{ $c['text'] }}

@endif
@if ($hasVideo) @endif
@if (! empty($c['highlights']))
@if (filled($c['highlights_title'] ?? null))

{{ $c['highlights_title'] }}

@endif @php // The row scrolls sideways on its own. The set is repeated until it is wider than a big screen, then // shown twice so the loop has no jump. $highlights = array_values($c['highlights']); $set = []; for ($i = 0; $i < max(1, (int) ceil(8 / count($highlights))); $i++) { array_push($set, ...$highlights); } @endphp
    @foreach ([false, true] as $isClone) @foreach ($set as $item) @endforeach @endforeach
@endif
@if ($hasVideo)
@endif