@php use Illuminate\Support\Carbon; if (Auth::check() && $isEnrolled){ $allow=true; }else{ $allow=false; } if (@$course->discount_price>0) { $course_price=@$course->discount_price; } else { $course_price=@$course->price; } $showWaitList =false; $alreadyWaitListRequest =false; if(isModuleActive('WaitList') && $course->waiting_list_status == 1 && auth()->check()){ $count = $course->waitList->where('user_id',auth()->id())->count(); if ($count==0){ $showWaitList=true; }else{ $alreadyWaitListRequest =true; } } @endphp

{{__('virtual-class.Class')}} / {{__('frontend.Class Details')}}

{{$course->title}}

  • {{@$course->user->name}} image

    {{__('frontend.By')}} - {{@$course->user->name}}

  • @if(!Settings('hide_total_enrollment_count') == 1)
  • {{$course->total_enrolled}} {{__('frontend.students')}}
  • @endif
  • {{MinuteFormat($course->class->duration)}}
  • @php $main_stars=$course->total_rating; $stars=intval($main_stars); @endphp @for ($i = 0; $i < $stars; $i++) @endfor @if ($main_stars>$stars) @endif @if($main_stars==0) @for ($i = 0; $i < 5; $i++) @endfor @endif
    ({{$course->total_rating}})
{{--
--}}
@if(isModuleActive('Installment') && $course_price > 0) @includeIf(theme('partials._installment_plan_details'), ['course' => $course,'position'=>'top_of_page']) @endif
{{__('common.Start Date & Time')}}

{{ showDate($course->class->start_date)}} {{__('common.At')}} {{date('h:i A', strtotime($course->class->time))}}

{{__('common.End Date & Time')}}

{{showDate($course->class->end_date)}} {{__('common.At')}} @php $duration =$course->class->duration??0; @endphp {{date('h:i A', strtotime("+".$duration." minutes", strtotime($course->class->time)))}}

{{__('common.Duration')}}
@php $days =1; if ($course->class->host=="Zoom"){ $days=count($course->class->zoomMeetings); }elseif($course->class->host=="BBB"){ $days=count($course->class->bbbMeetings); }elseif ($course->class->host=="Jitsi"){ $days=count($course->class->jitsiMeetings); }elseif ($course->class->host=="InAppLiveClass"){ $days=count($course->class->inAppMeetings); }elseif ($course->class->host=="Custom"){ $days=count($course->class->customMeetings); } $str = ($course->class->duration?? 0)*$days; $duration =preg_replace('/[^0-9]/', '', $str); @endphp

{{MinuteFormat($duration)}}

{{__('frontend.Course Description')}}

{!! $course->about !!}

@if(isModuleActive('Installment') && $course_price > 0) @includeIf(theme('partials._installment_plan_details'), ['course' => $course,'position'=>'bottom_of_page']) @endif @if(!Settings('hide_social_share_btn') =='1') @endif

{{__('frontend.Course Schedule')}}

