# |
الأسم |
الوحدة |
السعر |
الكميه |
اجمالي المبلغ (غير شامل ضريبة القيمة المضافه) |
اجمالي المبلغ (شامل ضريبة القيمة المضافه) |
@php $serial_number = 1 @endphp
@foreach($items as $item)
{{$serial_number++}} |
{{$item->voucherDetails->item->name_ar}} |
{{$item->voucherDetails->unit->unit_name}} |
{{$item->voucherDetails->price}} |
{{$item->quantity}} |
@php
$result = (float)$item->quantity * (float)$item->voucherDetails->price;
@endphp
{{$result}} |
@php
$result = (float)$item->quantity * (float)$item->voucherDetails->price;
$tax = (float)$item->quantity * (float)$item->voucherDetails->price * $vat;
$total = $result + $tax ;
@endphp
{{$total}} |
@endforeach
|
|
|
|
|
|
|
@php
$total_price = 0;
$total_vat = 0;
@endphp
@foreach($items as $item)
@if ($item->voucherDetails)
@php
$invoiced_qty = (float)$item->quantity;
$price = (float)$item->voucherDetails->price;
$total_price += $invoiced_qty * $price;
@endphp
@endif
@endforeach
@php
$total_vat = $total_price * $vat;
$total_price_vat = $total_price + $total_vat;
@endphp
إجمالي المبلغ (غير شامل ضريبة القيمة المضافه) |
{{$total_price}} |
SAR |
إجمالي قيمة الضريبة المضافه ({{ '%' . $vat * 100}}) |
{{$total_vat}} |
SAR |
|
{{$total_price_vat}} |
SAR |