@php
$total_debet = 0;
$total_kredit = 0;
@endphp
@if($ar_bank_receipt->arPayments)
{{-- PLAN A Digabung Menjadi 1 --}}
{{ $credits['coa_no'] }} |
{{ $credits['coa_description'] }} |
{{ $credits['description'] }} |
|
{{ number_format($credits['credit']) }} |
@php $total_kredit += $credits['credit']; @endphp
@foreach($debits as $key => $debit)
{{ $debit['coa_no'] }} |
{{ $debit['coa_description'] }} |
{{ $debit['description'] }} |
{{ number_format(array_sum($debit['debet'])) }} |
|
@php
$total_debet += array_sum($debit['debet']);
@endphp
@endforeach
{{-- PLAN B Dipisah --}}
{{--
@foreach($credits as $key => $credit)
{{ $credit['coa_no'] }} |
{{ $credit['coa_description'] }} |
{{ $credit['description'] }} |
|
{{ number_format($credit['credit']) }} |
@php $total_kredit += $credit['credit']; @endphp
@foreach($debits[$key] as $debit)
{{ $debit['coa_no'] }} |
{{ $debit['coa_description'] }} |
{{ $debit['description'] }} |
{{ number_format($debit['debet']) }} |
|
@php $total_debet += $debit['debet']; @endphp
@endforeach
@endforeach
--}}
{{--
@if($ar_bank_receipt->bookingDeposit)
{{ @$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
|
@if($ar_bank_receipt->bookingDeposit->bankReceiptVouchers($ar_bank_receipt->date))
@foreach($ar_bank_receipt->bookingDeposit->bankReceiptVouchers($ar_bank_receipt->date) as $voucher)
{{ @$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
|
|
@endforeach
@endif
@endif
@if($ar_bank_receipt->pembayaran)
@if($ar_bank_receipt->pembayaran->tipe_pembayaran == 1)
{{ @$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
|
@if($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date))
@foreach($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date) as $voucher)
{{ @$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
|
|
@endforeach
@endif
@else
{{ @$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
|
|
@if($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date))
@foreach($ar_bank_receipt->pembayaran->bankReceiptVouchers($ar_bank_receipt->date) as $voucher)
{{ @$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
|
@endforeach
@endif
@endif
@endif
@if($ar_bank_receipt->pembayaranPos)
{{ @$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
|
@if($ar_bank_receipt->pembayaranPos->bankReceiptVouchers($ar_bank_receipt->date))
@foreach($ar_bank_receipt->pembayaranPos->bankReceiptVouchers($ar_bank_receipt->date) as $voucher)
{{ @$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
|
|
@endforeach
@endif
@endif
--}}
TOTAL |
{{ number_format($total_debet) }} |
{{ number_format($total_kredit) }} |
@else
Data Not Found |
@endif