Invoices / {{ $invoice->invoice_number }}

Invoice: {{ $invoice->invoice_number }} {{ $invoice->status->label() }}

Back to Invoices
@if (session('success'))
{{ session('success') }}
@endif
Billed To
{{-- The owner is a tenant or a customer, never both; the invoice knows which. --}}
{{ $invoice->billingOwnerName() }}
@if ($invoice->isTenantOwned())
Tenant ID: #{{ $invoice->tenant_id }}
{{ $invoice->tenant?->email }}
@else
Customer ID: #{{ $invoice->customer_id }}
{{ $invoice->customer?->email }}
@endif
Invoice Date
{{ $invoice->created_at->format('M d, Y') }}
Due Date
{{ $invoice->due_date->format('M d, Y') }}
Line Items
@foreach($invoice->items as $item) @endforeach
Description Qty Unit Price Total
{{ $item->description }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->total, 2) }}
Subtotal: {{ number_format($invoice->subtotal, 2) }} {{ $invoice->currency }}
@if($invoice->discount_amount > 0)
Discount: -{{ number_format($invoice->discount_amount, 2) }} {{ $invoice->currency }}
@endif
Total: {{ number_format($invoice->total, 2) }} {{ $invoice->currency }}

Payment Transactions

@if($invoice->payments->isNotEmpty())
@foreach($invoice->payments as $payment)
{{ $payment->gateway }}
{{ $payment->transaction_reference }}
{{ $payment->paid_at?->format('M d, Y H:i') }}
{{ number_format($payment->amount, 2) }} {{ $payment->currency }}
{{ $payment->status->label() }} @if($payment->gateway === 'manual' && $payment->status === \App\Enums\PaymentStatus::PENDING)
@csrf
@csrf
@endif
@endforeach
@else

No payment transactions recorded for this invoice.

@endif
@if(!$invoice->isPaid())

Bank Payment Review

Only approve a pending customer bank submission after confirming the transfer.

@else
Invoice Fully Settled
Paid at: {{ $invoice->paid_at?->format('M d, Y H:i:s') }}
@endif