{{-- /student/course_lesson.php?id= — CourseController::lesson(): the lesson itself, its pictures, tasks, materials, and «Урок пройден». Laid out like a w3schools tutorial page in Axioma's own colours: the course's table of contents on the left (a collapsible block on narrow screens), «Назад» and «Далее» above and below the lesson, sections divided by rules, code framed as «Пример» boxes (LessonText's $exampleLabel), notes as panels, and the tasks gathered in one «Проверьте себя» block at the end. --}} @extends('layouts.gamification') @section('title', $lesson->title) @section('gami-active', 'courses') @php [$images, $materials] = collect($materials)->partition(fn ($m) => \App\Services\Courses::isImage($m))->map(fn ($part) => $part->values()->all())->all(); $pct = (int) $neighbours['total'] > 0 ? (int) round($neighbours['index'] / $neighbours['total'] * 100) : 0; @endphp @push('styles') @endpush @push('scripts') @endpush @section('gami-content') @php $toc = function () use ($course, $outline, $lesson) { $html = ''; }; $prevLink = $neighbours['prev'] ? '/student/course_lesson.php?id='.$neighbours['prev']->id : null; $nextLink = $neighbours['next'] ? '/student/course_lesson.php?id='.$neighbours['next']->id : null; @endphp
{{ __('Выберите ответ — сразу появится разбор решения.') }}
@foreach ($tasks as $i => $task)