| {{ round($totalpricePurchases, 2) }} |
الاجماليSUB TOTAL |
| {{ round($totaldiscount, 2) }} |
الخصمDISCOUNT |
| {{ round($totalpricePurchases, 2) - round($totaldiscount, 2) }} |
الاجمالي بعد الخصمSUB TOTAL AFTER DISCOUNT |
| {{ round((round($totalpricePurchases, 2) - round($totaldiscount, 2)) * $avt->AVT, 2) }} |
ضريبة القيمة المضافة ({{ $avt->AVT * 100 }}%)VALUE ADDED TAX |
@php
$total = round((round($totalpricePurchases, 2) - round($totaldiscount, 2)) * $avt->AVT, 2)
+ (round($totalpricePurchases, 2) - round($totaldiscount, 2));
[$whole, $decimal] = explode('.', number_format((float) $total, 2, '.', ''));
$decimalDigits = str_split($decimal);
$decimalValue = $decimalDigits[0] === '0' ? (int) $decimalDigits[1] : (int) $decimal;
$decimalWords = $decimalValue !== 0 ? numberToWords($decimalValue) : 'Zero';
$wholeWords = numberToWords((int) $whole);
@endphp
|
{{ number_format(round($total, 2), 2, '.', '') }}
|
الاجمالي الكليNET TOTAL |