{{-- /student/course.php?id= — CourseController::show(): the course's modules and lessons, done ones ticked. --}} @extends('layouts.gamification') @section('title', $course->title) @section('gami-active', 'courses') @php $total = collect($modules)->sum(fn ($m) => count($m->lessons)); $done = collect($modules)->sum(fn ($m) => collect($m->lessons)->where('done', true)->count()); $pct = $total > 0 ? (int) round($done / $total * 100) : 0; $n = 0; @endphp @push('styles') @endpush @section('gami-content')
{{ $course->description }}
@endif