@php $deleteInvoicePermission = user()->permission('delete_invoices'); @endphp

{{ $creditNote->cn_number }}

{{ $creditNote->client->name_salutation }}

{{ $creditNote->client->clientDetails->company_name }}

@lang('app.lastLogin') @if (!is_null($creditNote->client->last_login)) {{ $creditNote->client->last_login->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }} @else -- @endif

@lang('app.creditedInvoices')

@lang('app.invoiceNumber') # @lang('app.credit-notes.amountCredited') @lang('app.date') @lang('app.action') @forelse ($payments as $payment) {{ $payment->invoice->invoice_number }} {{ currency_format($payment->amount, $payment->currency->id) }} {{ \Carbon\Carbon::parse($payment->created_at)->translatedFormat(company()->date_format) }} @if ($deleteInvoicePermission == 'all' || ($deleteInvoicePermission == 'added' && $payment->added_by == user()->id)) @lang('app.remove') @else -- @endif @empty @endforelse