@php $rupees = fn (int|float $v) => inr($v); // Indian grouping: ₹1,00,000 $gallery = array_map(fn ($img) => asset($img), $product['gallery']); // Customers never see the vendor: everything is sold and delivered by ExpertBuildCare; the product brand is shown. $soldBy = 'ExpertBuildCare'; $care = $product['details']['Care'] ?? null; $specs = collect($product['details'])->except('Care'); $returnDays = (int) settings('checkout.return_window_days', 7); $productSchema = array_filter([ '@type' => 'Product', '@id' => $product['url'].'#product', 'name' => $product['name'], 'description' => $product['description'], 'image' => $gallery, 'sku' => 'MP'.str_pad((string) $product['id'], 5, '0', STR_PAD_LEFT), 'category' => $product['category_name'], 'brand' => ['@type' => 'Brand', 'name' => $product['brand'] ?: $soldBy], 'countryOfOrigin' => 'IN', 'offers' => [ '@type' => 'Offer', 'url' => $product['url'], 'priceCurrency' => 'INR', 'price' => (string) $product['price'], 'priceValidUntil' => now()->addYear()->endOfYear()->toDateString(), 'availability' => $product['stock'] > 0 ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock', 'itemCondition' => 'https://schema.org/NewCondition', 'seller' => ['@type' => 'Organization', 'name' => $soldBy], 'shippingDetails' => [ '@type' => 'OfferShippingDetails', 'shippingDestination' => ['@type' => 'DefinedRegion', 'addressCountry' => 'IN'], 'shippingRate' => ['@type' => 'MonetaryAmount', 'currency' => 'INR', 'value' => (string) ($shipping['rate'] + $shipping['packing'])], 'deliveryTime' => ['@type' => 'ShippingDeliveryTime', 'handlingTime' => ['@type' => 'QuantitativeValue', 'minValue' => $dispatch[0], 'maxValue' => $dispatch[1], 'unitCode' => 'DAY'], 'transitTime' => ['@type' => 'QuantitativeValue', 'minValue' => 2, 'maxValue' => 7, 'unitCode' => 'DAY']], ], 'hasMerchantReturnPolicy' => $returnDays > 0 ? [ '@type' => 'MerchantReturnPolicy', 'applicableCountry' => 'IN', 'returnPolicyCategory' => 'https://schema.org/MerchantReturnFiniteReturnWindow', 'merchantReturnDays' => $returnDays, 'returnMethod' => 'https://schema.org/ReturnByMail', 'returnFees' => 'https://schema.org/FreeReturn', ] : ['@type' => 'MerchantReturnPolicy', 'applicableCountry' => 'IN', 'returnPolicyCategory' => 'https://schema.org/MerchantReturnNotPermitted'], ], 'aggregateRating' => $rating['count'] ? ['@type' => 'AggregateRating', 'ratingValue' => round($rating['average'], 1), 'reviewCount' => $rating['count'], 'bestRating' => 5, 'worstRating' => 1] : null, 'review' => $reviews->isNotEmpty() ? $reviews->take(5)->map(fn ($r) => array_filter([ '@type' => 'Review', 'reviewRating' => ['@type' => 'Rating', 'ratingValue' => $r->rating, 'bestRating' => 5], 'author' => ['@type' => 'Person', 'name' => $r->authorName()], 'datePublished' => $r->created_at->toDateString(), 'name' => $r->title, 'reviewBody' => $r->body, ]))->values()->all() : null, ]); $crumbs = array_values(array_filter([ $category ? [$category['name'], route('category.show', $category['slug'])] : null, [$product['name'], $product['url']], ])); $metaDescription = $product['name'].($product['brand'] ? ' by '.$product['brand'] : '').', sold and delivered by ExpertBuildCare. '.$product['description']; @endphp
{{-- Gallery --}}
count($gallery) > 1]) data-gallery>
{{ $product['name'] }} @if ($product['off']){{ $product['off'] }}% OFF@endif
@csrf
@if (count($gallery) > 1)
@foreach ($gallery as $i => $src) @endforeach
@endif
{{-- Buy box --}}
@if ($category){{ $category['name'] }}@endif Code: MP{{ str_pad((string) $product['id'], 5, '0', STR_PAD_LEFT) }}

