@if ($product->isOutOfStock())
{{ __('Out of stock') }}
@elseif (!$product->with_storehouse_management || $product->quantity < 1)
{!! BaseHelper::clean($product->stock_status_html) !!}
@elseif ($product->quantity)
@if (EcommerceHelper::showNumberOfProductsInProductSingle() || ($product->quantity >= 1 && $product->quantity <= 3))
{{-- The number is printed directly (not via a :placeholder) so it
ALWAYS shows, even if the label translation is broken. --}}
{{ $product->quantity }}
{{ $product->quantity != 1 ? __('products available') : __('product available') }}
@else
{{ __('In stock') }}
@endif
@endif