<div>
<?php
function secondsToTime($seconds) {
$dtF = new \DateTime('@0');
$dtT = new \DateTime("@$seconds");
return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes');
}
function secondsToHour($seconds) {
$dtF = new \DateTime('@0');
$dtT = new \DateTime("@$seconds");
return $dtF->diff($dtT)->format('%h : %i Hour(s)');
}
if (Auth::check() && $isEnrolled){
$allow=true;
}else{
$allow=false;
}
?>
<input type="hidden" name="start_time" class="class_start_time"
value="<?php echo e(isset($course->nextMeeting->start_time)?$course->nextMeeting->start_time:''); ?>">
<!-- course_details::start -->
<div class="course__details">
<div class="container">
<div class="row justify-content-center ">
<div class="col-xl-10">
<div class="course__details_title">
<div class="single__details">
<div class="thumb"
style="background-image: url('<?php echo e(getInstructorImage(@$course->user->image)); ?>')">
</div>
<div class="details_content">
<span><?php echo e(__('frontend.Instructor Name')); ?></span>
<a href="<?php echo e(route('instructorDetails',[$course->user->id,$course->user->name])); ?>">
<h4 class="f_w_700"><?php echo e(@$course->user->name); ?></h4>
</a>
</div>
</div>
<div class="single__details">
<div class="details_content">
<span><?php echo e(__('frontend.Category')); ?></span>
<h4 class="f_w_700"><?php echo e(@$course->class->category->name); ?></h4>
</div>
</div>
<div class="single__details">
<div class="details_content">
<span><?php echo e(__('frontend.Reviews')); ?></span>
<div class="rating_star">
<div class="stars">
<?php
$main_stars=@$course->user->totalRating()['rating'];
$stars=intval(@$course->user->totalRating()['rating']);
?>
<?php for($i = 0; $i < $stars; $i++): ?>
<i class="fas fa-star"></i>
<?php endfor; ?>
<?php if($main_stars>$stars): ?>
<i class="fas fa-star-half"></i>
<?php endif; ?>
<?php if($main_stars==0): ?>
<?php for($i = 0; $i < 5; $i++): ?>
<i class="far fa-star"></i>
<?php endfor; ?>
<?php endif; ?>
</div>
<p><?php echo e(@$course->user->totalRating()['rating']); ?>
(<?php echo e(@$course->user->totalRating()['total']); ?> <?php echo e(__('frontend.rating')); ?>)</p>
</div>
</div>
</div>
</div>
<div class="video_screen theme__overlay mb_60">
<div class="video_play text-center">
<?php if(Auth::check()): ?>
<?php if($isEnrolled): ?>
<?php if(@$course->class->host=="Zoom"): ?>
<?php if(@$course->nextMeeting->currentStatus=="started"): ?>
<a target="_blank"
href="<?php echo e(route('classStart', [$course->slug,'Zoom',$course->nextMeeting->id])); ?>"
class="theme_btn d-block text-center height_50 mb_10">
<?php echo e(__('common.Watch Now')); ?>
</a>
<?php elseif(@$course->nextMeeting->currentStatus== 'waiting'): ?>
<span
class="theme_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<?php if($isWaiting): ?>
<span
class="theme_line_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<?php if($certificateCanDownload): ?>
<a href="<?php echo e(route('getCertificate',[$course->id,$course->title])); ?>"
class="theme_btn certificate_btn mt-5">
<?php echo e(__('frontend.Get Certificate')); ?>
</a>
<?php else: ?>
<span
class="theme_line_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Closed')); ?>
</span>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if(@$course->class->host=="BBB"): ?>
<?php
$hasClass=false;
?>
<?php $__currentLoopData = $course->class->bbbMeetings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$meeting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(!$hasClass): ?>
<?php if(@$meeting->isRunning()): ?>
<a target="_blank"
href="<?php echo e(route('classStart', [$course->slug,'BBB',$meeting->id])); ?>"
class="theme_btn d-block text-center height_50 mb_10">
<?php echo e(__('common.Watch Now')); ?>
</a>
<?php
$hasClass=true;
?>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if(!$hasClass): ?>
<?php if($isWaiting): ?>
<span
class="theme_line_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<span
class="theme_line_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Closed')); ?>
</span>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if(@$course->class->host=="Jitsi"): ?>
<?php 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($course->nextMeeting->duration);
$not_end =$end->gt($nowDate);
?>
<?php if(!$not_start && $not_end): ?>
)
<a target="_blank"
href="<?php echo e(route('classStart', [$course->slug,'Jitsi',$course->nextMeeting->id])); ?>"
class="theme_btn d-block text-center height_50 mb_10">
<?php echo e(__('common.Watch Now')); ?>
</a>
<?php else: ?>
<?php if($isWaiting): ?>
<span
class="theme_line_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<span
class="theme_line_btn d-block text-center height_50 mb_10">
<?php echo e(__('frontend.Closed')); ?>
</span>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<?php if(!onlySubscription()): ?>
<?php if($isFree): ?>
<?php if($is_cart == 1): ?>
<a href="javascript:void(0)"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Added To Cart')); ?></a>
<?php else: ?>
<a href="<?php echo e(route('addToCart',[@$course->id])); ?>"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<?php endif; ?>
<?php else: ?>
<a href=" <?php echo e(route('addToCart',[@$course->id])); ?> "
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<a href="<?php echo e(route('buyNow',[@$course->id])); ?>"
class="theme_line_btn d-block text-center height_50 mb_20"><?php echo e(__('common.Buy Now')); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<?php if(!onlySubscription()): ?>
<?php if($isFree): ?>
<a href=" <?php echo e(route('addToCart',[@$course->id])); ?> "
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<?php else: ?>
<a href=" <?php echo e(route('addToCart',[@$course->id])); ?> "
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<a href="<?php echo e(route('buyNow',[@$course->id])); ?>"
class="theme_line_btn d-block text-center height_50 mb_20"><?php echo e(__('common.Buy Now')); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="<?php echo e(onlySubscription()?"col-xl-12 col-lg-12":"col-xl-8 col-lg-8"); ?>">
<div class="course_tabs text-center">
<ul class="w-100 nav lms_tabmenu justify-content-between mb_55" id="myTab"
role="tablist">
<li class="nav-item">
<a class="nav-link active" id="Overview-tab" data-toggle="tab" href="#Overview"
role="tab" aria-controls="Overview"
aria-selected="true"><?php echo e(__('frontend.Overview')); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" id="Curriculum-tab" data-toggle="tab" href="#Curriculum"
role="tab" aria-controls="Curriculum"
aria-selected="false"><?php echo e(__('frontend.Course Schedule')); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" id="Instructor-tab" data-toggle="tab" href="#Instructor"
role="tab" aria-controls="Instructor"
aria-selected="false"><?php echo e(__('frontend.Instructor')); ?></a>
</li>
<?php if(Settings('hide_review_section')!='1'): ?>
<li class="nav-item">
<a class="nav-link" id="Reviews-tab" data-toggle="tab" href="#Reviews"
role="tab" aria-controls="Instructor"
aria-selected="false"><?php echo e(__('frontend.Reviews')); ?></a>
</li>
<?php endif; ?>
<?php if(Settings('hide_qa_section')!='1'): ?>
<li class="nav-item">
<a class="nav-link" id="QA-tab" data-toggle="tab" href="#QASection"
role="tab" aria-controls="Instructor"
aria-selected="false"><?php echo e(__('frontend.QA')); ?></a>
</li>
<?php endif; ?>
</ul>
</div>
<div class="tab-content lms_tab_content" id="myTabContent">
<div class="tab-pane fade show active " id="Overview" role="tabpanel"
aria-labelledby="Overview-tab">
<!-- content -->
<div class="course_overview_description">
<div class="row mb_40">
<div class="col-12">
<div class="description_grid">
<div class="single_description_grid">
<h5> <?php echo e(__('common.Start Date & Time')); ?></h5>
<p>
<?php echo e(showDate($course->class->start_date)); ?> <?php echo e(__('common.At')); ?>
<?php echo e(date('h:i A', strtotime($course->class->time))); ?>
</p>
</div>
<div class="single_description_grid">
<h5> <?php echo e(__('common.End Date & Time')); ?></h5>
<p><?php echo e(showDate($course->class->end_date)); ?> <?php echo e(__('common.At')); ?>
<?php
$duration =$course->class->duration??0;
?>
<?php echo e(date('h:i A', strtotime("+".$duration." minutes", strtotime($course->class->time)))); ?>
</p>
</div>
<div class="single_description_grid">
<h5> <?php echo e(__('common.Duration')); ?></h5>
<?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);
}
$str = ($course->class->duration?? 0)*$days;
$duration =preg_replace('/[^0-9]/', '', $str);
?>
<p class="nowrap"><?php echo e(MinuteFormat($duration)); ?></p>
</div>
</div>
</div>
</div>
<div class="single_overview">
<h4 class="font_22 f_w_700 mb_20"><?php echo e(__('frontend.Course Description')); ?></h4>
<div class="theme_border"></div>
<div class="">
<?php echo $course->about; ?>
</div>
<p class="mb_20">
</p>
<?php if(!Settings('hide_social_share_btn') =='1'): ?>
<div class="social_btns">
<a target="_blank"
href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(URL::current()); ?>"
class="social_btn fb_bg"> <i class="fab fa-facebook-f"></i>
<?php echo e(__('frontend.Facebook')); ?></a>
<a target="_blank"
href="https://twitter.com/intent/tweet?text=<?php echo e($course->title); ?>&url=<?php echo e(URL::current()); ?>"
class="social_btn Twitter_bg"> <i
class="fab fa-twitter"></i> <?php echo e(__('frontend.Twitter')); ?></a>
<a target="_blank"
href="https://pinterest.com/pin/create/link/?url=<?php echo e(URL::current()); ?>&description=<?php echo e($course->title); ?>"
class="social_btn Pinterest_bg"> <i
class="fab fa-pinterest-p"></i> <?php echo e(__('frontend.Pinterest')); ?>
</a>
<a target="_blank"
href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(URL::current()); ?>&title=<?php echo e($course->title); ?>&summary=<?php echo e($course->title); ?>"
class="social_btn Linkedin_bg"> <i
class="fab fa-linkedin-in"></i> <?php echo e(__('frontend.Linkedin')); ?>
</a>
</div>
<?php endif; ?>
</div>
</div>
<!--/ content -->
</div>
<div class="tab-pane fade " id="Curriculum" role="tabpanel"
aria-labelledby="Curriculum-tab">
<!-- content -->
<h4 class="font_22 f_w_700 mb_20"><?php echo e(__('frontend.Course Schedule')); ?></h4>
<div class="single_description mb_25">
<?php if($course->class->host=="BBB"): ?>
<?php $__currentLoopData = $course->class->bbbMeetings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$meeting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="row justify-content-between text-center p-3 m-2"
style="border:1px solid #E1E2E6">
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto "
style="border-right: 1px solid #E1E2E6;">
<span>
<?php echo e(__('common.Start Date')); ?>
</span>
<h6 class="mb-0"><?php echo e(date('d M Y',$meeting->datetime)); ?> </h6>
</div>
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="border-right: 1px solid #E1E2E6;">
<span>
<?php echo e(__('common.Time')); ?> <br>
(<?php echo e(__('common.Start')); ?> - <?php echo e(__('common.End')); ?>)
</span>
<h6 class="mb-0"><?php echo e(date('g:i A',$meeting->datetime)); ?>
- <?php if($meeting->duration==0): ?>
N/A
<?php else: ?>
<?php echo e(date('g:i A',$meeting->datetime+($meeting->duration*60))); ?>
<?php endif; ?></h6>
</div>
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="<?php echo e($allow?'border-right: 1px solid #E1E2E6;':''); ?>">
<span>
<?php echo e(__('common.Duration')); ?>
</span>
<?php
$str = $meeting->duration?? 0;
$duration =preg_replace('/[^0-9]/', '', $str);
?>
<h6 class="mb-0 nowrap"><?php echo e(MinuteFormat($duration)); ?></h6>
</div>
<?php if(Auth::check() && $isEnrolled): ?>
<div class="col-sm-3 margin_auto">
<?php if(@$meeting->isRunning()): ?>
<a target="_blank"
href="<?php echo e(route('classStart', [$course->slug,'BBB',$meeting->id])); ?>"
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('common.Watch Now')); ?>
</a>
<?php else: ?>
<?php
$last_time = Illuminate\Support\Carbon::parse($meeting->date. ' ' . $meeting->time);
$nowDate = Illuminate\Support\Carbon::now();
$isWaiting = $last_time->gt($nowDate);
?>
<?php if($isWaiting): ?>
<span
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<span
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('frontend.Closed')); ?>
</span>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php elseif($course->class->host=="Jitsi"): ?>
<?php $__currentLoopData = $course->class->jitsiMeetings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$meeting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="row justify-content-between text-center p-3 m-2"
style="border:1px solid #E1E2E6">
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="border-right: 1px solid #E1E2E6;">
<span>
<?php echo e(__('common.Start Date')); ?>
</span>
<h6 class="mb-0"><?php echo e(date('d M Y',$meeting->datetime)); ?> </h6>
</div>
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="border-right: 1px solid #E1E2E6;">
<span>
<?php echo e(__('common.Time')); ?> <br>
(<?php echo e(__('common.Start')); ?> - <?php echo e(__('common.End')); ?>)
</span>
<h6 class="mb-0"><?php echo e(date('g:i A',$meeting->datetime)); ?>
- <?php if($meeting->duration==0): ?>
N/A
<?php else: ?>
<?php echo e(date('g:i A',$meeting->datetime+($meeting->duration*60))); ?>
<?php endif; ?></h6>
</div>
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="<?php echo e($allow?'border-right: 1px solid #E1E2E6;':''); ?>">
<span>
<?php echo e(__('common.Duration')); ?>
</span>
<?php
$str = $meeting->duration?? 0;
$duration =preg_replace('/[^0-9]/', '', $str);
?>
<h6 class="mb-0 nowrap"><?php echo e(MinuteFormat($duration)); ?></h6>
</div>
<?php if(Auth::check() && $isEnrolled): ?>
<div class="col-sm-3 margin_auto">
<?php
$start = \Illuminate\Support\Carbon::parse($meeting->date . ' ' .$meeting->time);
$nowDate = \Illuminate\Support\Carbon::now();
$not_start = $start->gt($nowDate);
$end =$start->addMinutes($meeting->duration);
$not_end =$end->gt($nowDate);
?>
<?php if(!$not_start && $not_end): ?>
)
<a target="_blank"
href="<?php echo e(route('classStart', [$course->slug,'Jitsi',$meeting->id])); ?>"
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('common.Watch Now')); ?>
</a>
<?php else: ?>
<?php
$last_time = Illuminate\Support\Carbon::parse($meeting->date. ' ' . $meeting->time);
$nowDate = Illuminate\Support\Carbon::now();
$isWaiting = $last_time->gt($nowDate);
?>
<?php if($isWaiting): ?>
<span
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<span
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('frontend.Closed')); ?>
</span>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php elseif($course->class->host=="Zoom"): ?>
<?php $__currentLoopData = $course->class->zoomMeetings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$meeting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="row justify-content-between text-center p-3 m-2"
style="border:1px solid #E1E2E6">
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="border-right: 1px solid #E1E2E6;">
<span>
<?php echo e(__('common.Start Date')); ?>
</span>
<h6 class="mb-0"><?php echo e(date('d M Y',strtotime($meeting->start_time))); ?> </h6>
</div>
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="border-right: 1px solid #E1E2E6;">
<span>
<?php echo e(__('common.Time')); ?> <br>
(<?php echo e(__('common.Start')); ?> - <?php echo e(__('common.End')); ?>)
</span>
<h6 class="mb-0"><?php echo e(date('g:i A',strtotime($meeting->start_time))); ?>
-<?php echo e(date('g:i A',strtotime($meeting->end_time))); ?></h6>
</div>
<div class="<?php echo e($allow?'col-sm-3':'col-sm-4'); ?> margin_auto"
style="<?php echo e($allow?'border-right: 1px solid #E1E2E6;':''); ?>">
<span>
<?php echo e(__('common.Duration')); ?>
</span>
<?php
$str = $meeting->meeting_duration?? 0;
$duration =preg_replace('/[^0-9]/', '', $str);
?>
<h6 class="mb-0 nowrap"><?php echo e(MinuteFormat($duration)); ?></h6>
</div>
<?php if(Auth::check() && $isEnrolled): ?>
<div class="col-sm-3 margin_auto">
<?php if(@$meeting->currentStatus=="started"): ?>
<a target="_blank"
href="<?php echo e(route('classStart', [$course->slug,'Zoom',$meeting->id])); ?>"
class="theme_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('common.Watch Now')); ?>
</a>
<?php elseif(@$meeting->currentStatus== 'waiting'): ?>
<span
class="theme_line_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('frontend.Waiting')); ?>
</span>
<?php else: ?>
<span
class="theme_line_btn small_btn2 d-block text-center height_50 p-3 ">
<?php echo e(__('frontend.Closed')); ?>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
</div>
<div class="tab-pane fade " id="Instructor" role="tabpanel"
aria-labelledby="Instructor-tab">
<div class="instractor_details_wrapper">
<div class="instractor_title">
<h4 class="font_22 f_w_700"><?php echo e(__('frontend.Instructor')); ?></h4>
<p class="font_16 f_w_400"><?php echo e(@$course->user->headline); ?></p>
</div>
<div class="instractor_details_inner">
<div class="thumb">
<img class="w-100" src="<?php echo e(getInstructorImage(@$course->user->image)); ?>"
alt="">
</div>
<div class="instractor_details_info">
<a href="<?php echo e(route('instructorDetails',[$course->user->id,$course->user->name])); ?>">
<h4 class="font_22 f_w_700"><?php echo e(@$course->user->name); ?></h4>
</a>
<h5> <?php echo e(@$course->user->headline); ?></h5>
<div class="ins_details">
<p><?php echo @$course->user->short_details; ?></p>
</div>
<div class="intractor_qualification">
<div class="single_qualification">
<i class="ti-star"></i> <?php echo e(@$course->user->totalRating()['rating']); ?>
<?php echo e(__('frontend.Rating')); ?>
</div>
<div class="single_qualification">
<i class="ti-comments"></i> <?php echo e(@$course->user->totalRating()['total']); ?>
<?php echo e(__('frontend.Reviews')); ?>
</div>
<div class="single_qualification">
<i class="ti-user"></i> <?php echo e(@$course->user->totalEnrolled()); ?>
<?php echo e(__('frontend.Students')); ?>
</div>
<div class="single_qualification">
<i class="ti-layout-media-center-alt"></i> <?php echo e(@$course->user->totalCourses()); ?>
<?php echo e(__('frontend.Courses')); ?>
</div>
</div>
</div>
</div>
<p>
<?php echo @$course->user->about; ?> </p>
</div>
<div class="author_courses">
<div class="section__title mb_80">
<h3><?php echo e(__('frontend.More Courses by Author')); ?></h3>
</div>
<div class="row">
<?php $__currentLoopData = @$course->user->courses->take(2); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-xl-6">
<div class="couse_wizged mb_30">
<div class="thumb">
<a href="<?php echo e(courseDetailsUrl(@$c->id,@$c->type,@$c->slug)); ?>">
<img class="w-100"
src="<?php echo e(file_exists($c->thumbnail) ? asset($c->thumbnail) : asset('public/\uploads/course_sample.png')); ?>"
alt="">
<?php if (isset($component)) { $__componentOriginal584ade79a82150a936ef53728517a659b0812861 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\PriceTag::class, ['price' => $course->price,'discount' => $course->discount_price]); ?>
<?php $component->withName('price-tag'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginal584ade79a82150a936ef53728517a659b0812861)): ?>
<?php $component = $__componentOriginal584ade79a82150a936ef53728517a659b0812861; ?>
<?php unset($__componentOriginal584ade79a82150a936ef53728517a659b0812861); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
</a>
</div>
<div class="course_content">
<a href="<?php echo e(courseDetailsUrl(@$c->id,@$c->type,@$c->slug)); ?>">
<h4><?php echo e(@$c->title); ?></h4>
</a>
<div class="rating_cart">
<div class="rateing">
<span><?php echo e($c->totalReview); ?>/5</span>
<i class="fas fa-star"></i>
</div>
<?php if(auth()->guard()->check()): ?>
<?php if(!$c->isLoginUserEnrolled && !$c->isLoginUserCart): ?>
<a href="#" class="cart_store"
data-id="<?php echo e($c->id); ?>">
<i class="fas fa-shopping-cart"></i>
</a>
<?php endif; ?>
<?php endif; ?>
<?php if(auth()->guard()->guest()): ?>
<?php if(!$c->isGuestUserCart): ?>
<a href="#" class="cart_store"
data-id="<?php echo e($c->id); ?>">
<i class="fas fa-shopping-cart"></i>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="course_less_students">
<a href="#"> <i
class="ti-agenda"></i> <?php echo e(count($c->lessons)); ?>
<?php echo e(__('frontend.Lessons')); ?></a>
<a href="#"> <i
class="ti-user"></i> <?php echo e($c->total_enrolled); ?>
<?php echo e(__('frontend.Students')); ?> </a>
</div>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<div class="tab-pane fade " id="Reviews" role="tabpanel" aria-labelledby="Reviews-tab">
<!-- content -->
<div class="course_review_wrapper">
<div class="details_title">
<h4 class="font_22 f_w_700"><?php echo e(__('frontend.Student Feedback')); ?></h4>
<p class="font_16 f_w_400"><?php echo e($course->title); ?></p>
</div>
<div class="course_feedback">
<div class="course_feedback_left">
<h2><?php echo e($course->totalReview); ?></h2>
<div class="feedmak_stars">
<?php
$main_stars=$course->totalReview;
$stars=intval($course->totalReview);
?>
<?php for($i = 0; $i < $stars; $i++): ?>
<i class="fas fa-star"></i>
<?php endfor; ?>
<?php if($main_stars>$stars): ?>
<i class="fas fa-star-half"></i>
<?php endif; ?>
<?php if($main_stars==0): ?>
<?php for($i = 0; $i < 5; $i++): ?>
<i class="far fa-star"></i>
<?php endfor; ?>
<?php endif; ?>
</div>
<span><?php echo e(__('frontend.Course Rating')); ?></span>
</div>
<div class="feedbark_progressbar">
<div class="single_progrssbar">
<div class="progress">
<div class="progress-bar" role="progressbar"
style="width: <?php echo e(getPercentageRating($course->starWiseReview,5)); ?>%"
aria-valuenow="<?php echo e(getPercentageRating($course->starWiseReview,5)); ?>"
aria-valuemin="0" aria-valuemax="100">
</div>
</div>
<div class="rating_percent d-flex align-items-center">
<div class="feedmak_stars d-flex align-items-center">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<span><?php echo e(getPercentageRating($course->starWiseReview,5)); ?>%</span>
</div>
</div>
<div class="single_progrssbar">
<div class="progress">
<div class="progress-bar" role="progressbar"
style="width: <?php echo e(getPercentageRating($course->starWiseReview,4)); ?>%"
aria-valuenow="<?php echo e(getPercentageRating($course->starWiseReview,4)); ?>"
aria-valuemin="0" aria-valuemax="100">
</div>
</div>
<div class="rating_percent d-flex align-items-center">
<div class="feedmak_stars d-flex align-items-center">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<span><?php echo e(getPercentageRating($course->starWiseReview,4)); ?>%</span>
</div>
</div>
<div class="single_progrssbar">
<div class="progress">
<div class="progress-bar" role="progressbar"
style="width: <?php echo e(getPercentageRating($course->starWiseReview,3)); ?>%"
aria-valuenow="<?php echo e(getPercentageRating($course->starWiseReview,3)); ?>"
aria-valuemin="0" aria-valuemax="100">
</div>
</div>
<div class="rating_percent d-flex align-items-center">
<div class="feedmak_stars d-flex align-items-center">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
</div>
<span><?php echo e(getPercentageRating($course->starWiseReview,3)); ?>%</span>
</div>
</div>
<div class="single_progrssbar">
<div class="progress">
<div class="progress-bar" role="progressbar"
style="width: <?php echo e(getPercentageRating($course->starWiseReview,2)); ?>%"
aria-valuenow="<?php echo e(getPercentageRating($course->starWiseReview,2)); ?>"
aria-valuemin="0" aria-valuemax="100">
</div>
</div>
<div class="rating_percent d-flex align-items-center">
<div class="feedmak_stars d-flex align-items-center">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
</div>
<span><?php echo e(getPercentageRating($course->starWiseReview,2)); ?>%</span>
</div>
</div>
<div class="single_progrssbar">
<div class="progress">
<div class="progress-bar" role="progressbar"
style="width: <?php echo e(getPercentageRating($course->starWiseReview,1)); ?>%"
aria-valuenow="<?php echo e(getPercentageRating($course->starWiseReview,1)); ?>"
aria-valuemin="0" aria-valuemax="100">
</div>
</div>
<div class="rating_percent d-flex align-items-center">
<div class="feedmak_stars d-flex align-items-center">
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
<i class="far fa-star"></i>
</div>
<span><?php echo e(getPercentageRating($course->starWiseReview,1)); ?>%</span>
</div>
</div>
</div>
</div>
<div class="course_review_header mb_20">
<div class="row align-items-center">
<div class="col-md-6">
<div class="review_poients">
<?php if($course->reviews->count()<1): ?>
<?php if(Auth::check() && $isEnrolled): ?>
<p class="theme_color font_16 mb-0"><?php echo e(__('frontend.Be the first reviewer')); ?></p>
<?php else: ?>
<p class="theme_color font_16 mb-0"><?php echo e(__('frontend.No Review found')); ?></p>
<?php endif; ?>
<?php else: ?>
<?php endif; ?>
</div>
</div>
<div class="col-md-6">
<div class="rating_star text-right">
<?php
$PickId=$course->id;
?>
<?php if(Auth::check() && Auth::user()->role_id==3): ?>
<?php if(!in_array(Auth::user()->id,$reviewer_user_ids) && $isEnrolled): ?>
<div
class="star_icon d-flex align-items-center justify-content-end">
<a class="rating">
<input type="radio" id="star5" name="rating"
value="5"
class="rating"/><label
class="full" for="star5" id="star5"
title="Awesome - 5 stars"
onclick="Rates(5, <?php echo e(@$PickId); ?>)"></label>
<input type="radio" id="star4" name="rating"
value="4"
class="rating"/><label
class="full" for="star4"
title="Pretty good - 4 stars"
onclick="Rates(4, <?php echo e(@$PickId); ?>)"></label>
<input type="radio" id="star3" name="rating"
value="3"
class="rating"/><label
class="full" for="star3"
title="Meh - 3 stars"
onclick="Rates(3, <?php echo e(@$PickId); ?>)"></label>
<input type="radio" id="star2" name="rating"
value="2"
class="rating"/><label
class="full" for="star2"
title="Kinda bad - 2 stars"
onclick="Rates(2, <?php echo e(@$PickId); ?>)"></label>
<input type="radio" id="star1" name="rating"
value="1"
class="rating"/><label
class="full" for="star1"
title="Bad - 1 star"
onclick="Rates(1,<?php echo e(@$PickId); ?>)"></label>
</a>
</div>
<?php endif; ?>
<?php else: ?>
<p class="font_14 f_w_400 mt-0"><a href="<?php echo e(url('login')); ?>"
class="theme_color2">Sign
In</a>
or <a
class="theme_color2" href="<?php echo e(url('register')); ?>">Sign
Up</a>
as student to post a review</p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="course_cutomer_reviews">
<div class="details_title">
<h4 class="font_22 f_w_700"><?php echo e(__('frontend.Reviews')); ?></h4>
</div>
<div class="customers_reviews" id="customers_reviews">
</div>
</div>
<div class="author_courses">
<div class="section__title mb_80">
<h3><?php echo e(__('frontend.Course you might like')); ?></h3>
</div>
<div class="row">
<?php $__currentLoopData = @$related; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-xl-6">
<div class="couse_wizged mb_30">
<div class="thumb">
<a href="<?php echo e(courseDetailsUrl(@$r->id,@$r->type,@$r->slug)); ?>">
<img class="w-100"
src="<?php echo e(file_exists($r->thumbnail) ? asset($r->thumbnail) : asset('public/\uploads/course_sample.png')); ?>"
alt="">
<?php if (isset($component)) { $__componentOriginal584ade79a82150a936ef53728517a659b0812861 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\PriceTag::class, ['price' => $course->price,'discount' => $course->discount_price]); ?>
<?php $component->withName('price-tag'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginal584ade79a82150a936ef53728517a659b0812861)): ?>
<?php $component = $__componentOriginal584ade79a82150a936ef53728517a659b0812861; ?>
<?php unset($__componentOriginal584ade79a82150a936ef53728517a659b0812861); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
</a>
</div>
<div class="course_content">
<a href="<?php echo e(courseDetailsUrl(@$r->id,@$r->type,@$r->slug)); ?>">
<h4><?php echo e(@$r->title); ?></h4>
</a>
<div class="rating_cart">
<div class="rateing">
<span><?php echo e($r->totalReview); ?>/5</span>
<i class="fas fa-star"></i>
</div>
<?php if(auth()->guard()->check()): ?>
<?php if(!$r->isLoginUserEnrolled && !$r->isLoginUserCart): ?>
<a href="#" class="cart_store"
data-id="<?php echo e($r->id); ?>">
<i class="fas fa-shopping-cart"></i>
</a>
<?php endif; ?>
<?php endif; ?>
<?php if(auth()->guard()->guest()): ?>
<?php if(!$r->isGuestUserCart): ?>
<a href="#" class="cart_store"
data-id="<?php echo e($r->id); ?>">
<i class="fas fa-shopping-cart"></i>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="course_less_students">
<a href="#"> <i
class="ti-agenda"></i> <?php echo e(count($r->lessons)); ?>
<?php echo e(__('frontend.Lessons')); ?></a>
<a href="#"> <i
class="ti-user"></i> <?php echo e($r->total_enrolled); ?>
<?php echo e(__('frontend.Students')); ?> </a>
</div>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<!-- content -->
</div>
<div class="tab-pane fade " id="QASection" role="tabpanel" aria-labelledby="QA-tab">
<!-- content -->
<div class="conversition_box">
<div id="conversition_box"></div>
<div class="row">
<?php if($isEnrolled): ?>
<div class="col-lg-12 " id="mainComment">
<form action="<?php echo e(route('saveComment')); ?>" method="post" class="">
<?php echo csrf_field(); ?>
<input type="hidden" name="course_id" value="<?php echo e(@$course->id); ?>">
<div class="row">
<div class="col-12">
<div class="section_title3 mb_20">
<h3><?php echo e(__('frontend.Leave a question/comment')); ?></h3>
</div>
</div>
<div class="col-lg-12">
<div class="single_input mb_25">
<textarea
placeholder="<?php echo e(__('frontend.Leave a question/comment')); ?>"
name="comment"
class="primary_textarea gray_input"></textarea>
</div>
</div>
<div class="col-lg-12 mb_30">
<button type="submit"
class="theme_btn height_50">
<i class="fas fa-comments"></i>
<?php echo e(__('frontend.Question')); ?>/
<?php echo e(__('frontend.comment')); ?>
</button>
</div>
</div>
</form>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4">
<div class="sidebar__widget mb_30">
<div class="sidebar__title">
<h3>
<?php if(@$course->discount_price!=null): ?>
<?php echo e(getPriceFormat($course->discount_price)); ?>
<?php else: ?>
<?php echo e(getPriceFormat($course->price)); ?>
<?php endif; ?>
</h3>
<p>
<?php if(Auth::check() && $isBookmarked ): ?>
<i class="fas fa-heart"></i>
<a href="<?php echo e(route('bookmarkSave',[$course->id])); ?>"
class="theme_button mr_10 sm_mb_10"><?php echo e(__('frontend.Already Bookmarked')); ?>
</a>
<?php elseif(Auth::check() && !$isBookmarked ): ?>
<a href="<?php echo e(route('bookmarkSave',[$course->id])); ?>"
class="">
<i
class="far fa-heart"></i>
<?php echo e(__('frontend.Add To Bookmark')); ?> </a>
<?php endif; ?>
</div>
<?php if(!onlySubscription()): ?>
<?php if(Auth::check()): ?>
<?php if($isEnrolled): ?>
<a href="#"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Already Enrolled')); ?></a>
<?php else: ?>
<?php if($isFree): ?>
<?php if($is_cart == 1): ?>
<a href="javascript:void(0)"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Added To Cart')); ?></a>
<?php else: ?>
<a href="<?php echo e(route('addToCart',[@$course->id])); ?>"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<?php endif; ?>
<?php else: ?>
<?php if($is_cart == 1): ?>
<a href="javascript:void(0)"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Added To Cart')); ?></a>
<?php else: ?>
<a href=" <?php echo e(route('addToCart',[@$course->id])); ?> "
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<a href="<?php echo e(route('buyNow',[@$course->id])); ?>"
class="theme_line_btn d-block text-center height_50 mb_20"><?php echo e(__('common.Buy Now')); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<?php if($isFree): ?>
<?php if($is_cart == 1): ?>
<a href="javascript:void(0)"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Added To Cart')); ?></a>
<?php else: ?>
<a href=" <?php echo e(route('addToCart',[@$course->id])); ?> "
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<?php endif; ?>
<?php else: ?>
<?php if($is_cart == 1): ?>
<a href="javascript:void(0)"
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Added To Cart')); ?></a>
<?php else: ?>
<a href=" <?php echo e(route('addToCart',[@$course->id])); ?> "
class="theme_btn d-block text-center height_50 mb_10"><?php echo e(__('common.Add To Cart')); ?></a>
<a href="<?php echo e(route('buyNow',[@$course->id])); ?>"
class="theme_line_btn d-block text-center height_50 mb_20"><?php echo e(__('common.Buy Now')); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal cs_modal fade admin-query" id="myModal" role="dialog">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><?php echo e(__('frontend.Review')); ?></h5>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<form action="<?php echo e(route('submitReview')); ?>" method="Post">
<div class="modal-body">
<?php echo csrf_field(); ?>
<input type="hidden" name="course_id" id="rating_course_id"
value="">
<input type="hidden" name="rating" id="rating_value" value="">
<div class="text-center">
<textarea class="lms_summernote" name="review" name=""
id=""
placeholder="<?php echo e(__('frontend.Write your review')); ?>"
cols="30"
rows="10"><?php echo e(old('review')); ?></textarea>
<span class="text-danger" role="alert"><?php echo e($errors->first('review')); ?></span>
</div>
</div>
<div class="modal-footer justify-content-center">
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="theme_line_btn mr-2"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?>
</button>
<button class="theme_btn "
type="submit"><?php echo e(__('common.Submit')); ?></button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php echo $__env->make(theme('partials._delete_model'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php /**PATH /home/bouloter/infix/resources/views/frontend/infixlmstheme/components/class-details-page-section.blade.php ENDPATH**/ ?>