{{ $course->title }}
{{ $user->name }} · Generated {{ now()->format('j M Y, H:i') }}
@if($course->summary){{ $course->summary }}
@endif{{ $module->content }}
@endif @foreach($module->blocks as $block) @php $d = $block->data ?? []; @endphp @switch($block->type) @case('heading'){{ data_get($d, 'text') }}
@break @case('text_image') @php $src = \App\Models\CourseContentBlock::imageUrl(data_get($d, 'path')); @endphp @if(data_get($d, 'text')){{ data_get($d, 'text') }}
@endif @if($src)[Image: {{ data_get($d, 'caption') ?: data_get($d, 'alt') }}]
@endif @break @case('video'){{ data_get($d, 'title') ?: 'Video' }}
@if(data_get($d, 'transcript'))[No transcript provided for this video]
@endif @break @case('accordion') @foreach((array) data_get($d, 'items', []) as $item){{ data_get($item, 'title') }}
@if(data_get($item, 'body')){{ data_get($item, 'body') }}
@endif @php $isrc = \App\Models\CourseContentBlock::imageUrl(data_get($item, 'image')); @endphp @if($isrc){{ data_get($slide, 'title') }}@if(data_get($slide, 'caption')) — {{ data_get($slide, 'caption') }}@endif
@endif @endforeach @break @case('flip_card'){{ data_get($d, 'front') }} — {{ data_get($d, 'back') }}
@break @case('knowledge_check')Knowledge check: {{ data_get($d, 'question') }}
Why: {{ data_get($d, 'explanation') }}
@endif @break @endswitch @endforeach {{-- Assessment questions (assessment modules) --}} @if($module->questions->isNotEmpty())Assessment questions
Why: {{ $q->explanation }}
@endifThis course has no content yet.
@endforelseSegra LMS · Course transcript for {{ $user->name }}