@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; $default_variant = ''; $today = date('Y-m-d'); if ($product->special_price_from) { if ($product->special_price_from <= $today && $product->special_price_to >= $today) { $special = true; } } foreach ($product->variants as $index => $variant) { if ($index === 0 && $variant?->variant_value?->name) { $default_variant = $variant->id; } } @endphp @push('styles') @endpush
{{--
    @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 }}

Quantity : {{ $product->weight . ' ' . $product->weight_type }} {{-- @foreach ($product->reviews as $review)

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

Description: {{ $product->small_description }}

{{--

{!! $product->description !!}

--}}
@foreach ($product->variants as $index => $variant)
{{ $variant->variant_value->name ?? 'Doaba Logo' }}
@endforeach @if (count($product->variants) > 5)
@endif

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


Comments


{{--

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