@extends('layouts.app') @section('title',$lesson->title) @section('content')
← Kembali ke kurikulum{{ $lesson->section->title }}

{{ $lesson->title }}

@if($lesson->summary)

{{ $lesson->summary }}

@endif
@foreach($lesson->blocks as $block)
@if($block->block_type === 'text')
{{ $block->content }}
@elseif($block->block_type === 'video')@php($embedUrl = \App\Support\VideoEmbed::url($block->media_url))@if($embedUrl)
@else

Video tidak dapat ditampilkan.

@endif @elseif($block->block_type === 'file')PDF{{ $block->content ?: 'Unduh materi' }}Unduh file pembelajaran↓@endif
@endforeach
@csrf
@endsection