@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->timezone)->format($global->date_format . ' ' . $global->time_format) }} @else -- @endif

@lang('messages.sameCurrencyInvoiceNote')

@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->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, '.', '') }}
@else @endif @lang('app.apply') @lang('app.cancel')