{{ __('Course') }}

@include('course::course.navigation')
@csrf
@forelse ($chapters as $chapter)

@forelse ($chapter->chapterItems as $chapterItem) @if ($chapterItem->type == 'lesson')

{{ truncate($chapterItem->lesson->title) }}

@elseif ($chapterItem->type == 'document')

{{ truncate($chapterItem->lesson?->title) }}

@else

@forelse ($chapterItem->quiz->questions as $question)

{{ $question->title }}

@empty

{{ __('No questions found.') }}

@endforelse
@endif @empty

{{ __('No lessons found.') }}

@endforelse
@empty

{{ __('No chapters found.') }}

@endforelse