M.A,Cargo Truckers & Forwarders Co LTD
P.O.Box 678, Morogoro, Tanzania
Tel:+255-23-3529 Fax +255-23-3039
PI No.: {{$proforma_invoice->proforma_invoice_number}}
SERIAL NO.: {{$proforma_invoice->id}}
Date : {{\Carbon\Carbon::parse($proforma_invoice->date)->format('jS')."-".\Carbon\Carbon::parse($proforma_invoice->date)->format('F')."-".\Carbon\Carbon::parse($proforma_invoice->date)->format('Y')}}
PROFORMA
VAT NO 20-017337-V                                               TIN NO 102-812-638 INVOICE
Customer
 
Name {{$proforma_invoice->client->name}}
Address {{$proforma_invoice->client->address}}
City {{$proforma_invoice->client->region}}
Phone {{$proforma_invoice->client->phone}}
E-Mail {{$proforma_invoice->client->email}}
TIN {{$invoice->client->tin}}
VRN {{$invoice->client->vrn}}
Misc
 
Order No.....
Date
{{----}} {{----}} {{----}}
{{--*/ $i = 0 /*--}} {{--*/ $sub_amount_usd = 0 /*--}} {{--*/ $sub_amount_tsh = 0 /*--}} {{--*/ $total_tax_usd = 0 /*--}} {{--*/ $total_tax_tsh = 0 /*--}} {{--*/ $sub_trip_amount = 0 /*--}} {{--*/ $exchange_rate = $proforma_invoice->exchange_rate /*--}} {{--*/ $number_of_rows = 7/*--}} {{--*/ $quantity = 0 /*--}} @foreach($proforma_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_of_rows-- /*--}} @endforeach @for($number_of_rows >=1;$number_of_rows--;) @endfor
ltrs Description Rate US$/ltr USD
{{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)}}
       
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)}}
Exchange Rate :{{$exchange_rate}}
({{\App\Logistics\Facades\Logistics::numberToWord((round(($sub_amount_usd+$total_tax_usd)*100)/100),'USD')}} only.)
Bankers 
 FIRST NATIONAL BANK (FNB)
 Ohio Street, P.O. Box 72290, Dar-es-salaam
 SWIFT CODE : FIRNTZTX
 Benificiery A/C No : 62528100796
 Benificiery Name: M.A Cargo Truckers & Forwarders Co. Ltd
 Branch Name : Main Branch , Dar-es-salaam
 Branch Code : 6309
  
  
Prepared By:
 
Authorised By 
 
{{----}} {{--BANK DETAILS:{{$proforma_invoice->bankAccount['bank_name']}}NAME:{{$proforma_invoice->bankAccount['name']}},ACC NO.:{{$proforma_invoice->bankAccount['account_number']}}SWIFT CODE:{{$proforma_invoice->bankAccount['swift_code']}}--}} {{--, {{$proforma_invoice->bankAccount['location']}}--}}