@extends('layouts.app') @section('title', 'Credit Notes') @section('content') {{-- Header --}}

Credit Notes

Billing reversals and corrections

@if($pendingCount > 0) {{ $pendingCount }} pending approval @endif
{{-- Filters — patient search dominates; status + dates stay compact (Issue #15). --}}
@if(request()->hasAny(['search','status','from','to'])) Clear @endif
{{-- Table --}}
@forelse($creditNotes as $cn) @php $sc = ['pending'=>'badge-warning','approved'=>'badge-info','applied'=>'badge-success','rejected'=>'badge-danger']; @endphp @empty @endforelse
CN Number Patient Invoice Reason Amount (KES) Raised by Date Status Actions
{{ $cn->credit_note_number }}

{{ $cn->patient->full_name ?? '|' }}

{{ $cn->patient->mrn ?? '' }}

{{ $cn->invoice?->invoice_number ?? '|' }} {{ $cn->reason }} {{ number_format($cn->amount) }} {{ $cn->requester->name ?? '|' }} {{ $cn->created_at->format('d M Y') }} {{ ucfirst($cn->status) }} View
No credit notes found.
{{ $creditNotes->withQueryString()->links() }}
@endsection