SHELL LEADERBOARD

Race Results

@if($participants->isEmpty())
🏁

No Participants Yet

Waiting for race data...

@else
POS
#
DRIVER
TIME
GAP
@php $leaderTime = $participants->first()?->time_ms; @endphp @foreach($participants as $index => $participant) @php $position = $index + 1; $isLeader = $position === 1; $isPodium = $position <= 3; $gap = null; if ($leaderTime && $participant->time_ms && !$isLeader) { $gapMs = $participant->time_ms - $leaderTime; $gapSec = $gapMs / 1000; $gap = sprintf('+%.3f', $gapSec); } @endphp
{{ $position }}
{{ $participant->car_number ?? '-' }}
{{ $participant->name }} @if($participant->status === 'dnf') DNF @elseif($participant->status === 'pending') In Progress @endif
@if($participant->formatted_time) {{ $participant->formatted_time }} @else --:--.--- @endif
@if($isLeader && $participant->time_ms) LEADER @elseif($gap) {{ $gap }} @else - @endif
@endforeach
@endif