@extends('storefront.layout') @section('title', $product->name . ' โ€” ' . ($settings->company_name ?? 'Shop')) @section('content') {{-- Breadcrumb --}}
{{-- Images --}}
@if(filled($product->images)) {{ $product->name }} @else
๐Ÿ“ท
@endif
{{-- Product details --}}
@if($product->category) {{ $product->category->name }} @endif

{{ $product->name }}

{{-- Description --}} @if($product->description)
{!! nl2br(e($product->description)) !!}
@endif {{-- Variant selector handles price, stock, and add-to-cart --}} {{-- Wishlist --}}
Save to wishlist
{{-- Meta --}} @if($product->sku)

SKU: {{ $product->sku }}

@endif
{{-- Additional info --}} @if($product->additional_info_title && $product->additional_info_body)

{{ $product->additional_info_title }}

{!! nl2br(e($product->additional_info_body)) !!}
@endif {{-- More images --}} @if(filled($product->images) && count($product->images) > 1)
@foreach(array_slice($product->images, 1) as $image) {{ $product->name }} @endforeach
@endif
{{-- Reviews (N1) --}}

Customer Reviews

@if($summary['count'] > 0)
{{ number_format($summary['average'], 1) }} out of 5 ยท {{ $summary['count'] }} {{ Str::plural('review', $summary['count']) }}
@endif
@if(session('review_status'))
{{ session('review_status') }}
@endif @error('review')
{{ $message }}
@enderror {{-- Existing approved reviews --}} @forelse($reviews as $review)
@if($review->title) {{ $review->title }} @endif @if($review->isVerifiedPurchase()) โœ“ Verified purchase @endif
@if($review->body)

{!! nl2br(e($review->body)) !!}

@endif

{{ $review->user?->name ?? 'Customer' }} ยท {{ $review->created_at->format('M j, Y') }}

@empty

No reviews yet.

@endforelse {{-- Write / edit your own review --}}
@auth @if($myReview)

Your review {{ ucfirst($myReview->status) }}

@csrf @method('PATCH') @include('storefront.partials.review-fields', ['review' => $myReview])
@elseif($canReview)

Write a review

@csrf @include('storefront.partials.review-fields', ['review' => null])
@else

Only customers who have purchased this product can review it.

@endif @else

Log in to review a product you've purchased.

@endauth
{{-- Back link --}}
โ† Back to products
@endsection