@auth @if(!Auth::user()->isAdmin()) @endif @endauth @php $currency = session('currency', 'AZN'); $symbol = $product->getCurrencySymbol($currency); $isDiscounted = $product->isDiscounted(); $discountType = $product->discount_type; $discountValue = $discountType === 'percent' ? rtrim(rtrim($product->discount_value, '0'), '.') . '%' : $symbol . rtrim(rtrim(number_format($product->getDiscountValueInCurrency($currency), 2), '0'), '.'); @endphp -{{ $isDiscounted ? $discountValue : '' }}
{{ $product->getTranslation('name', app()->getLocale()) }}

{{ $product->getTranslation('name', app()->getLocale()) }}

{{ $product->category ? $product->category->getTranslation('name', app()->getLocale()) : '' }}

@php $currency = session('currency', 'AZN'); $price = $product->getPriceInCurrency($currency); $finalPrice = $product->getFinalPriceInCurrency($currency); $symbol = $product->getCurrencySymbol($currency); @endphp @if($product->isDiscounted())

{{ $symbol }}{{ number_format($price, 2) }} {{ $symbol }}{{ number_format($finalPrice, 2) }}

@else

{{ $symbol }}{{ number_format($price, 2) }}

@endif