@forelse($products ?? [] as $product)
@if($product->offer)

{{ __('Discount') }} @if($product->offer?->discount_type == 1) {{ $product->offer?->discount }} @else {{ $product->offer?->discount }} % @endif

@endif

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

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

( {{ number_format($product->reviews?->avg('rating'),2) ?? 0 }} )

@if($product->offer)

@if($product->price > $product->product_net_price) {{ $product->price }} @endif {{ $product->product_net_price }} SAR

@else

{{ $product->product_net_price }}

@endif
@empty

{{ __('There are no products to display.') }}

@endforelse