@php $offerFlag = $product->offerCheck(); $outOfStock = $product->isOutOfStock(); $outStock = false; @endphp
@foreach ($images as $ProductImage)
@if ($outOfStock['outOfStockVisibility'] == 1 && !$product->isVariableProduct()) @php $outStock = true @endphp

{{ __('Stock Out') }}

@endif @if (isset($featured) && $outStock == false)

{{ __('Featured') }}

@endif @if ($review_average == 5 && $outStock == false)

{{ __('Top Rated') }}

@endif @if ($offerFlag && !$product->isVariableProduct() && $outStock == false && !$product->isGroupedProduct())

{{ formatCurrencyAmount($product->getDiscountAmount()) }}% {{ __('off') }}

@endif
...
@endforeach
@if (count($images) > 1)
@endif @if (count($images) > 1)
@endif