@extends('layouts.gamification')
{{-- StudentPublicProfileController::show() — a student's profile as other students see it. --}}
@php
$displayName = $student->nickname ?: $realName;
$fr = \App\Support\Cosmetics::frame($hero->frame_color ?? null, 5);
$nm = \App\Support\Cosmetics::name($hero->name_color ?? null);
@endphp
@section('title', $displayName)
@section('gami-active', 'leaderboard')
@push('styles')
@endpush
@section('gami-content')
@include('partials._student_avatar', ['studentId' => $student->id, 'avatarPath' => $student->avatar_path])
{{ $displayName }}@if ($isMe) ({{ __('вы') }})@endif
@if (! empty($hero->title))
{{ $hero->title }}
@endif
@if ($student->nickname){{ $realName }} · @endif⭐ {{ __('Уровень :n', ['n' => (int) ($hero->level_number ?? 1)]) }}@if (! empty($hero->level_name)) · {{ $hero->level_name }}@endif
@if ($student->description)
{{ $student->description }}
@elseif ($isMe)
{{ __('Расскажите о себе на странице «Герой» — это увидят другие ученики.') }}
@endif
{{ (int) ($hero->xp_total ?? 0) }}
⭐ {{ __('Опыт') }}
{{ (int) $achievementScore }}
🏆 {{ __('Очки достижений') }}
{{ (int) $achievementCount }}
🎖️ {{ __('Достижений') }}
{{ (int) ($hero->attendance_streak ?? 0) }}
🔥 {{ __('Серия посещений') }}
{{ (int) $popularity }}
💝 {{ __('Популярность') }}
{{ (int) $friendCount }}
🤝 {{ __('Друзей') }}
@if ($team || $disciplines->isNotEmpty())
@if ($team)
{{ $team->icon }} {{ __('Команда') }}: {{ $team->name }}
@endif
@foreach ($disciplines as $d)
📘 {{ $d }}
@endforeach
@endif
🎖️ {{ __('Достижения') }}
@if ($achievements->isEmpty())
{{ __('Пока нет полученных достижений.') }}
@else
@foreach ($achievements as $a)
description) title="{{ $a->description }}" @endif>
{{ $a->icon }}
{{ $a->name }}
@endforeach
@if ($achievementCount > $achievements->count())
{{ __('и ещё :n', ['n' => $achievementCount - $achievements->count()]) }}
@endif
@endif
{{-- App\Services\Gifts: the gift wall, and (on someone else's profile) the form. --}}
🎁 {{ __('Подарки') }} {{ (int) $giftCount }}
@if (! $isMe && ! empty($giftCatalog))
@endif
@if (empty($gifts))
{{ $isMe ? __('Вам пока не дарили подарков.') : __('Подарков пока нет — станьте первым!') }}
@else
@foreach ($gifts as $g)
{{ $g->icon }}
@if ($g->message)
«{{ $g->message }}»
@endif
@endforeach
@endif
@endsection