@php $company = $invoice->company_snapshot ?? []; $logoUrl = $invoice->logoPath() ? route('woo.public.logo', $invoice->public_token) : null; $fmt = fn (int $minor) => invoice_money($minor, $invoice->currency); @endphp @foreach($invoice->lines as $line) @endforeach
Description Qty Unit Amount
{{ $line->description }} {{ number_format($line->quantity, 2) }} {{ $fmt((int) $line->unit_price_minor) }} {{ $fmt((int) $line->line_total_minor) }}
{{ $invoice->vat_enabled ? 'Taxable value' : 'Subtotal' }}
{{ $fmt((int) $invoice->subtotal_minor) }}
@if($invoice->vat_enabled && (int) $invoice->tax_minor > 0) @foreach($invoice->vatBreakdown() as $label => $amount)
{{ $label }}
{{ $fmt((int) $amount) }}
@endforeach
Total tax (20%)
{{ $fmt((int) $invoice->tax_minor) }}
@elseif((int) $invoice->tax_minor > 0)
Tax ({{ number_format((float) $invoice->tax_rate, 2) }}%)
{{ $fmt((int) $invoice->tax_minor) }}
@endif
{{ $invoice->vat_enabled && $invoice->vat_inclusive ? 'Total (tax incl.)' : 'Total' }}
{{ $fmt((int) $invoice->total_minor) }}
@if($invoice->notes)

Notes

{{ $invoice->notes }}

@endif @if(!empty($showPay) && $invoice->isPayable()) @php $balanceMinor = $invoice->balanceMinor(); $balanceMajor = number_format($balanceMinor / 100, 2, '.', ''); @endphp
@csrf @if($invoice->amountPaidMinor() > 0)

Paid so far: {{ $fmt((int) $invoice->amountPaidMinor()) }} · Balance due: {{ $fmt((int) $balanceMinor) }}

@endif

Pay the full balance, or enter less to make a part payment.

Secured by Paystack · Powered by Ladill Pay

@endif @if($invoice->status === \App\Models\Invoice::STATUS_PAID)
Paid
@elseif($invoice->isPartiallyPaid())
Partially paid — balance {{ $fmt((int) $invoice->balanceMinor()) }}
@endif