chapters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chapter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>
instructor->name); ?>
instructor->job_title); ?>
instructor->short_bio); ?>
instructor->facebook): ?>
instructor->twitter): ?>
instructor->linkedin): ?>
instructor->github): ?>
instructor->facebook): ?>
instructor->twitter): ?>
instructor->website): ?>
instructor->github): ?>
partnerInstructors->count() > 0): ?>
partnerInstructors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $instructor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
instructor->name); ?>
instructor->job_title); ?>
instructor->short_bio); ?>
instructor->facebook): ?>
instructor->twitter): ?>
instructor->website): ?>
instructor->github): ?>
popLoop(); $loop = $__env->getLastLoop(); ?>
reviews()->whereHas('course')->whereHas('user')->avg('rating'), 1) ?? 0); ?>
reviews()->whereHas('course')->whereHas('user')->where('status', 1)->count()); ?>
reviews_count;
$fiveStar = $course
->reviews()
->where('rating', 5)
->where('status', 1)
->whereHas('course')
->whereHas('user')
->count();
$fourStar = $course
->reviews()
->where('rating', 4)
->where('status', 1)
->whereHas('course')
->whereHas('user')
->count();
$threeStar = $course
->reviews()
->where('rating', 3)
->where('status', 1)
->whereHas('course')
->whereHas('user')
->count();
$twoStar = $course
->reviews()
->where('rating', 2)
->where('status', 1)
->whereHas('course')
->whereHas('user')
->count();
$oneStar = $course
->reviews()
->where('rating', 1)
->where('status', 1)
->whereHas('course')
->whereHas('user')
->count();
$totalPercentage = $totalRating > 0 ? ($fiveStar / $totalRating) * 100 : 0;
$fourPercentage = $totalRating > 0 ? ($fourStar / $totalRating) * 100 : 0;
$threePercentage = $totalRating > 0 ? ($threeStar / $totalRating) * 100 : 0;
$twoPercentage = $totalRating > 0 ? ($twoStar / $totalRating) * 100 : 0;
$onePercentage = $totalRating > 0 ? ($oneStar / $totalRating) * 100 : 0;
?>
addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
user?->name); ?>
created_at)); ?>
rating; $i++): ?>
review); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>