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

Credit Notes

Create New Credit Note
@if(session('success')) @endif
@forelse($creditNotes as $cn) @empty @endforelse
CN Number Customer Date Total Amount Balance Status Actions
{{ $cn->credit_note_number }} {{ $cn->customer->name }} {{ \Carbon\Carbon::parse($cn->date)->format('d M Y') }} {{ formatCurrency($cn->total) }} {{ formatCurrency($cn->remaining_balance) }} @php $badgeClass = [ 'open' => 'bg-light-primary text-primary', 'applied' => 'bg-light-success text-success', 'refunded' => 'bg-light-info text-info', 'draft' => 'bg-light-secondary text-secondary' ][$cn->status] ?? 'bg-light-secondary text-secondary'; @endphp {{ $cn->status }}
No credit notes found. Create your first credit note.
{{ $creditNotes->links() }}
@endsection