@if ($lesson->isPre()) @php $concepts = $questions->map(fn ($q) => app(\App\Services\PrePost::class)->unitName($q) ?? app(\App\Services\PrePost::class)->concept($q))->unique()->values(); @endphp
🎯 {{ __('牛刀小試') }}
{{ __('你答對 :a / :b 題', ['a' => $correct, 'b' => $questions->count()]) }}
{{ __('沒關係,這就是學習的起點;學完本章後會有章末小測驗,看看你進步多少。') }}
@include('learn.pomelo', ['say' => __('先不公布答案,學完本章再一起看你進步多少!')])

🗺️ {{ __('本章觀念地圖') }}

{{ __('這些是本章要學會的觀念。為了讓章末小測驗的比較有意義,這裡不顯示答案與對錯。') }}

    @foreach ($concepts as $c)
  • {{ $c }}
  • @endforeach

{{ __('可以重做,但比較時仍以你第一次的作答作為學前基準,重做不會洗掉它。') }}

@else
{{ __(':n 分', ['n' => $score]) }}
isPost()) data-post-banner @endif>@if ($lesson->isPost()) {{ $passed ? '🎉 '.__('達到 :n 分,下一章已解鎖', ['n' => $lesson->pass_score]) : __('差一點!再回頭複習標示的觀念,準備好再挑戰(需 :n 分才能進入下一章)', ['n' => $lesson->pass_score]) }} @elseif ($lesson->isFinal()) {{ $passed ? '🏁 '.__('通過期末考!整門課的努力有成果了') : __('再接再厲!看看下方各章分析,複習最弱的章節後再挑戰') }} @else {{ $passed ? '🎉 '.__('恭喜通過!已獲得 :n XP(首次通過)', ['n' => $lesson->xp]) : __('尚未達 :n 分,看看下方解析再挑戰一次', ['n' => $lesson->pass_score]) }} @endif
@include('learn.pomelo', ['say' => $passed ? __('太棒了!繼續保持~') : __('沒關係,看看下面的解析,再挑戰一次!')])
@if ($growth ?? null) @include('learn.growth') @endif @if ($exam ?? null) @include('learn.final') @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 @if ($q->reference && ! $r['correct'])

📖 {{ __('相關教材:') }}{{ $q->reference }}

@endif
@endforeach
@if ($lesson->isPost() && ! $passed) @php $reviewLesson = $lesson->chapter->lessons->first(fn ($x) => in_array($x->type, ['text', 'lab', 'video'], true)); @endphp @if ($reviewLesson){{ __('回去複習') }}@endif @endif {{ __('重新作答') }} @if ($canSkip ?? false)
@csrf
@endif
@if ($lesson->isPost() && $passed && ($nextChapterFirst ?? null)) {{ __('前往下一章') }} → @elseif ($passed && $next) {{ __('下一單元') }} → @else {{ __('回課程頁') }} @endif
@endif