⌂
Welcome, {{Auth::user()->name}}
Logout
☰
{{$program->name}}
@php // Get courses and manage selected section ID $courses = getCourses($program->id); $encryptedSectionId = Route::current()->parameter('slug'); $decryptedSectionId = $encryptedSectionId ? decryption($encryptedSectionId) : null; @endphp @foreach ($courses as $course) @php // Get sections for the current course $sections = getSections($course->id); $courseActive = collect($sections)->contains(fn($section) => $decryptedSectionId == $section->id); @endphp
{{$loop->iteration}}. {{$course->name}}
→
@foreach ($sections as $section) @php $encryptedId = encryption($section->id); @endphp
{{$loop->parent->iteration}}.{{$loop->iteration}} {{$section->name}}
@endforeach
Practice Exam
@endforeach {{--
Practice Exam
→
--}}