@extends('frontend.layouts.master') @section('meta_title', $course->title . ' || ' . $setting->app_name) @push('custom_meta') @endpush @push('styles') @endpush @section('contents')
img @if ($course->demo_video_source) @endif

{{ $course->title }}

  • @if($course->admin_tutor) @if($course->tutor_avatar) img @endif {{ __('By') }} {{ $course->tutor_name }} @elseif($course->instructor->name) @if($course->instructor->image) img @endif {{ __('By') }} {{ $course->instructor->name }} @endif
  • {{ formatDate($course->created_at, 'd/M/Y') }}
  • {{ $course->enrollments->count() }} {{ __('Students') }}

{{ __('Course Description') }}

{!! clean($course->description) !!}

{{ __('Course Curriculum') }}

@foreach ($course->chapters as $chapter)

@endforeach
@if($course->admin_tutor)
img
@else
img

{{ $course->instructor->name }}

{{ $course->instructor->job_title }}

{{ $course->instructor->short_bio }}

@endif
@if ($course->partnerInstructors->count() > 0)

{{ __('Partner Instructors') }}

@foreach ($course->partnerInstructors as $instructor)
img

{{ $instructor->instructor->name }}

{{ $instructor->instructor->job_title }}

{{ $instructor->instructor->short_bio }}

@endforeach @endif

{{ __('Reviews') }}

{{ number_format($course->reviews()->avg('rating'), 1) ?? 0 }}
{{ $course->reviews()->where('status', 1)->count() }} {{ __('Ratings') }}
@php $totalRating = $course->reviews_count; $fiveStar = $course ->reviews() ->where('rating', 5) ->where('status', 1) ->count(); $fourStar = $course ->reviews() ->where('rating', 4) ->where('status', 1) ->count(); $threeStar = $course ->reviews() ->where('rating', 3) ->where('status', 1) ->count(); $twoStar = $course ->reviews() ->where('rating', 2) ->where('status', 1) ->count(); $oneStar = $course ->reviews() ->where('rating', 1) ->where('status', 1) ->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; @endphp
5
{{ $fiveStar }}
4
{{ $fourStar }}
3
{{ $threeStar }}
2
{{ $twoStar }}
1
{{ $oneStar }}
@foreach ($reviews as $review)
img
{{ $review->user->name }} {{ formatDate($review->created_at) }}
@for ($i = 1; $i <= $review->rating; $i++) @endfor

{{ $review->review }}

@endforeach
{{ __('Course includes') }}:
  • img {{ __('Level') }}
      @foreach ($course->levels as $level) {{ @$level->level->translation->name }} @endforeach
  • img {{ __('Duration') }} {{ $course->duration }}
  • img {{ __('Lessons') }} {{ $courseLessonCount }}
  • img {{ __('Quizzes') }} {{ $courseQuizCount }}
  • img {{ __('Certifications') }} @if ($course->certificate) {{ __('Yes') }} @else {{ __('No') }} @endif
  • img {{ __('Language') }}
      @foreach ($course->languages as $language) {{ $language->language->name }} @endforeach
{{ __('Share this course') }}:
@endsection @push('scripts') @endpush