@extends('layouts.public') @section('title', 'Leaderboard — CashBaba Feedback Hub') @push('styles') @endpush @section('content') {{-- Hero --}}
Leaderboard

Top Feedback Contributors

Recognising the CashBaba team members who are making the most impact by collecting and submitting quality feedback this cycle.

{{-- Active cycle strip --}} @if($activeCycle)
Cycle: {{ $activeCycle->name }}
Started: {{ $activeCycle->start_date->format('d M Y') }}
Ends: {{ $activeCycle->end_date->format('d M Y') }}
Active
@endif
@if($leaderboard->count()) {{-- ── Podium (top 3) ── --}} @php $top3 = $leaderboard->take(3); $first = $top3->get(0); $second = $top3->get(1); $third = $top3->get(2); @endphp
{{-- 2nd place (left) --}} @if($second)
🥈
{{ strtoupper(substr($second->name, 0, 1)) }}
{{ $second->name }}
{{ $second->department ?? 'CashBaba' }}
{{ $second->total_points }}points
{{ $second->survey_responses_count }} submission{{ $second->survey_responses_count !== 1 ? 's' : '' }}
@endif {{-- 1st place (center, taller) --}} @if($first)
🥇
{{ strtoupper(substr($first->name, 0, 1)) }}
{{ $first->name }}
{{ $first->department ?? 'CashBaba' }}
{{ $first->total_points }}points
{{ $first->survey_responses_count }} submission{{ $first->survey_responses_count !== 1 ? 's' : '' }}
@endif {{-- 3rd place (right) --}} @if($third)
🥉
{{ strtoupper(substr($third->name, 0, 1)) }}
{{ $third->name }}
{{ $third->department ?? 'CashBaba' }}
{{ $third->total_points }}points
{{ $third->survey_responses_count }} submission{{ $third->survey_responses_count !== 1 ? 's' : '' }}
@endif
{{-- ── Full table ── --}}

All Contributors

{{ $leaderboard->count() }} employee{{ $leaderboard->count() !== 1 ? 's' : '' }}
@foreach($leaderboard as $i => $user) @endforeach
# Employee Department Points Submissions
@if($i === 0) 🥇 @elseif($i === 1) 🥈 @elseif($i === 2) 🥉 @else {{ $i + 1 }} @endif
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }} @if($i < 10) Top 10 @endif
{{ $user->employee_id ?? '—' }}
{{ $user->department ?? '—' }} {{ $user->total_points }} {{ $user->survey_responses_count }}
@else

No submissions yet for this cycle. Be the first to contribute!

@auth Start Giving Feedback @endauth
@endif {{-- ── Score key ── --}}

How points are calculated

+1
SubmissionEvery completed survey
+5
ValuableMarked by management
+10
ImplementableActionable insight
+20
CEO ChoicePersonally selected
@endsection