{{-- "Уровень 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
🔓 {{ __('Уровень :n', ['n' => (int) $lvl->level_number]) }}@if ($lvl->name) · {{ $lvl->name }}@endif @if ($xpLeft !== null) {{ __('— ещё :xpleft ⭐', ['xpleft' => $xpLeft]) }} @endif
{{ __('Откроется:') }} @foreach ($shown as $item) {{ $item->icon }} {{ $item->name }} @endforeach @if ($more > 0) {{ __('и ещё :more', ['more' => $more]) }} @endif
@once @push('styles') @endpush @endonce @endif