{{-- Sessions --}} @if(!empty($course->chapters) and count($course->chapters)) @include('web.default.course.tabs.contents.chapter') @endif @if(!empty($sessionsWithoutChapter) and count($sessionsWithoutChapter)) @foreach($sessionsWithoutChapter as $session) @include('web.default.course.tabs.contents.sessions' , ['session' => $session, 'accordionParent' => 'sessionsAccordion']) @endforeach @endif {{-- Files --}} @if(!empty($filesWithoutChapter) and count($filesWithoutChapter)) @foreach($filesWithoutChapter as $file) @include('web.default.course.tabs.contents.files' , ['file' => $file, 'accordionParent' => 'filesAccordion']) @endforeach @endif {{-- TextLessons --}} @if(!empty($textLessonsWithoutChapter) and count($textLessonsWithoutChapter)) @foreach($textLessonsWithoutChapter as $textLesson) @include('web.default.course.tabs.contents.text_lessons' , ['textLesson' => $textLesson, 'accordionParent' => 'textLessonsAccordion']) @endforeach @endif {{-- Quizzes --}} @if(!empty($quizzes) and $quizzes->count() > 0) {{ trans('update.quiz_and_certificates') }} @foreach($quizzes as $quiz) @include('web.default.course.tabs.contents.quiz' , ['quiz' => $quiz, 'accordionParent' => 'quizAccordion']) @endforeach {{-- Certificates --}} @include('web.default.course.tabs.contents.certificate' , ['quizzes' => $course->quizzes]) @endif @include('web.default.course.tabs.play_modal.play_modal')