Subtotal
{{ Helpers::getUserNumberFormat()->format($subTotal) }}
Tax
@php
if($subTotal > 0){
$vat = $subTotal * 10.25 /100;
}else{
$vat = 0;
}
@endphp
{{ Helpers::getUserNumberFormat()->format($vat) }}
{{--
Calculate shipping --}}
@php
$discountSubTotal = $discountPrice+$vat;
$total = $subTotal+$vat;
// dd($discountTotal);
@endphp
@if ($total < $discountSubTotal)
@php
$discountTotal = $discountSubTotal - $discountPrice + $vat;
$total = $subTotal+$vat;
// dd($discountTotal);
@endphp
Discount
{{ Helpers::getUserNumberFormat()->format($discountTotal)}}
@endif
Total
{{ Helpers::getUserNumberFormat()->format($total)}}