You have {{ count($carts) }} items in your cart
Subtotal
{{ number_format($subTotal, 2) }} AED
Discount
@php $discount =0; @endphp @if ($cartCount >= 5) @php $discount = 10; @endphp @elseif ($cartCount >= 3 && $cartCount <= 4) @php $discount = 5; @endphp @endif{{$discount}} %
VAT
5 %
Total(Incl. taxes)
@php $amount = floatval( number_format($subTotal - $discountTotal, 2, '.', ''), ); $taxAmount = ($amount * 5) / 100; $finalAmount = $amount + $taxAmount; if ($cartCount >= 5) { $finalAmount -= $finalAmount * 0.1; // 10% discount } elseif ($cartCount >= 3 && $cartCount <= 4) { $finalAmount -= $finalAmount * 0.05; // 5% discount } @endphp{{ $finalAmount ?? 0 }} AED