@php $money = fn ($value) => 'R '.number_format((float) $value, 2); @endphp @can('view-financial-reports') Export CSV Report @endcan @can('manage-credit-notes') Create credit note @endcan

Credit notes

@if ($creditNotes->isEmpty()) @else
@foreach ($creditNotes as $creditNote) @endforeach
Credit note Invoice Client Type Status Amount Action
{{ $creditNote->credit_note_number }} Issue date {{ $creditNote->issue_date->format('d M Y') }} @if ($creditNote->invoice) {{ $creditNote->invoice->invoice_number }} @else Unavailable @endif {{ $creditNote->client?->name ?? 'Client unavailable' }} {{ $creditNote->typeLabel() }} {{ $creditNote->statusLabel() }} {{ $money($creditNote->amount) }} View details
{{ $creditNotes->links() }}
@endif