@if (filled($c['eyebrow'] ?? null))
{{ $c['eyebrow'] }}
@endif
@if (filled($c['text'] ?? null))
{{ $c['text'] }}
@endif
@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)
-
{{ ($loop->index % count($highlights)) + 1 }}
{{ $item['title'] ?? '' }}
@endforeach
@endforeach
@endif