@extends('front.app') @section('title', $product->meta_title ?? $product->name) @section('content') Home Shop @if($product->categories) {{ $product->categories->name }} @endif @if($product->subcategories) {{ $product->subcategories->name }} @endif {{ $product->name }} @php $images = []; foreach ($product->product_options as $opt) { foreach ($opt->product_variant_images as $img) { $images[] = $img->image; } } if (empty($images) && $product->image) { $images[] = $product->image; } @endphp @foreach($images as $key => $img) @endforeach @foreach($images as $key => $img) @php // create zoom id like zoom_01, zoom_02 $zoomId = 'zoom_' . str_pad($key + 1, 2, '0', STR_PAD_LEFT); @endphp @endforeach {{ $product->name }} {!! nl2br(e($product->short_description)) !!} @for($i = 1; $i <= 5; $i++) @endfor ( {{ ($product->reviews_count ?? 0) > 0 ? $product->reviews_count . ' reviews' : 'No reviews' }} ) ₹{{ $product->product_options->first()->price }} ₹{{ $product->product_options->first()->mrp }} @if(!empty($product->fragrance_names)) Fragrance: @foreach($product->fragrance_names as $name) {{ $name }} @endforeach @endif @foreach($product->product_options as $index => $option) @php $pack = $option->packaging; @endphp Select Weight: {{ $pack->quantity }}{{ $pack->quantity_in }} @endforeach @foreach($product->product_options as $index => $option) @php $pack = $option->packaging; $variantImg = $option->product_variant_images->first()->image ?? $product->image; @endphp {{ $pack->quantity }}{{ $pack->quantity_in }} @endforeach Add to cart Buy Now Wishlist Share SKU:{{ $product->sku }} Category: {{ $product->categories->name ?? 'N/A' }} Overview {!! Str::limit(strip_tags($product->description), 250) !!} @if(strlen(strip_tags($product->description)) > 250) {!! strip_tags($product->description) !!} Read More @endif Additional Information {!! $product->additional_information !!} Terms & Conditions {!! $product->terms_condition !!} Shipping and Returns {!! $product->shipping_information !!} Customer Reviews {{ number_format($product->product_review->avg('rating'), 1) ?? '0.0' }} @for($i = 1; $i <= 5; $i++) @endfor {{ $product->review_count }} reviews @foreach($product->rating_breakdown as $star => $percent) {{ $star }} star {{ $percent }}% @endforeach {{ $product->product_review->count() }} Review For This Product @forelse($product->product_review as $review) @for($i = 1; $i <= 5; $i++) @endfor {{ $review->review ?? 'Customer Review' }} Reviewed by {{ optional($review->customer)->name ?? 'Customer' }} - {{ \Carbon\Carbon::parse($review->created_at)->format('d M Y') }} {{ $review->review }} @empty No reviews yet. @endforelse See All Review @if(auth()->guard('customer')->check() && $canReview) @csrf Add a Review Your email address will not be published. Required fields are marked * Your rating of this product @for($i = 1; $i <= 5; $i++) @endfor Your review Name Email Submit @endif {{ $product->categories->name ?? 'Brand' }} {{ $product->name }} {!! nl2br(e($product->short_description)) !!} @for($i = 1; $i <= 5; $i++) @endfor ( {{ ($product->reviews_count ?? 0) > 0 ? $product->reviews_count . ' reviews' : 'No reviews' }} ) ₹{{ $product->product_options->first()->price }} ₹{{ $product->product_options->first()->mrp }} @if(!empty($product->fragrance_names)) Fragrance: @foreach($product->fragrance_names as $name) {{ $name }} @endforeach @endif @foreach($product->product_options as $index => $option) @php $pack = $option->packaging; @endphp Select Weight: {{ $pack->quantity }}{{ $pack->quantity_in }} @endforeach @foreach($product->product_options as $index => $option) @php $pack = $option->packaging; $variantImg = $option->product_variant_images->first()->image ?? $product->image; @endphp {{ $pack->quantity }}{{ $pack->quantity_in }} @endforeach Add to cart Buy Now Wishlist Ask a Question Share @if ($relatedProducts->isNotEmpty()) Related products @foreach($relatedProducts as $item) {{ $item->subcategories->name ?? ($item->categories->name ?? '')}} {{ Str::limit($item->name, 40) }} @for($i = 1; $i <= 5; $i++) @endfor ({{ $item->review_count }}) ₹{{ $item->product_options[0]->price ?? $item->min_price }} @if(!empty($item->product_options[0]->mrp)) ₹{{ $item->product_options[0]->mrp }} @endif Add to Cart Buy Now @endforeach @endif @if ($recommendedProducts->isNotEmpty()) You may also like @foreach($recommendedProducts as $item) {{ $item->subcategories->name ?? ($item->categories->name ?? '')}} {{ Str::limit($item->name, 40) }} @for($i = 1; $i <= 5; $i++) @endfor ({{ $item->review_count }}) ₹{{ $item->product_options[0]->price ?? $item->min_price }} @if(!empty($item->product_options[0]->mrp)) ₹{{ $item->product_options[0]->mrp }} @endif Add to Cart Buy Now @endforeach @endif @endsection
{!! nl2br(e($product->short_description)) !!}
{!! Str::limit(strip_tags($product->description), 250) !!}
{!! strip_tags($product->description) !!}
{!! $product->shipping_information !!}
{{ $review->review }}
No reviews yet.
Your email address will not be published. Required fields are marked *
{{ $product->product_review->count() }} Review For This Product
@forelse($product->product_review as $review)@for($i = 1; $i <= 5; $i++)-
@endfor
{{ $review->review ?? 'Customer Review' }}
{{ $review->review }}
@empty
No reviews yet.
@endforelse