@extends('layouts.app') @section('title', $product->meta_title ?: ($product->name . ' — Buy Online | Divine Drops Luxury Skincare')) @section('meta_description', $product->meta_description ?: ($product->description ? Str::limit(strip_tags($product->description), 155) : 'Buy 100% natural Indian skincare online at Divine Drops. Free shipping on orders over ₹499.')) @section('meta_keywords', $product->meta_keywords ?: ($product->name . ', natural skincare, divine drops, organic beauty')) @section('og_title', $product->og_title ?: ($product->meta_title ?: $product->name)) @section('og_description', $product->og_description ?: ($product->meta_description ?: $product->description)) @section('og_image', asset($product->image)) @section('og_type', 'product') @php $variants = $product->variants->count() > 0 ? $product->variants : collect([]); $defaultVariant = $variants->first(); $activePrice = $defaultVariant ? $defaultVariant->price : $product->price; $activeCompare = $defaultVariant ? $defaultVariant->compare_at : $product->compare_at; $activeStock = $defaultVariant ? $defaultVariant->stock : $product->stock; $off = $activeCompare ? round((1 - $activePrice / $activeCompare) * 100) : null; $gallery = is_array($product->gallery) && count($product->gallery) > 0 ? $product->gallery : array_values(array_unique(array_filter([$product->image, $product->image_alt]))); $jsonLdData = [ '@context' => 'https://schema.org/', '@type' => 'Product', 'name' => $product->name, 'image' => [asset($product->image)], 'description' => strip_tags($product->meta_description ?: $product->description), 'sku' => $product->slug, 'brand' => [ '@type' => 'Brand', 'name' => 'Divine Drops' ], 'aggregateRating' => [ '@type' => 'AggregateRating', 'ratingValue' => (string)($product->rating ?? 5.0), 'reviewCount' => (string)($product->reviews_count ?? 120) ], 'offers' => [ '@type' => 'Offer', 'url' => url()->current(), 'priceCurrency' => 'INR', 'price' => (string)$activePrice, 'itemCondition' => 'https://schema.org/NewCondition', 'availability' => $activeStock > 0 ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock' ] ]; @endphp @section('json_ld') @endsection @section('content') {{-- Product overview --}}
{{-- Gallery --}}
{{ $product->name }}
@foreach ($gallery as $i => $image) @endforeach
{{-- Info --}}
@csrf @if ($product->badge) {{ $product->badge }} @endif

{{ $product->name }}

{{ $product->tag }}

₹{{ number_format($activePrice) }} ₹{{ number_format($activeCompare) }} Save {{ $off }}%

MRP inclusive of all taxes | Stock Available: {{ $activeStock }} units

{{-- Size Variant Selector --}}
Select Size / Volume
@if($variants->count() > 0) @foreach ($variants as $i => $var) @endforeach @else Standard Size @endif
{{-- Quantity + CTAs --}}
{{-- Benefit icons --}}
@foreach ([ ['icon' => 'leaf', 'label' => '100% Natural'], ['icon' => 'shield', 'label' => 'Clinically Tested'], ['icon' => 'droplet', 'label' => 'pH Balanced'], ] as $benefit)
{{ $benefit['label'] }}
@endforeach
{{-- Accordions --}}
Description

{{ $product->description ?? 'A gentle, everyday formulation made in small batches with farm-fresh ingredients.' }}

Shipping & Delivery

Orders ship within 24 hours. Free shipping across India on orders above ₹499.

{{-- Related products --}}
@foreach ($related as $item) @endforeach
@endsection