@php $c = $invoice->company_snapshot ?? []; $fmt = fn (int $minor) => invoice_money($minor, $invoice->currency); $cityCountry = trim(($c['city'] ?? '').', '.($c['country'] ?? ''), ', '); @endphp
|
@if($logoData) @endif {{ $c['company_name'] ?? 'Company' }}
@if(!empty($c['address_line1'])){{ $c['address_line1'] }}
@endif @if(!empty($c['address_line2'])){{ $c['address_line2'] }} @endif @if($cityCountry){{ $cityCountry }} @endif @if(!empty($c['email'])){{ $c['email'] }} @endif @if(!empty($c['phone'])){{ $c['phone'] }}@endif |
Invoice
|
| Description | Qty | Unit price | Amount |
|---|---|---|---|
| {{ $line->description }} | {{ rtrim(rtrim(number_format($line->quantity, 2), '0'), '.') }} | {{ $fmt((int) $line->unit_price_minor) }} | {{ $fmt((int) $line->line_total_minor) }} |
| {{ $invoice->vat_enabled ? 'Taxable value' : 'Subtotal' }} | {{ $fmt((int) $invoice->subtotal_minor) }} |
| {{ $label }} | {{ $fmt((int) $amount) }} |
| Total tax (20%) | {{ $fmt((int) $invoice->tax_minor) }} |
| Tax | {{ $fmt((int) $invoice->tax_minor) }} |
| Total | {{ $fmt((int) $invoice->total_minor) }} |