{{-- 章末小測驗:學習成效卡片(學前 → 學後) --}}

📈 {{ __('學習成效') }}

@if (! $growth['has_pre'])

{{ __('你沒有做牛刀小試,所以沒有前後比較。') }}

@if ($growth['pre_lesson']) 🎯 {{ __('回到牛刀小試') }} @endif @else @php $d = $growth['delta']; $tone = $d > 0 ? 'text-emerald-600' : ($d < 0 ? 'text-amber-600' : 'text-ink-300'); @endphp
{{ $growth['pre_score'] }}% → {{ $growth['post_score'] }}%
@if ($d > 0) ▲ {{ __('進步 +:n 分', ['n' => $d]) }} @elseif ($d < 0) ▼ {{ __('比學前低 :n 分', ['n' => abs($d)]) }} @else = {{ __('和學前持平') }} @endif

@if ($d > 0) {{ __('學完本章,你進步了!') }} @elseif ($d < 0) {{ __('沒關係,再複習一下標示的觀念,很快就會追上來。') }} @else {{ __('學前就有不錯的基礎,再把標示的觀念複習一下就更穩了。') }} @endif

{{ __('學前成績取你第一次做牛刀小試的結果;學後成績是這一次的作答。') }}

@if ($growth['rows'])
@foreach ($growth['rows'] as $r) @php $sc = ['new' => 'text-emerald-600', 'kept' => 'text-ink-300', 'weak' => 'text-amber-600', 'still' => 'text-amber-600'][$r['status']]; @endphp @endforeach
{{ __('觀念') }}{{ __('學前') }}{{ __('學後') }}{{ __('狀態') }}
{{ $r['concept'] }}@if (! empty($r['unit'])){{ __('教材:') }}{{ $r['unit'] }}@endif {{ $r['pre'] ? '✓' : '✗' }} {{ $r['post'] ? '✓' : '✗' }} {{ __(\App\Services\PrePost::STATUS[$r['status']]) }} @if ($r['review']) 📖 {{ __('建議複習:') }}{{ $r['review']->title }} @endif
@endif @endif