@php $company ??= \App\Models\CompanySetting::current(); $bankingLines = $company->bankingDetailsLines($invoice->invoice_number); $legalIdentityLines = $company->legalIdentityLines(); $fallbackLogoPath = public_path('images/tarnova-logo.png'); $logoDataUri = $company->logoDataUri() ?: (file_exists($fallbackLogoPath) ? 'data:image/png;base64,'.base64_encode(file_get_contents($fallbackLogoPath)) : null); $documentTitle = $company->tax_vat_number ? 'Tax Invoice' : 'Invoice'; @endphp
{{ strtoupper($company->business_name) }}
@endif@if ($company->email) {{ $company->email }} @endif @if ($company->phone) {{ $company->email ? ' - ' : '' }}{{ $company->phone }} @endif
@foreach ($legalIdentityLines as $line){{ $line['label'] }}: {{ $line['value'] }}
@endforeach{{ $invoice->invoice_number }}
{{ $invoice->statusLabel() }}{{ $invoice->client->name }}
@foreach ($invoice->client->documentDetails() as $detail){{ $detail['label'] }}: {{ $detail['value'] }}
@endforeach{{ $company->business_name }}
@if ($company->email){{ $company->email }}
@endif @if ($company->phone){{ $company->phone }}
@endif @if ($company->address){!! nl2br(e($company->address)) !!}
@endif @foreach ($legalIdentityLines as $line){{ $line['label'] }}: {{ $line['value'] }}
@endforeach| Description | Qty | Price | Total |
|---|---|---|---|
| {{ $item->description }} | {{ $item->quantity }} | R {{ number_format($item->unit_price, 2) }} | R {{ number_format($item->line_total, 2) }} |
Please use invoice {{ $invoice->invoice_number }} as the payment reference.