Invoice
Company Information
@if($company && $company->logo_path && file_exists(public_path($company->logo_path))) @php $logo = base64_encode(file_get_contents(public_path($company->logo_path))); $ext = pathinfo(public_path($company->logo_path), PATHINFO_EXTENSION); @endphp Company Logo @else No Logo @endif
Name: {{ $company->company_name ?? 'N/A' }}
Address: {{ $company->address ?? 'N/A' }}
Tel No: {{ $company->phone ?? 'N/A' }}
Email: {{ $company->email ?? 'N/A' }}
Website: {{ $company->website ?? 'N/A' }}
VAT No: {{ $company->vat_no ?? 'N/A' }}
TIN No: {{ $company->tax_id ?? 'N/A' }}
Currency: USD
Customer Information
Customer Name: {{ $invoice->customer->customer_account ?? '—' }}
Customer Code: {{ $invoice->customer->customer_code ?? '—' }}
Address: {{ $invoice->customer->address ?? '—' }}
Email: {{ $invoice->customer->email ?? '—' }}
Phone: {{ $invoice->customer->contact_1 ?? '—' }}
Contact Person: {{ $invoice->contact_person ?? '—' }}
City: {{ $invoice->customer->city ?? '—' }}
Province: {{ $invoice->customer->province ?? '—' }}
VAT No: {{ $invoice->customer->vat ?? '—' }}
TIN No: {{ $invoice->customer->tin ?? '—' }}
Invoice #: {{ $invoice->invoice_number }}
Invoice Date: {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d M Y') }}
Order #: {{ $invoice->order_number ?? 'N/A' }}
Due Date: {{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d M Y') : '—' }}
Delivery Date: {{ $invoice->delivery_date ? \Carbon\Carbon::parse($invoice->delivery_date)->format('d M Y') : '—' }}
@if($invoice->due_date)
Delivery Note #: DN-{{ substr($invoice->invoice_number, 3) }}
@endif
@forelse($invoice->items ?? [] as $item) @empty @endforelse
Item Qty Price Disc % Total
{{ $item->item }} {{ number_format($item->quantity, 2) }} ${{ number_format($item->unit_price, 2) }} {{ number_format($item->discount, 2) }}% ${{ number_format($item->line_total, 2) }}
No invoice items found
Received by: ______________________________
Date: ______________________________
Signed: ______________________________
Exclusive Total: ${{ number_format($invoice->subtotal, 2) }}
Tax: ${{ number_format($invoice->tax_amount, 2) }}
Discount: -${{ number_format($invoice->discount_total, 2) }}
Inclusive Total: ${{ number_format($invoice->total, 2) }}
Banking Details
@php $bankDetails = $company->bank_details ?? []; @endphp @forelse($bankDetails as $bank)
Bank Name: {{ $bank['bank_name'] ?? '' }}
Account Name: {{ $bank['account_name'] ?? '' }}
Account Number: {{ $bank['account_number'] ?? '' }}
Branch: {{ $bank['branch'] ?? '' }}

@empty
No banking details available
@endforelse