@php use App\Support\DocumentBrand; /** @var \App\Support\InvoiceDocument $invoice */ $settings = $businessSettings ?? []; ['brand' => $brand, 'brandDark' => $brandDark, 'brandTint' => $brandTint] = DocumentBrand::colors($settings); $logoPath = DocumentBrand::logoPath($settings['business_logo'] ?? null); [$pillClass, $pillText] = $invoice->pill(); $showQty = collect($invoice->items)->contains(fn ($item) => filled($item['qty'] ?? null)); $showRate = collect($invoice->items)->contains(fn ($item) => filled($item['rate'] ?? null)); $descWidth = 100 - 6 - 24 - ($showQty ? 10 : 0) - ($showRate ? 20 : 0); @endphp
|
@if ($logoPath)
{{ $settings['business_name'] }} @endif @if (!empty($settings['business_address'])){{ $settings['business_address'] }} @endif @if (!empty($settings['business_phone']) || !empty($settings['business_email'])){{ implode(' · ', array_filter([$settings['business_phone'] ?? null, $settings['business_email'] ?? null])) }} @endif |
{{ $invoice->title }} {{ $invoice->number }} {{ $pillText }} |
|
{{ strtoupper($label) }} {{ $value }} |
@endforeach
|
{{ $invoice->partyLabel }} {{ $invoice->partyName }} @foreach ($invoice->partyLines as $line){{ $line }} @endforeach |
DETAILS
|
| # | DESCRIPTION | @if ($showQty)QTY | @endif @if ($showRate)RATE | @endifAMOUNT |
|---|---|---|---|---|
| {{ str_pad((string) $loop->iteration, 2, '0', STR_PAD_LEFT) }} |
{{ $item['title'] }} @if (filled($item['details'] ?? null)){!! nl2br(e($item['details'])) !!} @endif @if (filled($item['meta'] ?? null)){{ $item['meta'] }} @endif |
@if ($showQty)
{{ $item['qty'] ?? '' }} | @endif @if ($showRate){{ $item['rate'] ?? '' }} | @endif{{ $item['amount'] }} |
|
IN WORDS
{{ $invoice->noteTitle }}
{{ $invoice->noteText }}
|
|
PAYMENTS RECEIVED
| DATE | METHOD | REFERENCE | AMOUNT |
|---|---|---|---|
| {{ $payment['date'] }} | {{ $payment['method'] }} | {{ $payment['reference'] }} | {{ $payment['amount'] }} |
{{ $table['heading'] }}
| {{ $header }} | @endforeach
|---|
| !$table['headers'] && $loop->first, 'b' => !$table['headers'] && !$loop->first]) @if (!$table['headers'] && $loop->first) style="width: 34%;" @endif>{{ $cell }} | @endforeach
{{ $block['heading'] }}
{!! nl2br(e($block['text'])) !!}
@endforeach|
Thank you for choosing {{ $settings['business_name'] ?? 'us' }}. This invoice was generated electronically and is valid without a signature. Please quote {{ $invoice->reference }} in any correspondence. @if ($invoice->footnote) {{ $invoice->footnote }} @endif @if (!empty($settings['business_email']) || !empty($settings['business_phone'])) {{ implode(' · ', array_filter([$settings['business_email'] ?? null, $settings['business_phone'] ?? null])) }} @endif |