@php $rotations = ['-rotate-1', 'rotate-[1.5deg]', '-rotate-[1.5deg]', 'rotate-1']; $startIndex = $startIndex ?? 0; @endphp @foreach ($randomGigs as $index => $gig) @php $rot = $rotations[($startIndex + $index) % count($rotations)]; $gigTitle = $gig->name ?: ($gig->bands->first()->name ?? 'Special Event'); $gigFallback = $gigTitle . ' - Live at Fibbers York' . ($gig->event_date ? ' (' . $gig->event_date->format('Y') . ')' : ''); @endphp @if ($firstImage = $gig->firstImage()) {{ $firstImage->altText($gigFallback) }} @else
@endif
@if ($gig->featured)
FEATURED
@endif
@if ($gig->event_date) {{ $gig->event_date->format('D d M Y') }} @endif

{{ $gigTitle }}

@if($gig->bands && $gig->bands->count() > 1)

Support: {{ $gig->bands->skip(1)->pluck('name')->implode(', ') }}

@endif
@endforeach