{{ __('統計資訊') }}

{{ $scoped ? __('以下只統計你負責的課程。') : __('所有數字都來自真實資料。') }}{{ __('尚未有資料來源的指標會明確標示,不顯示假數字。') }}

@foreach ([7 => __('近 7 天'), 30 => __('近 30 天'), 90 => __('近 90 天')] as $d => $l) {{ $l }} @endforeach
@foreach ($stats as $label => $v)
{{ __($label) }}
{{ $v }}
@endforeach @foreach ($pending as $label => $why)
{{ __($label) }}
—
{{ __($why) }}
@endforeach
@php $colors = ['#e2bd55', '#38bdf8', '#4ade80', '#c084fc']; @endphp @foreach ($series as $label => $data) @endforeach

{{ __('各課程成效') }}

@forelse ($courses as $r) @empty @endforelse
{{ __('課程') }}{{ __('學院') }}{{ __('報名') }}{{ __('結業') }}{{ __('結業率') }}{{ __('測驗平均') }}
{{ $r['course']->title }} @unless ($r['course']->is_published){{ __('草稿') }}@endunless {{ __($r['course']->category->name) }} {{ $r['enrolled'] }}{{ $r['completed'] }} {{ $r['rate'] === null ? '—' : $r['rate'].'%' }} {{ $r['score'] ?? '—' }}
{{ __('還沒有課程') }}
@unless ($scoped)

{{ __('各學院概況') }}

@foreach ($byCategory as $c)
{{ __($c['name']) }}{{ __(':c 門課 ・ :e 人次報名', ['c' => $c['courses'], 'e' => $c['enrolled']]) }}
@endforeach
@endunless

{{ __('最難的測驗') }}

{{ __('平均分最低(至少 3 次作答)。分數太低可能是題目太難,或教材沒講清楚。') }}

@forelse ($hardest as $h) @php $l = $hardLessons[$h->lesson_id] ?? null; @endphp
{{ $l?->title ?? __('(已刪除)') }} {{ $l?->chapter?->course?->title }}{{ round($h->avg_score) }} {{ __('分') }} ・ {{ __(':n 次', ['n' => $h->attempts]) }}
@empty
{{ __('作答次數還不夠(每個測驗至少要 3 次)。') }}
@endforelse