@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('design_1.panel.webinars.create.includes.accordions.session' ,['session' => $chapterItem->session , 'chapter' => $chapter, 'chapterItem' => $chapterItem, 'webinar' => $webinar])
@elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterFile and !empty($chapterItem->file))
@include('design_1.panel.webinars.create.includes.accordions.file' ,['file' => $chapterItem->file , 'chapter' => $chapter, 'chapterItem' => $chapterItem, 'webinar' => $webinar])
@elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterTextLesson and !empty($chapterItem->textLesson))
@include('design_1.panel.webinars.create.includes.accordions.text_lesson' ,['textLesson' => $chapterItem->textLesson, 'chapter' => $chapter, 'chapterItem' => $chapterItem, 'webinar' => $webinar])
@elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterAssignment and !empty($chapterItem->assignment))
@include('design_1.panel.webinars.create.includes.accordions.assignment' ,['assignment' => $chapterItem->assignment , 'chapter' => $chapter, 'chapterItem' => $chapterItem, 'webinar' => $webinar])
@elseif($chapterItem->type == \App\Models\WebinarChapterItem::$chapterQuiz and !empty($chapterItem->quiz))
@include('design_1.panel.webinars.create.includes.accordions.quiz' ,['quizInfo' => $chapterItem->quiz , 'chapter' => $chapter, 'chapterItem' => $chapterItem, 'webinar' => $webinar])
@endif
@endforeach
@else
{{ trans('update.chapter_content_no_result') }}
{!! trans('update.chapter_content_no_result_hint') !!}
@endif