@php $offerFlag = $item->offerCheck(); $metaData = $item->getMetaCollection(); $outOfStockVisibility = 0; $isApprove = 1; $layout = \Modules\CMS\Entities\Page::firstWhere('default', '1')->layout; $product = option($layout . '_template_product', ''); $outOfStock = $item->isOutOfStock(); $outStock = false; $newArrival = isset($newArrival) @endphp @if($outOfStock['isApprove'])
{{ __('Stock Out') }}
@endif @if($newArrival && $outStock == false){{ __('New Arrival') }}
@endif @if(isset($item->featured) && $outStock == false && $newArrival == false){{ __('Featured') }}
@endif @if($item->review_average == 5 && $outStock == false && $newArrival == false){{ __('Top Rated') }}
{{ formatCurrencyAmount($item->getDiscountAmount()) }}% {{ __('off') }}
@endif{{ __('View') }}
@endif{{ $item->name }}
@if ($product['review']) @endif @if ($product['price']) @if($item->isVariableProduct()) @php $minMaxPrice = $item->variantMaxMinPrice(); @endphp{{ formatNumber($minMaxPrice['min']) }} - {{ formatNumber($minMaxPrice['max']) }}
@elseif($item->isGroupedProduct()) @php $groupProductPrice = $item->groupProducts() @endphp{{ formatNumber($groupProductPrice['min']) }} - {{ formatNumber($groupProductPrice['max']) }}
@else @if ($offerFlag){{ $item->priceWithTax($displayPrice, 'sale') }}
@endif{{ $item->priceWithTax($displayPrice, 'regular') }}
@endif @endif