{{ __('待複習') }}
{{ $counts['open'] }} {{ __('題') }}
{{ __('已搞懂') }}
{{ $counts['resolved'] }} {{ __('題') }}
{{ $canAi ? __('AI 會依你的錯題整理錯誤原因與複習建議') : __('目前以統計方式整理(尚未啟用 AI 生成)') }}
{{ __('錯題分析') }}

@if ($weak->isNotEmpty())

{{ __('最需要加強的章節') }}

@foreach ($weak as $w)
{{ $w['chapter']->title }}
{{ $w['chapter']->course->title }}
{{ __(':n 題待複習', ['n' => $w['n']]) }}
@endforeach
@endif @forelse ($list as $courseTitle => $items)

{{ $courseTitle }}

@foreach ($items as $m) @php $q = $m->question; $rl = $review($m); $sealed = $q->is_check && ! in_array($m->lesson_id, $passedIds); @endphp
{{ $m->lesson->chapter->title }} ・ {{ $m->lesson->title }}{{ __('答錯 :n 次', ['n' => $m->times]) }} ・ {{ $m->last_missed_at->diffForHumans() }}

{{ $q->body }}

{{ __('你的答案') }}
{{ $q->describeGiven($m->last_answer) }}
@unless ($sealed)
{{ __('正確答案') }}
{{ $q->answerText() }}
@else
{{ __('這是單元即時小測的題目,通過該單元的小測後才會公開答案與解析。') }}
@endunless
@if ($q->explanation && ! $sealed)

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

@endif
@if ($rl)📖 {{ __('回去複習:') }}{{ $rl->title }}@endif @if ($sealed) @elseif (! $m->resolved_at)
@csrf
@else ✅ {{ __('已搞懂') }} @endif
@endforeach
@empty
{{ $show === 'open' ? __('目前沒有待複習的錯題 🎉 做測驗時答錯的題目會自動收進來。') : __('還沒有標記為搞懂的題目。') }}
@endforelse