M.A,Cargo Truckers & Forwarders Co LTD
P.O.Box 678, Morogoro, Tanzania
Tel:+255-23-3529 Fax +255-23-3039
INV NO.: {{\App\Logistics\Facades\Logistics::generateInvoiceNumber($invoice)}}
SERIAL NO.: {{$invoice->id}}
DATE : {{\Carbon\Carbon::parse($invoice->date)->format('jS')."-".\Carbon\Carbon::parse($invoice->date)->format('F')."-".\Carbon\Carbon::parse($invoice->date)->format('Y')}}
TAX
VAT NO 20-017337-V                                               TIN NO 102-812-638 INVOICE
Customer
 
Name {{$invoice->client->name}}
Address {{$invoice->client->address}},{{$invoice->client->region}}
Contacts Phone:{{$invoice->client->phone}},E-Mail:{{$invoice->client->email}}
TIN {{$invoice->client->tin}}
VRN {{$invoice->client->vrn}}
Misc
 
Order No.{{ $invoice->loading_order_number }}
{{----}} {{----}} {{----}}
{{--*/ $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_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  
  {{$invoice->bankAccount['bank_name']}}
  {{$invoice->bankAccount['location']}}
  SWIFT CODE : {{$invoice->bankAccount['swift_code']}}
  Benificiery A/C No : {{$invoice->bankAccount['account_number']}}
  Benificiery Name: {{$invoice->bankAccount['name']}}
  Branch Name : {{$invoice->bankAccount['branch_name']}}
  Branch Code : {{$invoice->bankAccount['branch_code']}}
   
   
Prepared By:
 
Authorised By 
 
{{----}} {{--BANK DETAILS:{{$invoice->bankAccount['bank_name']}}NAME:{{$invoice->bankAccount['name']}},ACC NO.:{{$invoice->bankAccount['account_number']}}SWIFT CODE:{{$invoice->bankAccount['swift_code']}}--}} {{--, {{$invoice->bankAccount['location']}}--}}