@if(!empty(end($categories)))
{{ __('Category') }}: {{ end($categories) }}
@endif
@if(!empty($brand))
{{ __('Brand') }}: {{ $brand }}
@endif
@if(!empty($sku))
{{ __('SKU') }}: {{ $sku }}
@endif
{{-- ratting --}}
@if($reviews_allowed == 1 && preference('reviews_enable_product_review') == 1)
@include('site.layouts.section.product-details.rating')
@endif
{{-- share button --}}
@include('site.layouts.section.product-details.share_button')
@if (preference('wishlist'))
@php
$active = false;
if (auth()->user()) {
foreach (auth()->user()->wishlist as $key => $wishlist) {
if ($id == $wishlist->product_id) {
$active = true;
}
}
}
@endphp
{{-- Wish-list --}}
@endif
{{-- compare --}}
@if (preference('compare'))
@endif
@if ($product->isVariableProduct())
@php
$sale_price = $sale_price[0] ?? 0;
$regular_price = $regular_price[0] ?? 0;
@endphp
{{ formatNumber($filterVariation['min']) }}
- {{ formatNumber($filterVariation['max']) }}
@endif
@if ($offerFlag)
{{ !$product->isVariableProduct() ? $product->priceWithTax($displayPrice, 'sale') : $sale_price }}
{{ $type != 'Variable Product' ? $product->priceWithTax($displayPrice, 'regular') : $regular_price }}
@else
{{ !$product->isVariableProduct() ? $product->priceWithTax($displayPrice, 'regular') : $regular_price }}
@endif
@if ($product->isVariableProduct() && is_array($filterVariation) && count($filterVariation) > 0)
@php
$count = 0;
$position = 1;
@endphp
@foreach ($filterVariation['attrbuteIdsWithKey'] as $key => $attrbuteIdWithKey)
{{ $attributes[$key]['name'] }}
@php $position++; @endphp
@endforeach
@elseif($manage_stocks == 1 && $stock_status == 'In Stock' && $stock_hide == 0 && $stock_quantity >= 0 && !is_null($stock_quantity))
@if($stockDisplayFormat == 'always_show')
{{ __('In Stock') }} {{ __(':x items remaining', ['x' => $stock_quantity]) }}
@elseif($stockDisplayFormat == 'sometime_show' && $stock_quantity <= $lowStockThreshold && $lowStockThreshold != 0)
{{__('Only :x left in stock.', ['x' => $stock_quantity])}}
@endif
@elseif(($manage_stocks == 0 && $stock_status == 'Out Of Stock') ||
($manage_stocks == 1 && $stock_hide == 0 && $stock_quantity <= 0 && $backorders == 0))
@if($stockDisplayFormat == 'always_show' || $stockDisplayFormat == 'sometime_show')
{{ __('Out Of Stock') }}
@endif
@endif