@section('metaTitle', $product->getMetaTags()['title']) @section('metaDescription', $product->getMetaTags()['description']) @section('metaKeywords', $product->getMetaTags()['keywords']) @extends('frontend.layouts.applayout') @section('main-content') @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

{{ $product->name }}

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

SKU {{ $product->sku }}

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


{{ $product->small_description }}


Quantity

- +

 

@if ($product->inventory->inventory > 0) 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
@push('scripts') {{-- --}} {{-- --}} @endpush @endsection