AR Payment List

Report Printed on: {{date('l, F d, Y')}}
@php $no = 1; @endphp @if (count($ar_payments)>0) @foreach($ar_payments as $key => $per_payment_ids) @php $total = 0; @endphp @foreach($per_payment_ids as $key_payment_id => $per_payment_id) @php $total_per_payment_id = 0; @endphp @foreach($per_payment_id as $key_per_bill => $per_bills) @php $total_per_bill = 0; @endphp @foreach($per_bills as $payment_list) @endforeach @endforeach {{-- --}} @endforeach @endforeach @else @endif
Bill Date Bill Number Payment ID Bill Receiver Debt Amount Pay Amount Pay-Date Payment Article Comment
{{ $key }}
{{ date('d-m-Y', strtotime($payment_list->payment_date)) }} @if($payment_list->booking_deposit_id) @php $payment_id = @$payment_list->bookingDeposit->arBankReceipt($payment_list->payment_date)->id; @endphp @if($payment_list->bookingDeposit->booking) {{ @$invoice_array[@$payment_list->bookingDeposit->booking_id][@$payment_list->bookingDeposit->room_index]->no_invoice }} @php $bill_no = @$invoice_array[@$payment_list->bookingDeposit->booking_id][@$payment_list->bookingDeposit->room_index]->no_invoice; @endphp @else {{ @$payment_list->bookingDeposit->FolioDummy->no_bill }} @php $bill_no = @$payment_list->bookingDeposit->FolioDummy->no_bill; @endphp @endif @endif @if($payment_list->pembayaran_id) {{ @$payment_list->pembayaran->invoice->no_invoice }} @php $payment_id = @$payment_list->pembayaran->arBankReceipt($payment_list->payment_date)->id; $bill_no = @$payment_list->pembayaran->invoice->no_invoice; @endphp @endif @if($payment_list->pembayaran_pos_id) {{ @$payment_list->pembayaranPOS->cart->order_flag }} @php $payment_id = @$payment_list->pembayaranPOS->arBankReceipt($payment_list->payment_date)->id; $bill_no = @$payment_list->pembayaranPOS->cart->order_flag; @endphp @endif {{ $payment_list->ar_bank_receipt_id }} @if($payment_list->booking_deposit_id) @if($payment_list->bookingDeposit->booking) @if($payment_list->bookingDeposit->booking->company) {{ $payment_list->bookingDeposit->booking->company->comp_title.' '.$payment_list->bookingDeposit->booking->company->name ?? 'Customer' }} @else($payment_list->bookingDeposit->booking->invoice) {{ @$invoice_array[@$payment_list->bookingDeposit->booking_id][@$payment_list->bookingDeposit->room_index]->nama_pelanggan ?? 'Customer' }} @endif @else {{ $payment_list->bookingDeposit->folioDummy->guestProfile->name ?? 'Customer' }} @endif @endif @if($payment_list->pembayaran_id) @if($payment_list->pembayaran->booking->company) {{ $payment_list->pembayaran->booking->company->comp_title.' '.$payment_list->pembayaran->booking->company->name ?? 'Customer' }} @else {{ $payment_list->pembayaran->invoice->nama_pelanggan ?? 'Customer' }} @endif @endif @if($payment_list->pembayaran_pos_id) @if($payment_list->pembayaranPOS->ledger) {{ $payment_list->pembayaranPOS->ledger->comp_title.' '.$payment_list->pembayaranPOS->ledger->name ?? 'Customer' }} @else {{ $payment_list->pembayaranPOS->cart->nama_pelanggan ?? 'Customer' }} @endif @endif @if($payment_list->booking_deposit_id) {{ @ribuanWithComma($payment_list->bookingDeposit->nominal) }} @endif @if($payment_list->pembayaran_id) @if($payment_list->pembayaran->tipe_pembayaran == 1) {{ @ribuanWithComma($payment_list->pembayaran->nominal) }} @else {{ @ribuanWithComma($payment_list->pembayaran->nominal * -1) }} @endif @endif @if($payment_list->pembayaran_pos_id) {{ @ribuanWithComma($payment_list->pembayaranPOS->nominal) }} @endif {{ ribuanWithComma($payment_list->nominal) }} @php $total += $payment_list->nominal; $total_per_payment_id += $payment_list->nominal; $total_per_bill += $payment_list->nominal; @endphp {{ date('d-m-Y', strtotime($payment_list->payment_date)) }} {{ $payment_list->pembayaranAr->nama_metode }} {{$payment_list->payment_comment ?? '-'}}
Total {{ ribuanWithComma($total_per_bill) }}
Total (Per Group Payment) {{ ribuanWithComma($total_per_payment_id) }}
Grand Total {{ ribuanWithComma($total) }}
No Data