@foreach ($products as $product)
{{-- sale-button --}} @if ($product['actual-price'] > $product['selling-price']) @endif {{-- product image --}}
{{ $product['productName'] }}
{{ $product['currency-icon'] }}{{ $product['selling-price'] }} @if ($product['actual-price'] > $product['selling-price']) {{ $product['currency-icon'] }}{{ $product['actual-price'] }} {{ (($product['actual-price'] - $product['selling-price']) * 100) / $product['actual-price'] }}% @endif
@if ($product['review-count'])
{{ $product['review-count'] }} reviews
@else
Be the first to write a review
@endif
{{-- --}}
@endforeach