Tous les cours {{-- Course header --}}
{{ $course->emoji }}

{{ $course->name }}

{{ $course->description }}

{{ $totalCards }} cartes {{ $course->chapters->count() }} chapitres @if ($courseStat && $courseStat->streak > 0) Série {{ $courseStat->streak }}j @endif
@if ($courseStat && $courseStat->total_answered > 0)

Maîtrise

{{ $courseStat->correct_answered }}/{{ $courseStat->total_answered }} réussies

@endif
{{-- Whole-course hero --}}
Recommandé

Réviser le cours complet

Toutes les notions des {{ $course->chapters->count() }} chapitres mélangées, doublons retirés. Choisis ton mode :

@foreach ([['flashcards','book','Flashcards','Retourne et mémorise'],['qcm','target','QCM','4 réponses possibles'],['open','pen','Réponse libre','Rédige de mémoire'],['infinite','infinity','Mode infini','Jusqu’à tout maîtriser']] as [$m,$icon,$t,$d])

{{ $t }}

{{ $d }}

@endforeach
{{-- Chapters --}}

Réviser par chapitre

@foreach ($course->chapters as $chapter) @php $st = $chapterStats[$chapter->id] ?? null; $total = (int) ($st->total ?? 0); $correct = (int) ($st->correct ?? 0); $pct = $total > 0 ? (int) round($correct / $total * 100) : 0; @endphp
{{ $chapter->emoji }}

{{ $chapter->name }}

@if ($total > 0) {{ $pct }}% @endif

{{ $chapter->cards_count }} cartes

@if ($total > 0)
@endif
@endforeach