{{-- Header --}}
@if($invoice->invoice_type === 'proforma')
⚠ This is a Proforma Invoice — not a demand for payment. Subject to change before final invoice is issued.
@endif
{{-- Billed To + Dates --}}
Billed To
{{ $invoice->client->name }}
@if($invoice->client->company_name)
{{ $invoice->client->company_name }}
@endif
@if($invoice->client->tax_number)
VRN: {{ $invoice->client->tax_number }}
@endif
{{ $invoice->client->email }}
@if($invoice->client->phone)
{{ $invoice->client->phone }}
@endif
@if($invoice->client->address)
{{ $invoice->client->address }}{{ $invoice->client->city ? ', '.$invoice->client->city : '' }}
@endif
Invoice Details
Invoice No: {{ $invoice->invoice_number }}
Issue Date: {{ $invoice->invoice_date->format('d M Y') }}
Due Date: {{ $invoice->due_date->format('d M Y') }}
Currency: {{ $invoice->currency }}
{{-- Line Items --}}
| # |
Description |
Product Price |
Qty |
Sub Total |
@foreach($invoice->items as $i => $item)
| {{ $i + 1 }} |
{{ $item->description }} |
{{ number_format($item->amount, 2) }} {{ $invoice->currency }} |
1.00 |
{{ number_format($item->amount, 2) }} {{ $invoice->currency }} |
@endforeach
| Sub Total |
{{ number_format($invoice->subtotal, 2) }} {{ $invoice->currency }} |
@if($invoice->tax > 0 || true) {{-- Always show tax row like in reference --}}
| Total Tax |
{{ number_format($invoice->tax, 2) }} {{ $invoice->currency }} |
@endif
| Grand Total |
{{ number_format($invoice->total, 2) }} {{ $invoice->currency }} |
@if($invoice->notes)
Notes
{{ $invoice->notes }}
@endif
{{-- Payment Instructions and QR Code --}}
Payment Instructions
@if(\App\Models\Setting::get('bank_account_number'))
Bank Account 1:
Bank Name: {{ \App\Models\Setting::get('bank_name') }}
Account Name: {{ \App\Models\Setting::get('bank_account_name') }}
Account Number: {{ \App\Models\Setting::get('bank_account_number') }}
Branch: {{ \App\Models\Setting::get('bank_branch') }} | SWIFT: {{ \App\Models\Setting::get('bank_swift_code') }}
|
@if(\App\Models\Setting::get('bank_account_number_2'))
Bank Account 2:
Bank Name: {{ \App\Models\Setting::get('bank_name_2') }}
Account Name: {{ \App\Models\Setting::get('bank_account_name_2') }}
Account Number: {{ \App\Models\Setting::get('bank_account_number_2') }}
Branch: {{ \App\Models\Setting::get('bank_branch_2') }} | SWIFT: {{ \App\Models\Setting::get('bank_swift_code_2') }}
|
@endif
Terms: {{ \App\Models\Setting::get('terms_conditions', 'Payments should be made through bank Account') }}
@else
Please contact finance for payment instructions.
@endif
|
@php
$qrData = "Bank: " . \App\Models\Setting::get('bank_name', 'Mkombozi Commercial Bank Plc') .
"\nAccount Number: " . \App\Models\Setting::get('bank_account_number', '00120308317601') .
"\nAccount Name: " . \App\Models\Setting::get('bank_account_name', 'JointaSoft') .
"\nAmount: " . number_format($invoice->total, 2) . " " . $invoice->currency;
$qrUrl = "https://api.qrserver.com/v1/create-qr-code/?size=100x100&data=" . urlencode($qrData);
@endphp
Scan & Pay
|
{{-- Footer --}}