@vite(['resources/css/app.css', 'resources/js/app.js'])
@include('partials.header-upgrad')
{{-- Premium Top Bar --}}
{{-- Breadcrumb --}} {{-- Progress & Actions --}}
{{-- Main Content Area --}}
{{-- Left: Video & Content (70%) --}}
@if(isset($lesson)) {{-- Premium Video Player --}}
@if($lesson->video_url) @else

Video content coming soon

We're preparing amazing content for you

@endif
{{-- Navigation Overlay --}}
@if($prevLesson) @endif @if($nextLesson) @endif
{{-- Lesson Header --}}
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
{{-- Premium Tabs --}}
{{-- Tab Content --}}
{{-- Course Info Card --}}

{{ $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 --}} @if($course->syllabus)

What you'll learn

@foreach(array_slice(explode("\n", $course->syllabus), 0, 8) as $point) @if(trim($point))
{{ trim($point) }}
@endif @endforeach
@endif {{-- Description --}}

Description

{{ $course->syllabus ?? $course->description }}
{{-- Instructor --}} @if($course->instructor)

Instructor

{{ strtoupper(substr($course->instructor->name, 0, 1)) }}

{{ $course->instructor->name }}

{{ $course->instructor->email }}

Experienced instructor dedicated to your learning success.

@endif {{-- Requirements --}}

Requirements

  • Basic understanding of the subject matter
  • Access to a computer with internet connection
  • Willingness to learn and practice
{{-- Other Tabs --}}

This section is coming soon.

@else

No lessons available yet.

@endif
{{-- Right Sidebar: Course Content (28rem) --}}

Course content

{{ $course->lessons->count() }} lessons

@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
@foreach($sections ?? [] as $sectionIndex => $section)
@endforeach
@guest @include('partials.auth-modal') @endguest