@php $icon = ''; $hintText = ''; if ($type == \App\Models\WebinarChapter::$chapterSession) { $icon = 'fa-video'; $hintText = dateTimeFormat($item->date, 'j M Y H:i') . ' | ' . $item->duration . ' ' . trans('public.min'); } elseif ($type == \App\Models\WebinarChapter::$chapterFile) { $hintText = null; // trans('update.file_type_' . $item->file_type) . ($item->volume > 0 ? ' | ' . $item->getVolume() : ''); $icon = 'fa-solid fa-video'; // Simplified icon handling } elseif ($type == \App\Models\WebinarChapter::$chapterTextLesson) { $icon = 'fa-file-lines'; $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']))); $itemPersonalNote = $item ->personalNote() ->where('user_id', $authUser->id) ->first(); $hasPersonalNote = (!empty($itemPersonalNote) and !empty($itemPersonalNote->note)); @endphp
{{ $item->title }}
{{-- @php var_dump($item); @endphp --}} @isset($hintText) {{ $hintText }} @endisset
@if ($hasPersonalNote) @endif
@php $description = !empty($item->description) ? $item->description : (!empty($item->summary) ? $item->summary : ''); @endphp {!! truncate($description, 150) !!} {{-- Passed Lesson Toggle --}} {{--
checkPassedItem())) checked @endif>
--}}

Completed