@extends('layouts.app') @section('title', 'Credit notes') @section('content')

Credit notes

{{ $notes->total() }} credit note(s) matching your filters.

+ New credit note
@include('components.kpi', ['label' => 'Total credited', 'value' => money($totals['issued']), 'variant' => 'info']) @include('components.kpi', ['label' => 'Applied', 'value' => money($totals['applied']), 'variant' => 'good']) @include('components.kpi', ['label' => 'Awaiting approval', 'value' => money($totals['pending']), 'variant' => $totals['awaiting'] ? 'warn' : '']) @include('components.kpi', ['label' => 'In queue', 'value' => (string) $totals['awaiting']])
@if ($notes->isEmpty()) @include('components.empty-state', [ 'icon' => '💳', 'title' => 'No credit notes yet', 'message' => 'Raise one to correct a billing error, goodwill gesture or returned item.', ]) @else @foreach ($notes as $note) @endforeach
Credit noteCustomerInvoiceType ReasonAmountIssuedStatus
{{ $note->credit_note_number }} {{ $note->customer?->display_name ?: '—' }} @if ($note->invoice) {{ $note->invoice->invoice_number }} @else — @endif {{ title_case_words($note->type) }} {{ \Illuminate\Support\Str::limit($note->reason, 46) }} {{ money($note->amount) }} {{ $note->issue_date?->format('d M Y') }} {{ title_case_words($note->status) }} Open
@endif
@if ($notes->hasPages())
{{ $notes->links('partials.pagination') }}
@endif
@endsection