{{ __(':n 分', ['n' => $score]) }}
@if ($score >= $challenge->pass_score) {{ $rewarded ? '🏆 '.__('挑戰成功!獲得 :n XP', ['n' => $challenge->xp_reward]) : __('挑戰成功!(本場 XP 已領取過)') }} @else {{ __('還差一點,看看解析再試一次(可無限次重試,取最佳成績)') }} @endif
@foreach ($questions as $n => $q) @php $r = $results[$q->id]; @endphp
{{ __('第 :n 題', ['n' => $n + 1]) }} {{ $r['correct'] ? '✅ '.__('正確') : '❌ '.__('錯誤') }}

{{ $q->body }}

@unless ($r['correct'])

{{ __('正確答案:') }}{{ $q->answerText() }}

@endunless @if ($q->explanation)

{{ __('為什麼:') }}{{ $q->explanation }}

@endif
@endforeach
@include('challenges._board')