@if ($kind === 'frame')
@php($fr = \App\Support\Cosmetics::frame($item->value, 4))
@include('partials._student_avatar', ['studentId' => $student->id, 'avatarPath' => $student->avatar_path])
@elseif ($kind === 'name_color')
@php($nm = \App\Support\Cosmetics::name($item->value))
{{ trim($studentName ?? __('Имя')) }}
@elseif ($kind === 'profile_theme')
{{-- A small copy of the profile page's cover (/student/profile.php). --}}
@include('partials._student_avatar', ['studentId' => $student->id, 'avatarPath' => $student->avatar_path])
@else
{{ $item->icon }}
{{ $item->name }}
@endif
@if ($kind !== 'title')
{{ $item->name }}
@endif
@if (isset($rewardFor[(int) $item->id]) && ! $isOwned)
{{-- Earned, not bought (128): Gamification::unlockShopItem() refuses it. --}}
🏆 {{ __('За достижение «:name»', ['name' => $rewardFor[(int) $item->id]]) }}
@elseif ($locked && ! $isOwned)
{{ (int) $item->cost_coins }} 🪙
🔒 {{ __('С :n уровня', ['n' => (int) $item->min_level]) }}
@elseif ($isEquipped && in_array($kind, ['title', 'profile_theme'], true))
{{-- ShopController::equip() takes a worn title / profile theme off. --}}
{{ __('✅ надето') }}
@elseif ($isEquipped)
{{ __('✅ надето') }}
@elseif ($isOwned)
@else
{{ (int) $item->cost_coins }} 🪙
{{-- One click spends the coins and there's no refund, so ask first. --}}
@endif