@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 ($product->brand_name)
By
{{ $product?->brand_name?->name }}
@endif
{{-- | --}}
SKU : {{ $product->sku }}
Quantity : {{ $product->weight . ' ' . $product->weight_type }} {{-- @foreach ($product->reviews as $review)
Description: {{ $product->small_description }}
{{--{!! $product->description !!}
--}}
@if ($special)
${{ number_format($product->price, 2) }}
${{ number_format($product->special_price, 2) }}
@else
${{ number_format($product->price, 2) }}
@endif
--}}
Comments