@extends('layouts.admin') @section('title', 'Credit Note '.$creditNote->credit_note_number) @section('page-title', 'Credit Note '.$creditNote->credit_note_number) @section('breadcrumbs') Credit Notes chevron_right {{ $creditNote->credit_note_number }} @endsection @section('content')

{{ $creditNote->credit_note_number }}

{{ $creditNote->credit_note_date?->format('M d, Y') ?? 'โ€”' }} ยท {{ $creditNote->status }}

arrow_back Back to list
Invoice
@if($creditNote->invoice) {{ $creditNote->invoice->invoice_number }} @else โ€” @endif
Customer
{{ $creditNote->customer?->name ?? $creditNote->invoice?->customer?->name ?? 'โ€”' }}
Amount
{{ \App\Models\Currency::formatAmount((float) $creditNote->total, $creditNote->currency ?? null) }}
@if($creditNote->items->isNotEmpty())

Line items

@foreach($creditNote->items as $line) @endforeach
Description Qty Rate Amount
{{ $line->description }} {{ $line->quantity }} {{ \App\Models\Currency::formatAmount((float) $line->rate, $creditNote->currency ?? null) }} {{ \App\Models\Currency::formatAmount((float) $line->amount, $creditNote->currency ?? null) }}
@endif
@endsection