@if ($state['current_contestant']['photo_url'] ?? null)
@else
@endif
{{-- Question --}}
{{ \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') }}
@if ($state['current_question'] ?? null)
@endif
@else
{{-- 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
{{ $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
@endif
@if (($state['is_question_revealed'] ?? false) && ($state['reveal']['correct_answer'] ?? null))
{{ $option['label'] }}{{ $option['option_text'] }}
@endforeach
{{ __('Correct Answer') }}
{{ $state['reveal']['correct_answer'] }}
{{ __('Waiting for the next question...') }}
@endif{{ __('Answer Result') }}
{{ $resultVerdict ? __(ucfirst($resultVerdict)) : __('Pending') }}- {{ __('Question') }}
- {{ $answerResult['question_text'] }}
- {{ __('Contestant') }}
- {{ $answerResult['contestant_name'] ?? '-' }}
- {{ __('Contestant Answer') }}
- {{ $answerResult['answer'] ?? '-' }}
- {{ __('Correct answer') }}
- {{ $answerResult['correct_answer'] }}
- {{ __('Points Earned') }}
- {{ $resultVerdict ? '+' . (int) ($answerResult['points_awarded'] ?? 0) : '—' }}
- {{ __('Total Score') }}
- {{ $answerResult['total_score'] !== null ? number_format($answerResult['total_score']) . ' ' . __('pts') : '—' }}