@php use Illuminate\Support\Facades\Auth;use Modules\Payment\Entities\Cart; @endphp
@if (isset($course->product?->pdf)) {{ __('product.Read Some Pages') }} @endif
{{ @$course->product?->category->title }}
@php $main_stars = $course->total_rating; $stars = intval($main_stars); @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

{{ @$course->title }}

@php if($course->product->has_variant != 1){ echo storeProductPrice(@$course->product?->discount_type, $course->product?->discount, $course->product?->price); } @endphp @if ($course->product?->discount > 0) {{ getPriceFormat(@$course->product?->price) }} @endif @if ($course->product->stock_manage == 1 && $course->product->stock_quantity == 0)

{{ __('product.Out of Stock') }}

@endif
{!! \Illuminate\Support\Str::limit(strip_tags($course->product?->description), 200) !!}
@if($course->product->has_variant == 1) @php $product =$course->product; $attributes = $product->variant_details; @endphp @foreach($attributes as $key => $attribute)
{{$attribute->name}}
    @foreach($attribute->value as $key2 =>$attribute_value)
  • @endforeach
@endforeach @endif
@if ($course->product_type == 2) @php $totalQty =1; if (Auth::check()){ $exit =Cart::where('course_id',$course->id)->where('user_id',auth()->id())->first(); if ($exit){ $totalQty = $exit->qty; } } @endphp @endif
@if (($course->product->stock_manage == 1 && $course->product->stock_quantity > 0) || $course->product->stock_manage == 0) @if (Auth::check()) @if ($isEnrolled) @if ($course->product?->type == 1) {{ __('common.Download') }} @else {{ __('common.Enrolled') }} @endif @else {{ __('frontend.Add To Cart') }} @endif @else {{ __('frontend.Add To Cart') }} @endif @else {{ __('frontend.Out of Stock') }} @endif

{!! $course->product?->description !!}

@if (!Settings('hide_social_share_btn') == '1') @endif

{!! @$course->product?->specification !!}

{!! @$course->product?->faq !!}

{{ __('product.Product Rating') }}

{{ $course->total_rating }}

@php $main_stars = $course->total_rating; $stars = intval($main_stars); @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

{{ __('product.Product 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() && Auth::user()->role_id == 3) @if ((!in_array(Auth::user()->id, $reviewer_user_ids) && $reviewPermission > 0)) @endif @else

{{ __('frontend.Sign In') }} {{ __('frontend.or') }} {{ __('frontend.Sign Up') }} {{ __('frontend.as student to post a review') }}

@endif

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