@extends('layouts.app') @section('title', 'Raise Credit Note | ' . $invoice->invoice_number) @section('content')
← Back

Raise Credit Note

Invoice {{ $invoice->invoice_number }} · {{ $invoice->patient->full_name ?? '' }}

{{-- Invoice summary --}}

Invoice Summary

Total Charged

KES {{ number_format($invoice->total_amount) }}

Amount Paid

KES {{ number_format($invoice->amount_paid) }}

Balance

KES {{ number_format($invoice->balance) }}

{{-- Line items --}} @foreach($invoice->items->where('total', '>', 0) as $item) @endforeach
# Description Category Total (KES)
{{ $item->id }} {{ $item->description }} {{ $item->category }} {{ number_format($item->total) }}
{{-- Credit note form --}}

Credit Note Details

@if($errors->any())
    @foreach($errors->all() as $e)
  • ▸ {{ $e }}
  • @endforeach
@endif
@csrf
{{-- Specific line item (optional) --}}
{{-- Reason --}}
{{-- Full description --}}
{{-- Amount --}}

Maximum: KES {{ number_format($invoice->total_amount) }}

{{-- Warning --}}

Before submitting:

  • This request will go to a Finance User or Hospital Admin for approval.
  • The credit is not applied to the invoice until it is approved and applied.
  • You cannot approve a credit note you raised (four-eyes rule).
Cancel
@endsection @section('scripts') @endsection