@extends('front.app') @section('title', $product->meta_title ?? $product->name) @section('content')
@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) @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



Overview

{!! Str::limit(strip_tags($product->description), 250) !!}

@if(strlen(strip_tags($product->description)) > 250)

{!! strip_tags($product->description) !!}

@endif

{!! $product->additional_information !!}

{!! $product->terms_condition !!}

{!! $product->shipping_information !!}

{{ number_format($product->product_review->avg('rating'), 1) ?? '0.0' }}
{{ $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)
reviewer
{{ $review->review ?? 'Customer Review' }}

{{ $review->review }}


@empty

No reviews yet.

@endforelse
@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

@endif
@if ($relatedProducts->isNotEmpty())

Related products

@endif @if ($recommendedProducts->isNotEmpty())

You may also like

@endif
@endsection