@if($invoice->invoice_type === 'proforma')
PROFORMA
@endif
{{-- Header --}}
@php $logo = \App\Models\Setting::get('company_logo'); $companyName = \App\Models\Setting::get('company_name', 'JointaSoft'); @endphp @if(!empty($logo) && file_exists(public_path($logo))) Logo @else
{{ $companyName }}
@endif
{{ \App\Models\Setting::get('company_address') }}
Phone: {{ \App\Models\Setting::get('company_phone') }} | Email: {{ \App\Models\Setting::get('company_email') }}
{{ $invoice->getTypeLabel() }}
# {{ $invoice->invoice_number }}

@if($invoice->status === 'paid') ✓ Paid @elseif($invoice->status === 'due') Due @elseif($invoice->status === 'partial') Partial @elseif($invoice->status === 'pending') Pending @else Cancelled @endif

@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 --}} @foreach($invoice->items as $i => $item) @endforeach @if($invoice->tax > 0 || true) {{-- Always show tax row like in reference --}} @endif
# Description Product Price Qty Sub Total
{{ $i + 1 }} {{ $item->description }} {{ number_format($item->amount, 2) }} {{ $invoice->currency }} 1.00 {{ number_format($item->amount, 2) }} {{ $invoice->currency }}
Sub Total {{ number_format($invoice->subtotal, 2) }} {{ $invoice->currency }}
Total Tax {{ number_format($invoice->tax, 2) }} {{ $invoice->currency }}
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')) @if(\App\Models\Setting::get('bank_account_number_2')) @endif
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') }}
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') }}
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
QR Code
{{-- Footer --}}