ltrs |
Description |
Rate US$/ltr |
USD |
{{--*/ $i = 0 /*--}}
{{--*/ $sub_amount_usd = 0 /*--}}
{{--*/ $sub_amount_tsh = 0 /*--}}
{{--*/ $total_tax_usd = 0 /*--}}
{{--*/ $total_tax_tsh = 0 /*--}}
{{--*/ $sub_trip_amount = 0 /*--}}
{{--*/ $exchange_rate = $invoice->exchange_rate /*--}}
{{--*/ $number_of_rows = 15/*--}}
{{--*/ $quantity = 0 /*--}}
@foreach($invoice_items as $invoice_item)
{{--*/ $amount_charged = ($invoice_item->quantity)*$invoice_item->rate /*--}}
{{--*/ $quantity += $invoice_item->quantity /*--}}
@if($invoice_item->currency == 'TSH')
@if($invoice_item->vat == 'VAT_EXCLUSIVE')
{{--*/ $sub_amount_tsh += $amount_charged /*--}}
{{--*/ $sub_amount_usd += \App\Logistics\Facades\Logistics::currencyConvert($sub_amount_tsh, 'TSH',$exchange_rate, 'USD') /*--}}
{{--*/ $total_tax_tsh += $sub_amount_tsh*0.18 /*--}}
{{--*/ $total_tax_usd += $sub_amount_usd*0.18 /*--}}
@elseif($invoice_item->vat == 'VAT_INCLUSIVE')
{{--*/ $sub_amount_tsh += $amount_charged/1.18 /*--}}
{{--*/ $sub_amount_usd += \App\Logistics\Facades\Logistics::currencyConvert($sub_amount_tsh, 'TSH',$exchange_rate, 'USD') /*--}}
{{--*/ $total_tax_tsh += $amount_charged-$sub_amount_tsh /*--}}
{{--*/ $total_tax_usd += $sub_amount_usd - $sub_amount_usd /*--}}
@else
{{--*/ $sub_amount_tsh += $amount_charged /*--}}
{{--*/ $sub_amount_usd += \App\Logistics\Facades\Logistics::currencyConvert($amount_charged, 'TSH',$exchange_rate, 'USD') /*--}}
@endif
@else
@if($invoice_item->vat == 'VAT_EXCLUSIVE')
{{--*/ $sub_amount_usd += $amount_charged /*--}}
{{--*/ $sub_amount_tsh += \App\Logistics\Facades\Logistics::currencyConvert($amount_charged, 'USD',$exchange_rate, 'TSH') /*--}}
{{--*/ $total_tax_tsh += $sub_amount_tsh*0.18 /*--}}
{{--*/ $total_tax_usd += $sub_amount_usd*0.18 /*--}}
@elseif($invoice_item->vat == 'VAT_INCLUSIVE')
{{--*/ $sub_amount_usd += $amount_charged/1.18 /*--}}
{{--*/ $sub_amount_tsh += \App\Logistics\Facades\Logistics::currencyConvert($amount_charged/1.18, 'USD',$exchange_rate, 'TSH') /*--}}
{{--*/ $total_tax_tsh += \App\Logistics\Facades\Logistics::currencyConvert($amount_charged, 'USD',$exchange_rate, 'TSH') - $sub_amount_tsh /*--}}
{{--*/ $total_tax_usd += $sub_amount_usd - $sub_amount_usd /*--}}
@else
{{--*/ $sub_amount_usd += $amount_charged /*--}}
{{--*/ $sub_amount_tsh += \App\Logistics\Facades\Logistics::currencyConvert($amount_charged, 'USD',$exchange_rate, 'TSH') /*--}}
@endif
@endif
{{number_format($invoice_item->quantity)}} |
TRANSPORT CHARGES
OF {{$invoice_item->product}} FROM DAR ES SALAAM TO {{$invoice_item->destination}} |
{{$invoice_item->rate}} |
{{number_format($amount_charged,2)}} |
{{--*/ $number_of_rows-- /*--}}
@endforeach
@for($number_of_rows >=1;$number_of_rows--;)
|
|
|
|
@endfor
|
Sub Total |
{{number_format($sub_amount_usd,2)}} |
|
Tax Rate(s) |
{{number_format($total_tax_usd,2)}} |
|
Total |
{{number_format($sub_amount_usd+$total_tax_usd,2)}} |
|
{{--