@php $slides = array_values(array_filter($c['slides'] ?? [], fn ($s) => ! empty($s['image']))); @endphp
@if (filled($c['text'] ?? null))

{{ $c['text'] }}

@endif
@if ($slides)
@foreach ($slides as $slide)
@endforeach
@php $firstBadge = $slides[0]['badge'] ?? null; @endphp
{{-- Box = the flat part of the ribbon (between the folded tail and the arrow tip), so the text is centred in it. --}}
{{ $firstBadge }}
@foreach ($slides as $slide) @endforeach @if (count($slides) > 1)
@endif
@endif