@extends(theme('layouts.master')) @section('title'){{Settings('site_title') ? Settings('site_title') : 'Infix LMS'}} | {{__('frontend.Bundle')}} @endsection @section('css') @endsection @section('mainContent')

{{$course->title }}

@if($course->course->count() > 0) @php $enroll = \Modules\CourseSetting\Entities\CourseEnrolled::where('user_id',Auth::id())->where('bundle_course_id',$course->id)->first() @endphp
@if(!$enroll) {{ __('common.Buy Now') }} @else {{ __('common.Continue Watch') }} @endif
@endif
@if($course->course->count() > 0) @foreach($course->course as $key => $bundleCourse)

{{ ++$key }}. {{ $bundleCourse->course->title }}

View Details
@endforeach @else
{{ __('bundleSubscription.No course found') }}
@endif
{{ __('Course Duration') }} {{$course->days !== '' && $course->days!=0 ? $course->days.' '.trans('Days') : 'Life Time'}} @if($course->about)


{{__('bundleSubscription.Bundle Description')}}


{{$course->about}}

@endif @if(Settings('show_review_for_bundle_subscription'))





{{__('frontend.Student Feedback')}}

{{$course->title}}

{{$course->reviews->sum('star')}}

@php $main_stars=$course->reviews->avg('star'); $stars=intval($course->reviews->sum('star')); @endphp @for ($i = 0; $i < $stars; $i++) @endfor @if ($main_stars>$stars) @endif @if($main_stars==0) @for ($i = 0; $i < 5; $i++) @endfor @endif
{{__('frontend.Course Rating')}}
{{getPercentageRating($course->starWiseReview,5)}}%
{{getPercentageRating($course->starWiseReview,4)}}%
{{getPercentageRating($course->starWiseReview,3)}}%
{{getPercentageRating($course->starWiseReview,2)}}%
{{getPercentageRating($course->starWiseReview,1)}}%
@if ($course->reviews->count()<1) @if (Auth::check() && $isEnrolled)

{{ __('frontend.Be the first reviewer') }}

@else

{{ __('frontend.No Review found') }}

@endif @else @endif
@php $PickId=$course->id @endphp @if (Auth::check()) @if(Auth::user()->role_id==3) @if (!in_array(Auth::user()->id,$reviewer_user_ids) && $isEnrolled) @endif @endif @endif

{{__('frontend.Reviews')}}

@foreach($course->reviews as $review)
@if(reviewCanDelete($review->user_id,$course->user_id)) @endif

{{$review->user->name}}

@for($x = 0; $x < $review->star; $x++ ) @endfor
{{ $review->updated_at->diffForHumans() }}

{{$review->comment}}

@endforeach
@endif
@endsection @section('js') @endsection