@if($journal_voucher->transaction_type == 'PAYMENTS') LOGISTICS | PAYMENT VOUCHER
{{$company->company_name}}
{{$company->company_address}}, Tanzania
{{$company->compny_phone}}
PAYMENT ADVICE DOC#.: {{str_pad($journal_voucher->transaction_id, 5, '0', STR_PAD_LEFT)}}
SERIAL NO.: {{$journal_voucher->id}}
Date : {{\Carbon\Carbon::parse($journal_voucher->date)->format('jS')."-".\Carbon\Carbon::parse($journal_voucher->date)->format('F')."-".\Carbon\Carbon::parse($journal_voucher->date)->format('Y')}}
VRN NO {{$company->vin}} TIN NO {{$company->tin}}

Party Details
 
Name {{$journal_voucher->party->name}}
Address {{$journal_voucher->party->address}} ,{{$journal_voucher->party->region}}
Contacts Phone:{{$journal_voucher->party->phone_number}} ,E-Mail:{{$journal_voucher->party->email}}
TIN {{$journal_voucher->party->tin}}
VRN {{$journal_voucher->party->vrn}}
Misc
 
Cheque#. {{$journal_voucher->cheque_number}}
Payment for the below items:
{{--*/ $i=1 /*--}} {{--*/ $total_amount = 0 /*--}} {{--*/ $sub_amount_usd = 0 /*--}} {{--*/ $sub_amount_tsh = 0 /*--}} {{--*/ $total_tax_usd = 0 /*--}} {{--*/ $total_tax_tsh = 0 /*--}} {{--*/ $sub_trip_amount = 0 /*--}} {{--*/ $total_vat_amount = 0 /*--}} {{--*/ $item_no = 0 /*--}} {{--*/ $number_of_rows = 6 /*--}} {{--*/ $total_items=0 /*--}} @foreach($journal_voucher->purchaseOrderJournalVouchers as $purchase_order_journal_voucher) {{--*/ $i = 1 /*--}} @foreach($purchase_order_journal_voucher->purchaseOrder->purchaseOrderItems as $index=>$purchase_order_item) @if($index == 0) @endif @if($i == sizeof($purchase_order_journal_voucher->purchaseOrder->purchaseOrderItems)) @else @endif @if($index == 0) {{--*/ $total_vat_amount += ($purchase_order_journal_voucher->purchaseOrder->vat == 'EXEMPT') ? 0 : $purchase_order_journal_voucher->amount*9/59 /*--}} @endif {{--*/ $total_amount += $purchase_order_item->quantity*$purchase_order_item->price /*--}} {{--*/ $i++ /*--}} {{--*/ ++$total_items /*--}} @endforeach @endforeach {{--*/ $number_of_rows = 25 - (int)$total_items /*--}} @for($number_of_rows >=1;$number_of_rows--;) @endfor
No. ITEM DESC Qty Lpo# GRN# LPO Amount Paid Amount Allocated
{{++$item_no}} {{$purchase_order_item->item->name}} {{number_format($purchase_order_item->quantity)}}{{$purchase_order_item->item->name}} {{number_format($purchase_order_item->quantity)}} {{$purchase_order_journal_voucher->purchaseOrder->id}} {{$purchase_order_journal_voucher->purchaseOrder->grns}} {{number_format($purchase_order_journal_voucher->purchaseOrder->grand_total)}} {{$purchase_order_journal_voucher->purchaseOrder->viewPurchaseOrderPayment->total_payment_amount-$purchase_order_journal_voucher->amount}} {{number_format($purchase_order_journal_voucher->amount)}}
               
SUB TOTAL {{number_format($journal_voucher->amount-$total_vat_amount,2)}}
VAT(18%) {{number_format($total_vat_amount,2)}}
TOTAL AMOUNT {{number_format($journal_voucher->amount,2)}}
{{$journal_voucher->remarks}}
@else JOURNAL VOUCHER
{{{($journal_voucher->transaction_type == 'PAYMENTS')? 'PAYMENT':'JOURNAL VOUCHER'}}}
NUMBER :{{str_pad($journal_voucher->transaction_id, 5, '0', STR_PAD_LEFT)}}
DATE : {{\Carbon\Carbon::parse($journal_voucher->date)->toFormattedDateString()}}

Currency :{{$journal_voucher->currency->code}}

{{--*/ $dr_total = 0 /*--}} {{--*/ $cr_total = 0 /*--}} @foreach($journal_voucher->journalVoucherAccounts as $index=>$transaction) @if($transaction->transaction_type =='DR') {{--*/ $dr_total += $transaction->amount /*--}} @else {{--*/ $cr_total += $transaction->amount /*--}} @endif @endforeach
S/N Particulars Party Debit Credit
{{++$index}} {{$transaction->account->name}}
{{$transaction->description}}
{{($transaction->party) ? $transaction->party : ''}}{{number_format($transaction->amount,2)}} {{number_format($transaction->amount,2)}}
{{number_format($dr_total)}} {{number_format($cr_total)}}


Amount in words:
{{\App\Logistics\Facades\Logistics::numberToWord($dr_total,'TSH')}}


Narration :

{{$journal_voucher->remarks}}


Authorized By: {{$journal_voucher->paid_by}} Receiver Signature:


@endif