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

{{ $creditNote->cn_number }}

{{ ucwords($creditNote->client->name) }}

{{ ucwords($creditNote->client->clientDetails->company_name) }}

@lang('app.lastLogin') @if (!is_null($creditNote->client->last_login)) {{ $creditNote->client->last_login->timezone($global->timezone)->format($global->date_format . ' ' . $global->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_formatter($payment->amount, $payment->currency->currency_symbol) }} {{ \Carbon\Carbon::parse($payment->created_at)->format($global->date_format) }} @if ($deleteInvoicePermission == 'all' || ($deleteInvoicePermission == 'added' && $payment->added_by == user()->id)) @lang('app.remove') @else -- @endif @empty @endforelse