@if($course->class->host=="BBB") @foreach($course->class->bbbMeetings as $key=>$meeting)
{{__('common.Start Date')}}
{{date('d M Y',$meeting->datetime)}}
{{__('common.Time')}}
({{__('common.Start')}} - {{__('common.End')}})
{{date('g:i A',$meeting->datetime)}} - @if($meeting->duration==0) N/A @else {{date('g:i A',$meeting->datetime+($meeting->duration*60))}} @endif
{{__('common.Duration')}} @php $str = $meeting->duration?? 0; $duration =preg_replace('/[^0-9]/', '', $str); @endphp
{{MinuteFormat($duration)}}
@if (Auth::check() && $isEnrolled)
@if(@$meeting->isRunning()) {{__('common.Watch Now')}} @else @php $last_time = Illuminate\Support\Carbon::parse($meeting->date. ' ' . $meeting->time); $nowDate = Illuminate\Support\Carbon::now(); $isWaiting = $last_time->gt($nowDate); @endphp @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif
@endif
@endforeach @elseif($course->class->host=="Jitsi") @foreach($course->class->jitsiMeetings as $key=>$meeting)
{{__('common.Start Date')}}
{{date('d M Y',$meeting->datetime)}}
{{__('common.Time')}}
({{__('common.Start')}} - {{__('common.End')}})
{{date('g:i A',$meeting->datetime)}} - @if($meeting->duration==0) N/A @else {{date('g:i A',$meeting->datetime+($meeting->duration*60))}} @endif
{{__('common.Duration')}} @php $str = $meeting->duration?? 0; $duration =preg_replace('/[^0-9]/', '', $str); @endphp
{{MinuteFormat($duration)}}
@if (Auth::check() && $isEnrolled)
@php $start = \Illuminate\Support\Carbon::parse($meeting->date . ' ' .$meeting->time); $nowDate = \Illuminate\Support\Carbon::now(); $not_start = $start->gt($nowDate); $end =$start->addMinutes((int)$meeting->duration); $not_end =$end->gt($nowDate); @endphp @if(!$not_start && $not_end) {{__('common.Watch Now')}} @else @php $last_time = Illuminate\Support\Carbon::parse($meeting->date. ' ' . $meeting->time); $nowDate = Illuminate\Support\Carbon::now(); $isWaiting = $last_time->gt($nowDate); @endphp @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif
@endif
@endforeach @elseif($course->class->host=="Custom") @foreach($course->class->customMeetings as $key=>$meeting)
{{__('common.Start Date')}}
{{date('d M Y',$meeting->datetime)}}
{{__('common.Time')}}
({{__('common.Start')}} - {{__('common.End')}})
{{date('g:i A',$meeting->datetime)}} - @if($meeting->duration==0) N/A @else {{date('g:i A',$meeting->datetime+($meeting->duration*60))}} @endif
{{__('common.Duration')}} @php $str = $meeting->duration?? 0; $duration =preg_replace('/[^0-9]/', '', $str); @endphp
{{MinuteFormat($duration)}}
@if (Auth::check() && $isEnrolled)
@php $start = \Illuminate\Support\Carbon::parse($meeting->date . ' ' .$meeting->time); $nowDate = \Illuminate\Support\Carbon::now(); $not_start = $start->gt($nowDate); $end =$start->addMinutes((int)$meeting->duration); $not_end =$end->gt($nowDate); @endphp @if(!$not_start && $not_end && !empty($meeting->link)) {{__('common.Watch Now')}} @else @php $last_time = Illuminate\Support\Carbon::parse($meeting->date. ' ' . $meeting->time); $nowDate = Illuminate\Support\Carbon::now(); $isWaiting = $last_time->gt($nowDate); @endphp @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif
@endif
@endforeach @elseif($course->class->host=="InAppLiveClass") @foreach($course->class->inAppMeetings as $key=>$meeting)
{{__('common.Start Date')}}
{{date('d M Y',$meeting->datetime)}}
{{__('common.Time')}}
({{__('common.Start')}} - {{__('common.End')}})
{{date('g:i A',$meeting->datetime)}} - @if($meeting->duration==0) N/A @else {{date('g:i A',$meeting->datetime+($meeting->duration*60))}} @endif
{{__('common.Duration')}} @php $str = $meeting->duration?? 0; $duration =preg_replace('/[^0-9]/', '', $str); @endphp
{{MinuteFormat($duration)}}
@if (Auth::check() && $isEnrolled)
@php $start = \Illuminate\Support\Carbon::parse($meeting->date . ' ' .$meeting->time); $nowDate = \Illuminate\Support\Carbon::now(); $not_start = $start->gt($nowDate); $end =$start->addMinutes((int)$meeting->duration); $not_end =$end->gt($nowDate); @endphp @if(!$not_start && $not_end) {{__('common.Watch Now')}} @else @php $last_time = Illuminate\Support\Carbon::parse($meeting->date. ' ' . $meeting->time); $nowDate = Illuminate\Support\Carbon::now(); $isWaiting = $last_time->gt($nowDate); @endphp @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif
@endif
@endforeach @elseif($course->class->host=="Zoom") @foreach($course->class->zoomMeetings as $key=>$meeting)
{{__('common.Start Date')}}
{{date('d M Y',strtotime($meeting->start_time))}}
{{__('common.Time')}}
({{__('common.Start')}} - {{__('common.End')}})
{{date('g:i A',strtotime($meeting->start_time))}} -{{date('g:i A',strtotime($meeting->end_time))}}
{{__('common.Duration')}} @php $str = $meeting->meeting_duration?? 0; $duration =preg_replace('/[^0-9]/', '', $str); @endphp
{{MinuteFormat($duration)}}
@if (Auth::check() && $isEnrolled)
@if(@$meeting->currentStatus=="started") {{__('common.Watch Now')}} @elseif (@$meeting->currentStatus== 'waiting') {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif
@endif
@endforeach @elseif($course->class->host=="GoogleMeet") @foreach($course->class->googleMeetMeetings as $key=>$meeting)
{{__('common.Start Date')}}
{{date('d M Y',strtotime($meeting->start_date_time))}}
{{__('common.Time')}}
({{__('common.Start')}} - {{__('common.End')}})
{{date('g:i A',strtotime($meeting->start_date_time))}} -{{date('g:i A',strtotime($meeting->end_date_time))}}
{{__('common.Duration')}}
{{MinuteFormat(\Carbon\Carbon::parse($meeting->start_date_time)->diffInMinutes($meeting->end_date_time))}}
@if (Auth::check() && $isEnrolled)
@if(@$meeting->currentStatus=="started") {{__('common.Watch Now')}} @elseif (@$meeting->currentStatus== 'waiting') {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif
@endif
@endforeach @endif

{{__('frontend.Instructor')}}

{{--

{{@$course->user->headline}}

--}}

{{@$course->user->name}}

{{--
{{@$course->user->headline}}
--}}
{{--

{!! @$course->user->short_details !!}

--}}

{!!@$course->user->about!!}

{{@$course->user->totalRating()['rating']}} {{__('frontend.Rating')}}
{{@$course->user->totalRating()['total']}} {{__('frontend.Reviews')}}
{{@$course->user->totalEnrolled()}} {{__('frontend.Students')}}
{{@$course->user->totalCourses()}} {{__('frontend.Courses')}}

{{__('frontend.Student Feedback')}}

{{--

{{$course->title}}

--}}

{{$course->total_rating}}

@php $main_stars=$course->total_rating; $stars=intval($main_stars); @endphp @for ($i = 0; $i < $stars; $i++) @endfor @if ($main_stars>$stars) @endif @if($main_stars==0) @for ($i = 0; $i < 5; $i++) @endfor @endif
{{__('frontend.Course Rating')}}
{{getPercentageRating($course->starWiseReview,5)}}%
{{getPercentageRating($course->starWiseReview,4)}}%
{{getPercentageRating($course->starWiseReview,3)}}%
{{getPercentageRating($course->starWiseReview,2)}}%
{{getPercentageRating($course->starWiseReview,1)}}%
@if ($course->reviews->count()<1) @if (Auth::check() && $isEnrolled)

{{ __('frontend.Be the first reviewer') }}

@else

{{ __('frontend.No Review found') }}

@endif @else @endif
@php $PickId=$course->id; @endphp @if (Auth::check() && Auth::user()->role_id==3) @if (!in_array(Auth::user()->id,$reviewer_user_ids) && $isEnrolled) @endif @else

Sign In or Sign Up as student to post a review

@endif

{{__('frontend.Reviews')}}

{{__('frontend.Course you might like')}}

@foreach(@$related as $r)
@if($r->level) {{$r->courseLevel->title}} @endif
{{@$r->title}}
{{$r->totalReview}} ({{translatedNumber($r->total_reviews)}} {{__('common.Rating')}})
@if(!Settings('hide_total_enrollment_count') == 1) {{$r->total_enrolled}} {{__('frontend.Students')}} @endif
{{ getLimitedText($r->about,120) }}
@endforeach
@if ($isEnrolled)
@csrf

{{__('frontend.Leave a question/comment') }}

@else

{{__('frontend.You must be enrolled to ask a question')}}

@endif

{{__("frontend.Students also bought")}}

@foreach($others as $o) @endforeach
@if (Auth::check()) @if ($isEnrolled) @if(@$course->class->host=="Zoom") @if(@$course->nextMeeting->currentStatus=="started") {{__('common.Watch Now')}} @elseif (@$course->nextMeeting->currentStatus== 'waiting') {{__('frontend.Waiting')}} @else @if($isWaiting) {{__('frontend.Waiting')}} @else @if($certificateCanDownload) {{__('frontend.Get Certificate')}} @else {{__('frontend.Closed')}} @endif @endif @endif @endif @if(@$course->class->host=="BBB") @php $hasClass=false; @endphp @foreach($course->class->bbbMeetings as $key=>$meeting) @if(!$hasClass) @if(@$meeting->isRunning()) {{__('common.Watch Now')}} @php $hasClass=true; @endphp @endif @endif @endforeach @if(!$hasClass) @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif @endif @if(@$course->class->host=="Jitsi") @if($course->nextMeeting) @php $start = \Illuminate\Support\Carbon::parse($course->nextMeeting->date . ' ' .$course->nextMeeting->time); $nowDate = \Illuminate\Support\Carbon::now(); $not_start = $start->gt($nowDate); $end =$start->addMinutes((int)$course->nextMeeting->duration); $not_end =$end->gt($nowDate); @endphp @if(!$not_start && $not_end) {{__('common.Watch Now')}} @else @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif @endif @endif @if(@$course->class->host=="Custom") @if($course->nextMeeting) @php $start = \Illuminate\Support\Carbon::parse($course->nextMeeting->date . ' ' .$course->nextMeeting->time); $nowDate = \Illuminate\Support\Carbon::now(); $not_start = $start->gt($nowDate); $end =$start->addMinutes((int)$course->nextMeeting->duration); $not_end =$end->gt($nowDate); @endphp @if(!$not_start && $not_end) {{__('common.Watch Now')}} @else @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif @endif @endif @if(@$course->class->host=="InAppLiveClass") @if($course->nextMeeting) @php $start = \Illuminate\Support\Carbon::parse($course->nextMeeting->date . ' ' .$course->nextMeeting->time); $nowDate = \Illuminate\Support\Carbon::now(); $not_start = $start->gt($nowDate); $end =$start->addMinutes((int)$course->nextMeeting->duration); $not_end =$end->gt($nowDate); @endphp @if(!$not_start && $not_end) {{__('common.Watch Now')}} @else @if($isWaiting) {{__('frontend.Waiting')}} @else {{__('frontend.Closed')}} @endif @endif @endif @endif @if(@$course->class->host=="GoogleMeet") @if(@$course->nextMeeting->currentStatus=="started") {{__('common.Watch Now')}} @elseif (@$course->nextMeeting->currentStatus== 'waiting') {{__('frontend.Waiting')}} @else @if($isWaiting) {{__('frontend.Waiting')}} @else @if($certificateCanDownload) {{__('frontend.Get Certificate')}} @else {{__('frontend.Closed')}} @endif @endif @endif @endif @else {{-- @if(!onlySubscription()) @if($isFree) @if($is_cart == 1) {{__('common.Added To Cart')}} @else {{__('common.Add To Cart')}} @endif @else {{__('common.Add To Cart')}} {{__('common.Buy Now')}} @endif @endif --}} @endif @else {{-- @if(!onlySubscription()) @if($isFree) {{__('common.Add To Cart')}} @else {{__('common.Add To Cart')}} {{__('common.Buy Now')}} @endif @endif--}} @endif

{{__('frontend.More Courses by Author')}}

{{__('frontend.Discover Additional Learning Opportunities')}}

@if($showWaitList) @include(theme('partials._course_wait_list_form'),['course' => $course]) @endif @include(theme('partials._delete_model'))