@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'A/P Payment List') @section('css') @endsection @section('content')
@php $filter_date = $_GET['payment_date_filter'] ?? ''; $company_id = $_GET['company_id'] ?? ''; @endphp Print AP Payment List
@if($payments) @foreach($payments as $company => $payments) @php $total_debt_company = 0; $total_paid_company = 0; @endphp @foreach($payments as $group_invoice => $payment) @php $total_debt_invoice = 0; $total_paid_invoice = 0; @endphp @foreach($payment as $item_payment) @endforeach @endforeach @endforeach @else @endif
A/P Date Doc. Number Payment ID Balance Paid Amount Remaining Balance Pay-Date Payment Method Comment Action
@if($company) {{ $company }} @else Empty Recipient @endif
{{ date('d-m-Y', strtotime($item_payment->accountPayable->invoice_date)) }} {{ $item_payment->accountPayable->document_no }} {{ $item_payment->id }} {{ ribuanWithComma($item_payment->accountPayable->nett_balance - $total_paid_invoice) }} {{ ribuanWithComma($item_payment->payment_amount) }} @php $total_paid_invoice += $item_payment->payment_amount; $total_paid_company += $item_payment->payment_amount; @endphp {{ ribuanWithComma($item_payment->accountPayable->nett_balance - $total_paid_invoice) }} {{ date('d-m-Y', strtotime($item_payment->transaction_date)) }} {{ @$item_payment->pembayaranAp->nama_metode }} {{ $item_payment->payment_comment }}
Sub Total {{ ribuanWithComma($total_paid_invoice) }} @php $total_debt_company += ($item_payment->accountPayable->nett_balance - $total_paid_invoice); @endphp {{ ribuanWithComma($item_payment->accountPayable->nett_balance - $total_paid_invoice) }}
Total {{ ribuanWithComma($total_paid_company) }} {{ ribuanWithComma($total_debt_company) }}
No Data
{{-- -------------------------------------------------------------- Modal AR Invoice List -------------------------------------------------------------- --}} @endsection @section('js') @endsection