@extends('layouts.app') @section('content')
Dashboard {{ $chapter->course->name }}
@if($isPurchased && $videoId) @elseif(!$isPurchased)

Module Locked

Purchase this chapter or the full course to unlock high-fidelity content.

@csrf
@csrf
@else

Video not available

@endif
{{ $currentLesson ? $currentLesson->name : 'Lesson' }}

Module: {{ $chapter->name }}

@if($chapter->description)
Module Overview

{{ $chapter->description }}

@endif
@if($isPurchased)
ACCESS GRANTED
@else
VIEWING CURRICULUM
@endif
Student Reviews ({{ $ratings->count() }})
@forelse($ratings as $rating)
{{ $rating->user->name }}
@for($i=1; $i<=5; $i++) @endfor

{{ $rating->comment ?: 'No comment provided.' }}

{{ $rating->created_at->diffForHumans() }}
@empty

No reviews yet. Be the first to share your experience!

@endforelse
@if($isPurchased) @endif
@push('scripts') @endpush @endsection