@if(empty($items))

No leaderboards available.

@else
@foreach($items as $item) @php $activePill = null; foreach (($item['pills'] ?? []) as $pill) { if (!empty($pill['active'])) { $activePill = $pill; break; } } if ($activePill === null && !empty($item['pills'])) { $activePill = $item['pills'][0]; } $podiumUsers = $activePill['podium_users'] ?? ($item['podium_users'] ?? []); $detailsUrl = $activePill['url'] ?? ($item['details_url'] ?? '#'); @endphp

{{ $item['title'] }}

{{ $item['interval_label'] ?: '—' }}

View details
@include('widgets.milestone_team_leaderboard_podium', ['users' => $podiumUsers])
@if(!empty($item['pills']))
@foreach($item['pills'] as $pillIndex => $pill) @endforeach
@foreach($item['pills'] as $pillIndex => $pill) @endforeach
@endif
@endforeach
@endif