CASH / BANK RECEIPT VOUCHER
{{namaHotel()}}
@if($ar_bank_receipt)
Cash/Bank: @php if($ar_bank_receipt->platform){ $cash_bank = @$ar_bank_receipt->platform->coa->description; } elseif($ar_bank_receipt->ledger){ // $cash_bank = @$ar_bank_receipt->ledger->comp_title.' '.@$ar_bank_receipt->ledger->name; $cash_bank = null; }else{ $cash_bank = 'Individual ledger'; } @endphp {{$cash_bank ?? '-'}} Trans. No : {{$cash_bank ? $cash_bank.' - ' : ''}}{{ date('dmY', strtotime($ar_bank_receipt->date)) }}
Company/Supplier: @php if($ar_bank_receipt->platform){ $company_supplier = @$ar_bank_receipt->platform->company_supplier; } elseif($ar_bank_receipt->ledger){ $company_supplier = @$ar_bank_receipt->ledger->comp_title.' '.@$ar_bank_receipt->ledger->name; } @endphp {{$company_supplier ?? '-'}} Date:{{ date('d-m-Y', strtotime($ar_bank_receipt->date)) }}
Currency:IDR

@php $total_debet = 0; $total_kredit = 0; @endphp @if($ar_bank_receipt->arPayments) {{-- PLAN A Digabung Menjadi 1 --}} @php $total_kredit += $credits['credit']; @endphp @foreach($debits as $key => $debit) @php $total_debet += array_sum($debit['debet']); @endphp @endforeach {{-- PLAN B Dipisah --}} {{-- @foreach($credits as $key => $credit) @php $total_kredit += $credit['credit']; @endphp @foreach($debits[$key] as $debit) @php $total_debet += $debit['debet']; @endphp @endforeach @endforeach --}} {{-- @if($ar_bank_receipt->bookingDeposit) @if($ar_bank_receipt->bookingDeposit->bankReceiptVouchers($ar_bank_receipt->date)) @foreach($ar_bank_receipt->bookingDeposit->bankReceiptVouchers($ar_bank_receipt->date) as $voucher) @endforeach @endif @endif @if($ar_bank_receipt->pembayaran) @if($ar_bank_receipt->pembayaran->tipe_pembayaran == 1) @if($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date)) @foreach($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date) as $voucher) @endforeach @endif @else @if($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date)) @foreach($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date) as $voucher) @endforeach @endif @endif @endif @if($ar_bank_receipt->pembayaranPos) @if($ar_bank_receipt->pembayaranPos->bankReceiptVouchers($ar_bank_receipt->date)) @foreach($ar_bank_receipt->pembayaranPos->bankReceiptVouchers($ar_bank_receipt->date) as $voucher) @endforeach @endif @endif --}} @else @endif
COA No COA Description Description Debet Kredit
{{ $credits['coa_no'] }} {{ $credits['coa_description'] }} {{ $credits['description'] }} {{ number_format($credits['credit']) }}
{{ $debit['coa_no'] }} {{ $debit['coa_description'] }} {{ $debit['description'] }} {{ number_format(array_sum($debit['debet'])) }}
{{ $credit['coa_no'] }} {{ $credit['coa_description'] }} {{ $credit['description'] }} {{ number_format($credit['credit']) }}
{{ $debit['coa_no'] }} {{ $debit['coa_description'] }} {{ $debit['description'] }} {{ number_format($debit['debet']) }}
{{ @$ar_bank_receipt->bookingDeposit->platform->coa->account_no ?? @$ar_bank_receipt->pembayaran->ledger->coa->account_no }} {{ @$ar_bank_receipt->bookingDeposit->platform->coa->description ?? @$ar_bank_receipt->pembayaran->ledger->coa->description }} {{ @$ar_bank_receipt->bookingDeposit->platform->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan(@$ar_bank_receipt->bookingDeposit->nominal) }} @php $total_kredit += $ar_bank_receipt->bookingDeposit->nominal; @endphp
{{ @$voucher->pembayaranAr->coa->account_no }} {{ @$voucher->pembayaranAr->coa->description }} {{ @$ar_bank_receipt->bookingDeposit->platform->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan($voucher->nominal) }} @php $total_debet += $voucher->nominal; @endphp
{{ @$ar_bank_receipt->pembayaran->platformPembayaran->coa->account_no ?? @$ar_bank_receipt->pembayaran->ledger->coa->account_no }} {{ @$ar_bank_receipt->pembayaran->platformPembayaran->coa->description ?? @$ar_bank_receipt->pembayaran->ledger->coa->description }} {{ @$ar_bank_receipt->pembayaran->platformPembayaran->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan(@$ar_bank_receipt->pembayaran->nominal) }} @php $total_kredit += $ar_bank_receipt->pembayaran->nominal; @endphp
{{ @$voucher->pembayaranAr->coa->account_no }} {{ @$voucher->pembayaranAr->coa->description }} {{ @$ar_bank_receipt->pembayaran->platformPembayaran->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan($voucher->nominal) }} @php $total_debet += $voucher->nominal; @endphp
{{ @$ar_bank_receipt->pembayaran->platformPembayaran->coa->account_no ?? @$ar_bank_receipt->pembayaran->ledger->coa->account_no }} {{ @$ar_bank_receipt->pembayaran->platformPembayaran->coa->description ?? @$ar_bank_receipt->pembayaran->ledger->coa->description }} {{ @$ar_bank_receipt->pembayaran->platformPembayaran->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan(@$ar_bank_receipt->pembayaran->nominal * -1) }} @php $total_debet += $ar_bank_receipt->pembayaran->nominal * -1; @endphp
{{ @$voucher->pembayaranAr->coa->account_no }} {{ @$voucher->pembayaranAr->coa->description }} {{ @$ar_bank_receipt->pembayaran->platformPembayaran->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan($voucher->nominal) }} @php $total_kredit += $voucher->nominal; @endphp
{{ @$ar_bank_receipt->pembayaranPos->platform->coa->account_no }} {{ @$ar_bank_receipt->pembayaranPos->platform->coa->description }} {{ @$ar_bank_receipt->pembayaranPos->platform->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan(@$ar_bank_receipt->pembayaranPos->nominal) }} @php $total_kredit += $ar_bank_receipt->pembayaranPos->nominal @endphp
{{ @$voucher->pembayaranAr->coa->account_no }} {{ @$voucher->pembayaranAr->coa->description }} {{ @$ar_bank_receipt->pembayaranPos->platform->nama.' '.date('d/m/Y', strtotime($ar_bank_receipt->date)) }} {{ ribuan($voucher->nominal) }} @php $total_debet += $voucher->nominal; @endphp
TOTAL {{ number_format($total_debet) }} {{ number_format($total_kredit) }}
Data Not Found
Prepared By Acknowledge By Approved By



Chief Accounting



General Manager
@else

No Data

@endif