@php $logo='data:image/png;base64,'.base64_encode(file_get_contents(public_path('images/morbrick-brand.png'))); @endphp
@if(in_array($proforma->status,['draft','review','void']))
{{ strtoupper($proforma->status) }}
@endif
@include('pdf.partials.company-letterhead')

PROFORMA INVOICE.

@if($proforma->lpo_number)@endif
DATED.{{ $proforma->issued_at->format('d-M-y') }}
PI NO.{{ $proforma->proforma_number }}
CUSTOMER ID.{{ $proforma->customer_reference ?: $proforma->customer->customer_number }}
VALIDITY.{{ $proforma->issued_at->diffInDays($proforma->valid_until) }} Days
PAYMENT MODE.{{ $proforma->payment_mode }}
KRA PIN.{{ $company['kra_pin'] }}
LPO NO.{{ $proforma->lpo_number }}
OUR REF:
{{ $proforma->customer->name }}
{!! nl2br(e($proforma->customer->billing_address)) !!}
{{ $proforma->customer->phone }}
{{ $proforma->customer->email }}
{{ $proforma->scope_title ?: 'PROJECT SCOPE OF WORK.' }}@if($proforma->subject)
{{ $proforma->subject }}@endif
@foreach($proforma->items as $item)@endforeach
No.Item DescriptionUnitArea / QtyRate Exclusive VATDiscountAmount KES.
{{ $loop->iteration }}{!! nl2br(e($item->description)) !!}{{ $item->unit }}{{ number_format((float)$item->quantity,2) }}{{ number_format((float)$item->unit_price,2) }}{{ (float)$item->discount_rate > 0 ? number_format((float)$item->discount_rate,2).'%' : '—' }}{{ number_format(((float)$item->line_total-(float)$item->tax_amount),2) }}
@if((float)$proforma->discount_amount>0)@endif
Sub Total.Ksh{{ number_format((float)$proforma->subtotal,2) }}
Discount.Ksh- {{ number_format((float)$proforma->discount_amount,2) }}
VAT.Ksh{{ number_format((float)$proforma->vat_amount,2) }}
Total Amount.Ksh{{ number_format((float)$proforma->total_amount,2) }}
This proforma invoice is a commercial offer and is not a tax invoice, payment receipt, or evidence of eTIMS submission. A commercial invoice will be issued after acceptance and conversion.