{{-- Breadcrumb --}}
{{-- Progress & Actions --}}
Progress
{{ number_format($enrollment->progress_percent ?? 0, 1) }}%
{{-- Left: Video & Content (70%) --}}
@php
$openSectionIndex = 0;
if (isset($lesson) && isset($sections)) {
foreach ($sections as $idx => $section) {
foreach ($section['lessons'] as $l) {
if ($l->id === $lesson->id) {
$openSectionIndex = $idx;
break 2;
}
}
}
}
@endphp
@if(isset($lesson))
{{-- Premium Video Player --}}
{{-- Lesson Header --}}
{{-- Premium Tabs --}}
{{-- Tab Content --}}
{{-- Other Tabs --}}
@else
@endif
{{-- Right Sidebar: Course Content (28rem) --}}
@if($lesson->video_url)
@else
@endif
{{-- Navigation Overlay --}}
Video content coming soon
We're preparing amazing content for you
Lesson {{ $lesson->sort_order ?? 1 }}
@if($lesson->is_preview)
Free Preview
@endif
@if($lesson->duration)
{{ $lesson->duration }} min
@endif
{{ $lesson->title }}
@if($lesson->content){{ $lesson->content }}
@endif
{{-- Course Info Card --}}
{{-- What You'll Learn --}}
@if($course->syllabus)
@endif
{{-- Description --}}
{{-- Instructor --}}
@if($course->instructor)
@endif
{{-- Requirements --}}
{{ $course->title }}
{{ $course->description }}
{{-- Stats Grid --}}
@for($i = 1; $i <= 5; $i++)
@endfor
{{ number_format($course->rating ?? 4.5, 1) }}
Students
{{ number_format($course->enrollments->count() ?? 6980) }}
Duration
{{ round($course->total_duration / 60) ?? 19 }}h
Updated
{{ $course->updated_at->format('M Y') }}
What you'll learn
@foreach(array_slice(explode("\n", $course->syllabus), 0, 8) as $point)
@if(trim($point))
{{ trim($point) }}
@endif
@endforeach
Description
{{ $course->syllabus ?? $course->description }}
Instructor
{{ strtoupper(substr($course->instructor->name, 0, 1)) }}
{{ $course->instructor->name }}
{{ $course->instructor->email }}
Experienced instructor dedicated to your learning success.
Requirements
- • Basic understanding of the subject matter
- • Access to a computer with internet connection
- • Willingness to learn and practice
This section is coming soon.
No lessons available yet.
Course content
{{ $course->lessons->count() }} lessons
@foreach($sections ?? [] as $sectionIndex => $section)
@endforeach
@foreach($section['lessons'] as $l)
{{ $l->title }}
@if($l->duration)
{{ $l->duration }}m
@endif
@endforeach
@if(isset($lesson) && $lesson->id === $l->id)
@endif