@php $icon = ''; $hintText= ''; if ($type == \App\Models\WebinarChapter::$chapterSession) { $icon = 'video'; $hintText = dateTimeFormat($item->date, 'j M Y H:i') . ' | ' . $item->duration . ' ' . trans('public.min'); } elseif ($type == \App\Models\WebinarChapter::$chapterFile) { $hintText = trans('update.file_type_'.$item->file_type) . ($item->volume > 0 ? ' | '.$item->getVolume() : ''); $icon = $item->getIconByType(); } elseif ($type == \App\Models\WebinarChapter::$chapterTextLesson) { $icon = 'file-text'; $hintText= $item->study_time . ' ' . trans('public.min'); } $checkSequenceContent = $item->checkSequenceContent(); $sequenceContentHasError = (!empty($checkSequenceContent) and (!empty($checkSequenceContent['all_passed_items_error']) or !empty($checkSequenceContent['access_after_day_error']))); @endphp
{{ $item->title }} {{ $hintText }}

@php $description = !empty($item->description) ? $item->description : (!empty($item->summary) ? $item->summary : ''); @endphp {!! truncate($description, 150) !!}

checkPassedItem())) checked @endif>