{{ $invoice->invoice_number }}

@lang('app.menu.payments')

# @lang('app.amount') @lang('app.date') @lang('app.gateway') @lang('app.action') @forelse ($payments as $payment) @if(isset($payment->creditNote)) {{ $payment->creditNote->cn_number }} @else -- @endif {{ currency_format($payment->amount, $payment->currency->id) }} {{ \Carbon\Carbon::parse($payment->paid_on)->translatedFormat(company()->date_format) }} @if ($payment->gateway == 'Offline' && $payment->offlineMethods && $payment->offlineMethods->name) {{ $payment->gateway ? $payment->gateway. ' ('. $payment->offlineMethods->name.')' : '--' }} @else {{ $payment->gateway ? $payment->gateway : '--' }} @endif {{-- If payment done from payment gateway, then payment cannot be removed. --}} @if ((is_null($payment->transaction_id) && is_null($payment->payload_id) && !$invoice->credit_note && $payment->gateway) || ($payment->gateway == 'Offline' || $payment->gateway == '') && !in_array('client', user_roles())) @lang('app.remove') @endif @empty @endforelse