@extends('layouts.print') @section('title', $note->credit_note_number) @section('kind', 'Credit note') @section('number', $note->credit_note_number) @section('status', title_case_words($note->status)) @section('content')

Issued to

{{ $note->customer?->display_name }}
{{ $note->customer?->customer_number }}
@if ($note->customer?->billing_address)
{{ $note->customer->billing_address }}
@endif @if ($note->customer?->city)
{{ $note->customer->city }}
@endif @if ($note->customer?->email)
{{ $note->customer->email }}
@endif

Against invoice

@if ($note->invoice)
{{ $note->invoice->invoice_number }}
Issued {{ $note->invoice->issue_date?->format('d M Y') }}
Invoice total {{ money($note->invoice->total) }}
@else
No invoice recorded
@endif
Issue date{{ $note->issue_date?->format('d M Y') }}
Type{{ title_case_words($note->type) }}
Status{{ title_case_words($note->status) }}
@if ($note->applied_at)
Applied{{ $note->applied_at->format('d M Y') }}
@endif
DescriptionTypeCredit amount
{{ $note->reason }} {{ title_case_words($note->type) }} {{ money($note->amount) }}
Total credit{{ money($note->amount) }}
@if ($note->invoice)

Effect on {{ $note->invoice->invoice_number }}

Invoice total{{ money($note->invoice->total) }}
Credit applied−{{ money($note->invoice->credit_applied) }}
Paid−{{ money($note->invoice->amount_paid) }}
Balance due{{ money($note->invoice->balance) }}
@endif

This credit note reduces the amount payable on the invoice shown above. @if ($note->status === 'applied')It has been applied.@else It has not yet been applied.@endif

@endsection