@if($pro->des != '')
{!! $pro->des !!}
@else
{{ __('No Description') }}
@endif
{{ __('Tags') }}:
@php
$x = explode(',', $pro->tags);
@endphp
@foreach($x as $tag)
{{ $tag }}
@endforeach
@if(count($pro->specs)>0)
@foreach($pro->specs as $spec)
{{ $spec->prokeys }}
{{ $spec->provalues }}
@endforeach
@else
{{ __('No Specifications') }}
@endif
@auth
@php
$purchased = App\Order::where('user_id',Auth::user()->id)->get();
$findproinorder = 0;
$alreadyrated = $pro->reviews->where('user',Auth::user()->id)->first();
@endphp
@if(isset($purchased))
@foreach($purchased as $value)
@if($value->main_pro_id != '' && in_array($pro->id, $value->main_pro_id))
@php
$findproinorder = 1;
@endphp
@endif
@endforeach
@endif
@if($findproinorder == 1)
@if(isset($alreadyrated))
{{ __('Your Review') }}
@if($alreadyrated->users->image !='')
 }})
@else
->toBase64() }})
@endif
{{ $alreadyrated->users->name }}
On
{{ date('jS M Y',strtotime($alreadyrated->created_at)) }}
@if($alreadyrated->status == 1)
{{ __('Approved') }}
@else
{{ __('Pending') }}
@endif
{{ $alreadyrated->review }}
{{ __('staticwords.vall') }}
{{ __('staticwords.recReviews') }}
@php
if(!isset($overallrating)){
$overallrating = 0;
}
@endphp
{{ round($overallrating,1) }}
{{ __('staticwords.OverallRating') }}
@php
$review_t = 0;
$price_t = 0;
$value_t = 0;
$sub_total = 0;
$sub_total = 0;
$reviews2 = App\UserReview::where('pro_id', $pro->id)->where('status', '1')->get();
@endphp @if(!empty($reviews2[0]))
@php
$count = App\UserReview::where('pro_id', $pro->id)->count();
foreach ($reviews2 as $review) {
$review_t = $review->price * 5;
$price_t = $review->price * 5;
$value_t = $review->value * 5;
$sub_total = $sub_total + $review_t + $price_t + $value_t;
}
$count = ($count * 3) * 5;
$rat = $sub_total / $count;
$ratings_var2 = ($rat * 100) / 5;
@endphp
@else
{{ __('No Rating') }}
@endif
{{$count = count($pro->reviews)}} {{ __('Ratings &') }}
{{$reviewcount}} {{ __('reviews') }}
{{ $qualityprogress }}%
{{ $priceprogress }}%
{{ $valueprogress }}%
@if($overallrating>3.9)
100%
{{ __('staticwords.SatisfiedCustomer') }}
{{ __('staticwords.customerText') }}.
@endif
@foreach($pro->reviews->take(5) as $review)
@if($review->status == "1")
@if($review->users->image !='')
 }})
@else
->toBase64() }})
@endif
{{ $review->users->name }}
{{ __('On') }}
{{ date('jS M Y',strtotime($review->created_at)) }}
{{ $review->review }}
@endif
@endforeach
@else
{{ __('staticwords.ratereviewPurchase') }}
@php
if(!isset($overallrating)){
$overallrating = 0;
}
@endphp
{{ round($overallrating,1) }}
{{ __('staticwords.OverallRating') }}
@php
$review_t = 0;
$price_t = 0;
$value_t = 0;
$sub_total = 0;
$sub_total = 0;
$reviews2 = App\UserReview::where('pro_id', $pro->id)->where('status', '1')->get();
@endphp @if(!empty($reviews2[0]))
@php
$count = App\UserReview::where('pro_id', $pro->id)->count();
foreach ($reviews2 as $review) {
$review_t = $review->price * 5;
$price_t = $review->price * 5;
$value_t = $review->value * 5;
$sub_total = $sub_total + $review_t + $price_t + $value_t;
}
$count = ($count * 3) * 5;
$rat = $sub_total / $count;
$ratings_var2 = ($rat * 100) / 5;
@endphp
@else
{{ __('No Rating') }}
@endif
{{$count = count($pro->reviews)}} Ratings & {{$reviewcount}}
reviews
{{ $qualityprogress }}%
{{ $priceprogress }}%
{{ $valueprogress }}%
@if($overallrating>3.9)
100%
{{ __('staticwords.SatisfiedCustomer') }}
{{ __('staticwords.customerText') }}.
@endif
|
1 star |
2 stars |
3 stars |
4 stars |
5 stars |
{{ __('staticwords.recReviews') }}
@if(count($pro->reviews)>0)
@foreach($pro->reviews->take(5) as $review)
@if($review->status == "1")
@if($review->users->image !='')
 }})
