@lang('messages.sameCurrencyInvoiceNote')
@if ($nonPaidInvoices->count() > 0)

{{ $creditNote->cn_number }}

{{ $creditNote->client->name }}

{{ $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.client') @lang('app.unpaid') @lang('app.menu.invoices')

@lang('app.invoiceNumber') # @lang('app.credit-notes.invoiceDate') @lang('app.credit-notes.invoiceAmount') @lang('app.credit-notes.invoiceBalanceDue') @lang('app.credit-notes.amountToCredit') @forelse ($nonPaidInvoices as $invoice) @php $amountDue = $invoice->amountDue(); @endphp @if ($amountDue > 0) {{ $invoice->invoice_number }} {{ $invoice->issue_date->translatedFormat(company()->date_format) }} {{ currency_format($invoice->total, $invoice->currency->id) }} {{ currency_format($amountDue, $invoice->currency->id) }} @endif @empty @endforelse
@lang('app.credit-notes.amountToCredit'):
{{ $invoice->currency->currency_symbol }} 0.00
@lang('app.credit-notes.remainingAmount'):
{{ $invoice->currency->currency_symbol }} {{ number_format((float) $creditNote->creditAmountRemaining(), 2, '.', '') }}
@lang('app.apply') @lang('app.cancel') @else @endif