@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 }}| @foreach ($product->reviews as $review)

@for ($i = 0; $i < 5; $i++) @if ($i < $review->rating) @else @endif @endfor
@endforeach

@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 @if (auth('customer')->user()) @php $wishlistProductIds = auth('customer') ->user() ->wishlist() ->pluck('product_id') ->toArray(); $productIdToCheck = $product->id; $isInWishlist = in_array($productIdToCheck, $wishlistProductIds); @endphp @if ($isInWishlist) @else @endif @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