@else
->toBase64() }})
@endif
{{ $review->users->name }}
{{ __('On') }}
{{ date('jS M Y',strtotime($review->created_at)) }}
{{ $review->review }}
@endif
@endforeach
@else
{{ __('staticwords.ratetext') }}
@endif
@endif
@else
{{ __('staticwords.purchaseProText') }}
{{ __('staticwords.recReviews') }}
@if(count($pro->reviews)>0)
@if(!isset($overallrating))
@php
$overallrating = 0;
@endphp
@endif
{{ round($overallrating,1) }}
{{ __('staticwords.OverallRating') }}
@php
$review_t = 0;
$price_t = 0;
$value_t = 0;
$sub_total = 0;
$sub_total = 0;
$reviews2 = App\UserReview::where('pro_id', $pro->id)->where('status', '1')->get();
@endphp @if(!empty($reviews2[0]))
@php
$count = App\UserReview::where('pro_id', $pro->id)->count();
foreach ($reviews2 as $review) {
$review_t = $review->price * 5;
$price_t = $review->price * 5;
$value_t = $review->value * 5;
$sub_total = $sub_total + $review_t + $price_t + $value_t;
}
$count = ($count * 3) * 5;
$rat = $sub_total / $count;
$ratings_var2 = ($rat * 100) / 5;
@endphp
@else
{{ __('No Rating') }}
@endif
{{$count = count($pro->reviews)}} Ratings & {{$reviewcount}}
{{ __('reviews') }}
{{ $qualityprogress }}%
{{ $priceprogress }}%
{{ $valueprogress }}%
@if($overallrating>3.9)
100%
{{ __('staticwords.SatisfiedCustomer') }}
{{ __('staticwords.customerText') }}
@endif
@foreach($pro->reviews->take(5) as $review)
@if($review->status == "1")
@if($review->users->image !='')
 }})
@else
->toBase64() }})
@endif
{{ $review->users->name }}
{{ __('On') }}
{{ date('jS M Y',strtotime($review->created_at)) }}
{{ $review->review }}
@endif
@endforeach
@else
{{ __('staticwords.ratetext') }}
@endif
@endif
@else
{{ __('staticwords.Please') }} {{ __('staticwords.Login') }}
{{ __('staticwords.toratethisproduct') }}
@if(count($pro->reviews)>0)
{{ __('staticwords.recReviews') }}
{{ round($overallrating,1) }}
{{ __('staticwords.OverallRating') }}
@php
$review_t = 0;
$price_t = 0;
$value_t = 0;
$sub_total = 0;
$sub_total = 0;
$reviews2 = App\UserReview::where('pro_id', $pro->id)->where('status', '1')->get();
@endphp @if(!empty($reviews2[0]))
@php
$count = App\UserReview::where('pro_id', $pro->id)->count();
foreach ($reviews2 as $review) {
$review_t = $review->price * 5;
$price_t = $review->price * 5;
$value_t = $review->value * 5;
$sub_total = $sub_total + $review_t + $price_t + $value_t;
}
$count = ($count * 3) * 5;
$rat = $sub_total / $count;
$ratings_var2 = ($rat * 100) / 5;
@endphp
@else
{{ __('No Rating') }}
@endif
{{$count = count($pro->reviews)}} Ratings & {{$reviewcount}}
reviews
{{ $qualityprogress }}%
{{ $priceprogress }}%
{{ $valueprogress }}%
@if($overallrating>3.9)
100%
{{ __('staticwords.SatisfiedCustomer') }}
{{ __('staticwords.customerText') }}
@endif
@foreach($pro->reviews->take(5) as $review)
@if($review->status == "1")
@if($review->users->image !='')
 }})
@else
->toBase64() }})
@endif
{{ $review->users->name }}
{{ __('On') }}
{{ date('jS M Y',strtotime($review->created_at)) }}
{{ $review->review }}
@endif
@endforeach
@endif
@endauth
@forelse($pro->faq as $qid => $fq)
[Q.{{ $qid+1 }}] {{ $fq->question }}
{!! $fq->answer !!}
@empty
{{ __('staticwords.NOFAQ') }}
@endforelse