{{-- "Уровень 3 → Радужная рамка, Глитч-имя…" — Gamification::nextUnlock(). Shown on the hero page and in the shop. @param array|null $nextUnlock @param int $xpTotal the student's heroes.xp_total --}} @if ($nextUnlock) @php $lvl = $nextUnlock['level']; $xpLeft = $lvl->xp_required !== null ? max(0, (int) $lvl->xp_required - (int) $xpTotal) : null; $shown = array_slice($nextUnlock['items'], 0, 4); $more = count($nextUnlock['items']) - count($shown); @endphp
@once @push('styles') @endpush @endonce @endif