@php $stockDisplayFormat = preference('stock_display_format'); $lowStockThreshold = $product->getStockThreshold() @endphp @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