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

{{ $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_setting()->timezone)->format(global_setting()->date_format . ' ' . global_setting()->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->format(global_setting()->date_format) }} {{ currency_formatter($invoice->total, $invoice->currency->currency_symbol) }} {{ currency_formatter($amountDue, $invoice->currency->currency_symbol) }} @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