@extends('ecommerce::public.shop-layout') @section('title', $product->name . ' - ' . ($settings->site_name ?? 'Store')) @php $hasVariants = $product->has_variants && $product->activeVariations->count() > 0; $attributes = $hasVariants ? $product->getAttributesWithValues() : []; $priceRange = $product->getPriceRange(); $currentStock = $product->getCurrentStock(); $inStock = $hasVariants ? $product->hasAnyVariationInStock() : ($currentStock > 0); // Get cart quantities for this product (key: variation_id or 0 for non-variant) $cart = session('cart', []); $cartQtyMap = []; foreach ($cart as $key => $item) { if (($item['product_id'] ?? null) == $product->id) { $varId = $item['variation_id'] ?? 0; $cartQtyMap[$varId] = $item['qty']; } } @endphp @section('content')
Inclusive of all taxes
{{-- Stock Status --}}{{ $review->review }}
{{ $review->created_at->setTimezone('Asia/Kolkata')->format('d M Y') }} @if($review->admin_reply){{ $review->admin_reply }}
Be the first to share your experience with this product!