@forelse($payments as $payment) @php $count_child_payments = isset($payment->child_payments) ? count($payment->child_payments) : 0; @endphp @include('contact.partials.payment_row', compact('payment', 'count_child_payments')) @if($count_child_payments > 0) @foreach($payment->child_payments as $child_payment) @include('contact.partials.payment_row', [ 'payment' => $child_payment, 'count_child_payments' => 0, 'parent_payment_ref_no' => $payment->payment_ref_no ]) @endforeach @endif @empty @endforelse
@lang('lang_v1.paid_date') @lang('purchase.ref_no') @lang('sale.amount') @lang('account.payment_for') @lang('account.payer_account') @lang('account.recipient_account') @lang('messages.action')
@lang('purchase.no_records_found')
{{ $payments->links() }}