@if (count($calls) > 0)
{{-- Scrollable track --}}
@foreach ($calls as $index => $result)
{{-- Tag color background + overlay --}}
{{-- Card content --}}
{{-- Deepest tag category badge --}} @php $leafCat = !empty($result['tag_categories']) ? end($result['tag_categories']) : null; @endphp @if ($leafCat)
{{ $leafCat['name'] }}
@endif {{-- Title --}}

{{ $result['title'] }}

{{-- Location + expiry badges --}} @if (!empty($result['location']) || !empty($result['expiry_badge_text']))
@if (!empty($result['location'])) {{ $result['location'] }} @endif @if (!empty($result['expiry_badge_text'])) {{ $result['expiry_badge_text'] }} @endif
@endif
{{-- Callable avatar + name --}} @if (!empty($result['callable_name']))
@if (!empty($result['photo']))
{{ $result['callable_name'] }}
@endif
{{ $result['callable_name'] }} @if (!empty($result['callable_location'])) {{ $result['callable_location'] }} @endif
@endif
{{-- Prioritisation score --}} @if ($showScore)
{{ round($result['score'], 2) }}
@endif {{-- Reaction button --}} @if ($showReactions ?? true)
@livewire('reaction-button', [ 'typeName' => 'like', 'showCounter' => true, 'reactionCounter' => $result['like_count'], 'modelClass' => $result['model'], 'modelId' => $result['id'], 'size' => 'w-5 h-5', 'inverseColors' => true, ], key('like-carousel-' . $result['id'] . '-' . $index))
@endif
@endforeach
{{-- Left button — hidden at start --}} {{-- Right button — hidden at end --}}
@endif