@forelse ($child_payments as $payment) @empty @endforelse
@lang('purchase.ref_no') @lang('lang_v1.paid_on') @lang('sale.amount') @lang('contact.contact') @lang('lang_v1.payment_method') @if($child_payments->first()->transaction->type == 'purchase') @lang('purchase.ref_no') @else @lang('sale.invoice_no') @endif @lang('messages.action')
{{ $payment->payment_ref_no }} {{ @format_datetime($payment->paid_on) }} {{ $payment->amount }} {{$payment->transaction->contact->name}} {{ $payment_types[$payment->method] ?? '' }} @if($payment->transaction->type != 'opening_balance') @if($payment->transaction->type == 'sell') {{$payment->transaction->invoice_no}} @else {{$payment->transaction->ref_no}} @endif @else @lang('lang_v1.opening_balance_payments') @endif
@lang('purchase.no_records_found')