@extends('layouts.store') @section('title', $product->name) @section('content') @php $slideCount = count($images) + ($youtubeEmbedUrl ? 1 : 0); $compareAtPrice = $product->compareAtPrice(); $discountPercent = $product->displayDiscountPercent(); @endphp
Back to products {{ $product->category->name }}

{{ $product->name }}

{{ \App\Models\SiteSetting::formatPrice($product->sellingPrice()) }} @if ($compareAtPrice) {{ \App\Models\SiteSetting::formatPrice($compareAtPrice) }} @endif
@if ($discountPercent > 0) {{ rtrim(rtrim(number_format($discountPercent, 2), '0'), '.') }}% off @endif {{ $reviewCount > 0 ? $averageRating : $product->rating }} rating
@if ($product->description)

Description

{{ $product->description }}

@endif
@csrf @if ($variants->isNotEmpty()) @endif
@csrf
Customer Feedback

Product Reviews

{{ $reviewCount > 0 ? $averageRating : '0.0' }} out of 5 {{ $reviewCount }} {{ \Illuminate\Support\Str::plural('review', $reviewCount) }}
@if ($reviews->isNotEmpty())
@foreach ($reviews as $review)
{{ $review->customer->name }} {{ $review->created_at->format('M d, Y') }}
{{ str_repeat('*', $review->rating) }}
@if ($review->comment)

{{ $review->comment }}

@endif
@if ($review->imageUrl()) {{ $product->name }} review image @endif @if ($review->videoUrl()) @endif
@endforeach
@else

No product reviews yet.

@endif
@endsection @push('scripts') @endpush