@if(!empty($course->chapters) and count($course->chapters))
@foreach($course->chapters as $chapter)
{{ $chapter->title }}
{{ $chapter->getTopicsCount(true) }} {{ trans('public.parts') }}
@if(!empty($chapter->chapterItems) and count($chapter->chapterItems)) @foreach($chapter->chapterItems as $chapterItem) @if($chapterItem->type == \App\Models\WebinarChapterItem::$chapterSession and !empty($chapterItem->session) and $chapterItem->session->status == 'active') @include('design_1.web.courses.learning_page.includes.sidebar.tabs.contents.session' , ['session' => $chapterItem->session, 'type' => \App\Models\WebinarChapter::$chapterSession]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterFile and !empty($chapterItem->file) and $chapterItem->file->status == 'active') @include('design_1.web.courses.learning_page.includes.sidebar.tabs.contents.file' , ['file' => $chapterItem->file, 'type' => \App\Models\WebinarChapter::$chapterFile]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterTextLesson and !empty($chapterItem->textLesson) and $chapterItem->textLesson->status == 'active') @include('design_1.web.courses.learning_page.includes.sidebar.tabs.contents.text_lesson' , ['textLesson' => $chapterItem->textLesson, 'type' => \App\Models\WebinarChapter::$chapterTextLesson]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterAssignment and !empty($chapterItem->assignment) and $chapterItem->assignment->status == 'active') @include('design_1.web.courses.learning_page.includes.sidebar.tabs.contents.assignment' ,['assignment' => $chapterItem->assignment]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterQuiz and !empty($chapterItem->quiz) and $chapterItem->quiz->status == 'active') @include('design_1.web.courses.learning_page.includes.sidebar.tabs.contents.quiz' ,['quiz' => $chapterItem->quiz, 'type' => 'quiz']) @endif @endforeach @endif
@endforeach
@endif