@push('styles_top') @endpush

{{ trans('public.faq') }} ({{ trans('public.optional') }})

@if(!empty($upcomingCourse->faqs) and count($upcomingCourse->faqs))
    @foreach($upcomingCourse->faqs as $faqInfo) @include('web.default.panel.upcoming_courses.create_includes.accordions.faq',['upcomingCourse' => $upcomingCourse, 'faq' => $faqInfo]) @endforeach
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'faq.png', 'title' => trans('public.faq_no_result'), 'hint' => trans('public.faq_no_result_hint'), ]) @endif
@include('web.default.panel.upcoming_courses.create_includes.accordions.faq',['upcomingCourse' => $upcomingCourse])
@foreach(\App\Models\WebinarExtraDescription::$types as $upcomingCourseExtraDescriptionType)

{{ trans('update.'.$upcomingCourseExtraDescriptionType) }} ({{ trans('public.optional') }})

@php $upcomingCourseExtraDescriptionValues = $upcomingCourse->extraDescriptions->where('type',$upcomingCourseExtraDescriptionType); @endphp
@if(!empty($upcomingCourseExtraDescriptionValues) and count($upcomingCourseExtraDescriptionValues))
    @foreach($upcomingCourseExtraDescriptionValues as $learningMaterialInfo) @include('web.default.panel.upcoming_courses.create_includes.accordions.extra_description', [ 'upcomingCourse' => $upcomingCourse, 'extraDescription' => $learningMaterialInfo, 'extraDescriptionType' => $upcomingCourseExtraDescriptionType, 'extraDescriptionParentAccordion' => $upcomingCourseExtraDescriptionType.'_accordion', ] ) @endforeach
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'faq.png', 'title' => trans("update.{$upcomingCourseExtraDescriptionType}_no_result"), 'hint' => trans("update.{$upcomingCourseExtraDescriptionType}_no_result_hint"), ]) @endif
@include('web.default.panel.upcoming_courses.create_includes.accordions.extra_description', [ 'upcomingCourse' => $upcomingCourse, 'extraDescriptionType' => $upcomingCourseExtraDescriptionType, 'extraDescriptionParentAccordion' => $upcomingCourseExtraDescriptionType.'_accordion', ] )
@endforeach @push('scripts_bottom') @endpush