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