{{-- 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