{{ $product['name'] }}

@if ($rating['count']) {{ number_format($rating['average'], 1) }} ({{ $rating['count'] }} {{ Str::plural('review', $rating['count']) }}) @endif
@if ($product['has_variants'] && collect($product['variants'])->pluck('price')->unique()->count() > 1)From@endif {{ $rupees($product['price']) }}

Inclusive of all taxes

  • Genuine product
  • Delivered by {{ $soldBy }}
  • @if ($product['stock'] <= 0)
  • Out of stock
  • @elseif ($product['stock'] <= 8)
  • Only {{ $product['stock'] }} left
  • @else
  • In stock
  • @endif
{{-- Delivery check (estimate until courier serviceability arrives in Phase 5) --}}

Delivery

{{ $shipping['text'] }}@if ($shipping['packing'] > 0) · {{ inr($shipping['packing']) }} packing @endif

Dispatched in {{ $product['ships_in'] }}

@if ($product['stock'] > 0)
@csrf @if ($product['has_variants'])
Choose {{ mb_strtolower(implode(' / ', $product['option_names'])) }}
@foreach ($product['variants'] as $v) @endforeach

@endif
@if ($inCart)

{{ $inCart }} already in your cart

@endif @else

Sold out for now. We can email you the moment it's back in stock.

@auth
@csrf @if ($alerts['back_in_stock']) @else @endif
@else Sign in to get notified @endauth
@endif Buying in bulk? Get a special price for large quantities
@csrf
@if ($inCompare)View comparison ({{ $compareCount }})@endif @if ($product['stock'] > 0) @auth
@csrf
@else Sign in for price-drop alerts @endauth @endif
  • Genuine
    brands
  • Easy
    returns
  • Secure
    payments
  • Made in
    India
{{-- Product information --}}
Highlights
    @foreach ($product['highlights'] as $h)
  • {{ $h }}
  • @endforeach
Description

{{ $product['description'] }}

Product details
Category
{{ $product['category_name'] }}
@foreach ($specs as $k => $v)
{{ $k }}
{{ $v }}
@endforeach @if ($product['brand'])
Brand
{{ $product['brand'] }}
@endif
@if ($care)
Storage and handling

{{ $care }}.

@endif
Delivery & returns
  • Dispatched by {{ $soldBy }}, usually within {{ $product['ships_in'] }}.
  • Large orders may arrive as more than one delivery, each tracked from your account.
  • The delivery date shown above is an estimate. The exact date is confirmed at checkout.
  • Returns and refunds follow our Return and Refund Policy.
{{-- Ratings & reviews (verified purchases only) --}}

Ratings & reviews

@if ($reviewItem) Write a review @endif
@if ($rating['count'])
{{ number_format($rating['average'], 1) }} {{ $rating['count'] }} {{ Str::plural('review', $rating['count']) }}
@foreach ($rating['stars'] as $star => $n)
{{ $star }} {{ $n }}
@endforeach
@foreach ($reviews as $review)
@if ($review->title){{ $review->title }}@endif

{{ $review->body }}

@if ($review->photos)
@foreach ($review->photos as $ph)Customer photo@endforeach
@endif {{ $review->authorName() }} · {{ $review->created_at->format('d M Y') }} · Verified purchase
@endforeach @else
No reviews yet Only customers who bought and received this product can review it, so every review here is genuine.
@endif
@if ($related->isNotEmpty())

You may also like

@foreach ($related as $p)@endforeach
@endif @if ($recent->isNotEmpty())

Recently viewed

@foreach ($recent as $p)@endforeach
@endif @if ($product['stock'] > 0) {{-- Mobile: keeps the buy buttons in reach once the main ones scroll away --}} @endif