{{-- One row of games/leaderboard — the same name/avatar/cosmetics as leaderboard/_row, with game points instead of XP. --}} @php $medals = [1 => '🥇', 2 => '🥈', 3 => '🥉']; $rank = (int) $row->rnk; $isMe = (int) $row->student_id === (int) $currentStudentId; $realName = \App\Services\Duels::shortName($row->first_name, $row->last_name); $displayName = $row->nickname ?: $realName; $fr = \App\Support\Cosmetics::frame($row->frame_color, 3); $nm = \App\Support\Cosmetics::name($row->name_color); @endphp
{{ $medals[$rank] ?? $rank }}
@include('partials._student_avatar', ['studentId' => $row->student_id, 'avatarPath' => $row->avatar_path])
description) title="{{ $row->description }}" @endif>
{{ $displayName }}{{ $isMe ? ' ('.__('вы').')' : '' }}@if ($row->title) {{ $row->title }}@endif
@if ($row->nickname){{ $realName }} · @endif{{ __('Раундов: :n', ['n' => (int) $row->rounds]) }}
{{ __(':n очк.', ['n' => (int) $row->points]) }}