{{-- 牛刀小試/章末小測驗/期末考的標示。節點標題已經寫了名稱,所以這裡不重複文字: 目錄與清單(預設 variant=dot)只放一個小圓點(滑過顯示名稱、螢幕閱讀器可讀); 單元頁標題旁(variant=hint)只放補充規則(不計分、需 80 分…)。 --}} @if ($label = $l->roleLabel()) @php $tone = $l->isPre() || $l->isFinal() ? ['dot' => 'bg-gold-500', 'tag' => 'border-gold-500/60 text-gold-600 bg-gold-400/10'] : ['dot' => 'bg-emerald-500', 'tag' => 'border-emerald-500/50 text-emerald-600 bg-emerald-500/10']; @endphp @if (($variant ?? 'dot') === 'hint') {{ $l->roleHint() }} @else {{ $label }} @endif @endif @php $listMode = ($variant ?? 'dot') !== 'hint'; @endphp @if ($l->isPost()) @if ($listMode) {{-- 目錄只留圓點,及格分數不重複顯示 --}} @else {{ __('需 :n 分', ['n' => $l->pass_score]) }} @endif @endif @if (in_array($l->id, $uc['hasCheck'] ?? [])) @if ($listMode) 🧠{{ __('小測') }} @else 🧠 {{ __('小測') }} @endif @endif