@section('metaTitle', $product->getMetaTags()['title']) @section('metaDescription', $product->getMetaTags()['description']) @section('metaKeywords', $product->getMetaTags()['keywords']) @php $special = false; $today = date('Y-m-d'); if ($product->special_price_from) { if ($product->special_price_from <= $today && $product->special_price_to >= $today) { $special = true; } } @endphp
{{--
    @if (is_null($product->images) || count($product->images) == 0)
  • Product Image
  • @else @foreach ($product->images as $image)
  • Product Image
  • @endforeach @endif
--}}

{{ $product->name }}

@if ($product->brand_name) By {{ $product?->brand_name?->name }} @endif {{-- | --}}

SKU {{ $product->sku }}

Size : {{ $product->weight . ' ' . $product->weight_type }} | @php $pAvgRating = $product->avg_rating; $pRoundRating = (int) round($pAvgRating); $pReviewsCount = $product->reviews_count; @endphp @for ($i = 1; $i <= 5; $i++) @if ($i <= $pRoundRating) @else @endif @endfor ({{ number_format($pAvgRating, 1) }}) {{ $pReviewsCount }} Review(s)

@if(!empty(trim(strip_tags($product->small_description))) && trim(strip_tags($product->small_description)) !== 'null')

{{ $product->small_description }}

@endif

@if ($special) ${{ $product->price }} ${{ $product->special_price }} @else ${{ $product->price }} @endif


Quantity

- +

 

@if ($product->inventory->inventory > 0 && $product->in_stock) Add to cart @else

Out Of Stock

@endif @php $isInWishlist = false; if(auth('customer')->check()){ $wishlistProductIds = auth('customer') ->user() ->wishlist() ->pluck('product_id') ->toArray(); $isInWishlist = in_array($product->id, $wishlistProductIds); } @endphp @if ($isInWishlist) @else @endif
@if (auth('customer')->user())
@endif
@csrf
@if(!empty(trim(strip_tags($product->description))) && trim(strip_tags($product->description)) !== 'null') {!! $product->description !!} @else

No Description Found

@endif
@if(!empty(trim(strip_tags($product->ingredients))) && trim(strip_tags($product->ingredients)) !== 'null') {!! $product->ingredients !!} @else

No Benefits Found

@endif
@if(!empty(trim(strip_tags($product->how_to_use))) && trim(strip_tags($product->how_to_use)) !== 'null') {!! $product->how_to_use !!} @else

No Suggested Use Found

@endif
@if(!empty(trim(strip_tags($product->disclaimer))) && trim(strip_tags($product->disclaimer)) !== 'null') {!! $product->disclaimer !!} @else

No Disclaimer Found

@endif
@if (count($product->reviews) == 0)

No Reviews Found

@else
@foreach ($product->reviews as $review)
{{ $review->title }}
@for ($i = 0; $i < 5; $i++) @if ($i < $review->rating) @else @endif @endfor

{{ $review->description }}

Review By- {{ $review->customer->first_name . ' ' . $review->customer->last_name }} , {{ $review->created_at->format('F d,Y') }}

@endforeach
@endif
@if ($recentViewed->count() != 0)

Recent Viewed Products

@endif

Related Products

@push('scripts') {{-- --}} @endpush