@isset($lesson_details->lesson_type)
@include('frontend.course_player.course_content_body')
@endisset
@php
$review_count = App\Models\Review::where('course_id', $course_details->id)
->orderBy('id', 'DESC')
->get();
$total = $review_count->count();
$rating = array_sum(array_column($review_count->toArray(), 'rating'));
$average_rating = 0;
if ($total != 0) {
$average_rating = $rating / $total;
}
@endphp
{{ $course_details->level }}