{{-- Correct / incorrect evaluation overlay --}}

{{-- Points earned + running total --}}
{{-- Two-way display: contestant's answer (red) + correct answer (green) --}}

{{ __('Their answer') }}

{{ __('Correct answer') }}

{{-- Correct: single green confirmation --}}

{{ __('Correct answer') }}

{{-- Manual / online submitted answer flash --}}

{{ __('Answer received') }}

{{-- Top bar --}}
@if ($state['show_logo_url'] ?? null) @else N @endif

{{ $state['show_title'] }}

{{ __('Nasiib') }}

{{ __('Episode') }}

{{ $state['episode_number'] }}

{{ __('Round') }}

{{ $state['round_label'] ?? '-' }}

@if (($state['status'] ?? '') === 'live') {{ __('Live') }} @else {{ strtoupper($state['status'] ?? 'OFFLINE') }} @endif
@if (($state['timer']['state'] ?? 'idle') !== 'idle')

--:--

@endif
{{-- Main --}}
@if ($state['layout'] === 'leaderboard') @elseif ($state['layout'] === 'finale') @else {{-- Contestant --}} @if ($state['current_contestant'] ?? null)
@if ($state['current_contestant']['photo_url'] ?? null) @else
{{ \Illuminate\Support\Str::substr($state['current_contestant']['full_name'], 0, 1) }}
@endif

{{ __('Contestant') }} #{{ $state['current_contestant']['contestant_number'] }}

{{ $state['current_contestant']['full_name'] }}

{{ number_format($state['current_contestant']['points']) }} {{ __('points') }}

@endif {{-- Question --}}
@if ($state['current_question'] ?? null)

{{ $state['current_question']['question_text'] }}

@if ($state['current_question']['media_url'] ?? null)
@if ($state['current_question']['media_type'] === 'image') @elseif ($state['current_question']['media_type'] === 'audio') @elseif ($state['current_question']['media_type'] === 'video') @endif
@endif @if (in_array($state['current_question']['question_type'], ['multiple_choice', 'true_false']) && count($state['current_question']['options']))
@foreach ($state['current_question']['options'] as $option) @php $isCorrect = ($state['reveal']['correct_option_id'] ?? null) === $option['id']; @endphp
{{ $option['label'] }}{{ $option['option_text'] }}
@endforeach
@endif @if (($state['is_question_revealed'] ?? false) && ($state['reveal']['correct_answer'] ?? null))

{{ __('Correct Answer') }}

{{ $state['reveal']['correct_answer'] }}

@endif @else

{{ __('Waiting for the next question...') }}

@endif
{{-- Persistent answer result (synced with the control room) --}} @php $answerResult = $state['answer_result'] ?? null; @endphp @if ($answerResult) @php $resultVerdict = $answerResult['result'] ?? null; $resultClass = match ($resultVerdict) { 'correct' => 'border-emerald-400/70 bg-emerald-950/60', 'incorrect' => 'border-red-500/70 bg-red-950/50', default => 'border-gold-500/40 bg-ink-900/70', }; $badgeClass = match ($resultVerdict) { 'correct' => 'badge-green', 'incorrect' => 'badge-red', default => 'badge-amber', }; @endphp

{{ __('Answer Result') }}

{{ $resultVerdict ? __(ucfirst($resultVerdict)) : __('Pending') }}
{{ __('Question') }}
{{ $answerResult['question_text'] }}
{{ __('Contestant') }}
{{ $answerResult['contestant_name'] ?? '-' }}
{{ __('Contestant Answer') }}
{{ $answerResult['answer'] ?? '-' }}
@if (($answerResult['correct_answer'] ?? null))
{{ __('Correct answer') }}
{{ $answerResult['correct_answer'] }}
@endif
{{ __('Points Earned') }}
{{ $resultVerdict ? '+' . (int) ($answerResult['points_awarded'] ?? 0) : '—' }}
{{ __('Total Score') }}
{{ $answerResult['total_score'] !== null ? number_format($answerResult['total_score']) . ' ' . __('pts') : '—' }}
@endif @endif
{{-- Lower thirds / announcements --}} @if (count($state['announcements'] ?? []))
@foreach (array_slice($state['announcements'], 0, 2) as $announcement)
@if ($announcement['sponsor_logo_url'] ?? null) @endif
@if ($announcement['title'] ?? null)

{{ $announcement['title'] }}

@endif

{{ $announcement['message'] }}

@endforeach
@endif {{-- Bottom ticker: mini leaderboard --}} @if (in_array($state['layout'], ['classic'])) @endif
@script @endscript