@include('frontend.layouts.header')
@php $status="Start learning"; if ($master_class_user){ if($masterClassLectures === $masterClassWatchedLecturesCount){ $status="Completed"; }else if($masterClassWatchedLecturesCount >0){ $status="In progress"; }else{ $status="Start learning"; } } @endphp

Lessons in this class

{{$status}}
@foreach ($master_class->master_class_topics as $index=> $master_class_topic)

@foreach ($master_class_topic->master_class_lectures as $key => $lecture) @php $seen=false; if($masterClassWatchedLectures != null){ if($masterClassWatchedLectures->contains('lecture_id', $lecture->id)){ $seen=true; } } @endphp

{{ $lecture->title }}

Lesson {{$key+1}}

{{ $lecture->duration_hour }}hr   {{ $lecture->duration_minutes }}min

Seen

@if($registered===false && $master_class->pricing==='PREMIUM' && $lecture->id!=$first_video->id)
@endif
@endforeach
@endforeach
@if($first_video)
@php $fileName = basename($first_video->video); $videoName = 'https://video.unocuepro.com/playMasterclassVideo/' . $fileName . '/' . 1; @endphp

{{$first_video->title}}

{{Auth::user()->username}}

@endif