@extends('layouts.frontend') @push('title', get_phrase('')) @push('meta')@endpush @push('css')@endpush @section('content') @php $section = App\Models\Section::where('course_id', $course_details->id)->get(); @endphp
    @foreach ($section as $sections) @php $lesson = App\Models\Lesson::where('section_id', $sections->id)->get(); @endphp
  • {{ $sections->title }}

  • @endforeach
@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
    @if ($review_count->count() > 0) @for ($i = 0; $i < 5; $i++) @if ($i < $average_rating)
  • @else
  • @endif @endfor @else @for ($i = 0; $i < 5; $i++)
  • @endfor @endif

({{ $review_count->count() }} {{ get_phrase('Reviews') }})

{{ $course_details->level }}

@endsection @push('js')@endpush