N
{{ $org->name }}
{{ config('nowills.tagline') }}
{{ $org->billing_address ?? $org->address }}
@if ($org->city){{ $org->city }}, @endif{{ $org->country }}
@if ($org->tax_id)Tax ID: {{ $org->tax_id }}
@endif
@if ($org->phone){{ $org->phone }} @endif
@if ($org->billing_email)· {{ $org->billing_email }}@endif
{{ $invoice->type === 'credit_note' ? 'CREDIT NOTE' : 'INVOICE' }}
{{ $invoice->invoice_number }}
| Issued |
{{ $invoice->issue_date->format('d M Y') }} |
| Due |
{{ $invoice->due_date->format('d M Y') }} |
@if ($invoice->period_start)
| Period |
{{ $invoice->period_start->format('d M Y') }} – {{ $invoice->period_end?->format('d M Y') }} |
@endif
| Currency |
{{ $invoice->currency }} |
@if ($invoice->amount_paid >= $invoice->total && $invoice->total > 0)
PAID
@elseif ($invoice->status === 'overdue')
OVERDUE
@elseif ($invoice->amount_paid > 0)
PART PAID
@endif
Billed to
{{ $invoice->customer->display_name }}
{{ $invoice->customer->customer_number }}
{{ $invoice->customer->phone }}
@if ($invoice->customer->email){{ $invoice->customer->email }}
@endif
{{ $invoice->customer->billing_address }}
@if ($invoice->customer->city), {{ $invoice->customer->city }}@endif
@if ($invoice->customer->region), {{ $invoice->customer->region }}@endif
@if ($invoice->service)
Service details
{{ $invoice->service->service_number }}
{{ $invoice->service->plan?->name }}
{{ $invoice->service->speed_label }}
{{ $invoice->service->installation_address }}
@endif
| Description |
Qty |
Unit price |
Amount ({{ $invoice->currency }}) |
@foreach ($invoice->items as $item)
| {{ $item->description }} |
{{ rtrim(rtrim(number_format($item->quantity, 2), '0'), '.') }} |
{{ number_format($item->unit_price, 2) }} |
{{ number_format($item->amount, 2) }} |
@endforeach
Subtotal{{ number_format($invoice->subtotal, 2) }}
@if ($invoice->discount_amount > 0)
Discount−{{ number_format($invoice->discount_amount, 2) }}
@endif
{{-- The column is tax_amount; $invoice->tax does not exist, so this line
never rendered and invoices printed without their tax. --}}
@if ($invoice->tax_amount > 0)
Tax{{ number_format($invoice->tax_amount, 2) }}
@endif
Total{{ $invoice->currency }} {{ number_format($invoice->total, 2) }}
@if ($invoice->credit_applied > 0)
Credit applied−{{ number_format($invoice->credit_applied, 2) }}
@endif
@if ($invoice->amount_paid > 0)
Payments received−{{ number_format($invoice->amount_paid, 2) }}
@endif
Balance due{{ number_format($invoice->balance, 2) }}
@if ($invoice->tax_breakdown)
Tax breakdown
@foreach ((array) $invoice->tax_breakdown as $rate => $amount)
{{ rtrim(rtrim(number_format((float) $rate, 4), '0'), '.') }}% — {{ number_format($amount, 2) }}
@endforeach
@endif
@if ($invoice->payments->count())
Payments received
| Date | Reference | Method | Amount |
@foreach ($invoice->payments as $payment)
| {{ $payment->paid_at?->format('d M Y') }} |
{{ $payment->reference }} |
{{ title_case_words($payment->method) }} |
{{ number_format($payment->amount, 2) }} |
@endforeach
@endif
@if ($invoice->notes)
Notes
{{ $invoice->notes }}
@endif