@if(!empty($webinar->chapters) and count($webinar->chapters))
    @foreach($webinar->chapters as $chapter)
  • @if(!empty($chapter->chapterItems) and count($chapter->chapterItems))
      @foreach($chapter->chapterItems as $chapterItem) @if($chapterItem->type == \App\Models\WebinarChapterItem::$chapterSession and !empty($chapterItem->session)) @include('admin.webinars.create_includes.accordions.session' ,['session' => $chapterItem->session , 'chapter' => $chapter, 'chapterItem' => $chapterItem]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterFile and !empty($chapterItem->file)) @include('admin.webinars.create_includes.accordions.file' ,['file' => $chapterItem->file , 'chapter' => $chapter, 'chapterItem' => $chapterItem]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterTextLesson and !empty($chapterItem->textLesson)) @include('admin.webinars.create_includes.accordions.text-lesson' ,['textLesson' => $chapterItem->textLesson , 'chapter' => $chapter, 'chapterItem' => $chapterItem]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterAssignment and !empty($chapterItem->assignment)) @include('admin.webinars.create_includes.accordions.assignment' ,['assignment' => $chapterItem->assignment , 'chapter' => $chapter, 'chapterItem' => $chapterItem]) @elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterQuiz and !empty($chapterItem->quiz)) @include('admin.webinars.create_includes.accordions.quiz' ,['quizInfo' => $chapterItem->quiz , 'chapter' => $chapter, 'chapterItem' => $chapterItem]) @endif @endforeach
    @else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'meet.png', 'title' => trans('update.chapter_content_no_result'), 'hint' => trans('update.chapter_content_no_result_hint'), ]) @endif
  • @endforeach
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'meet.png', 'title' => trans('update.chapter_no_result'), 'hint' => trans('update.chapter_no_result_hint'), ]) @endif