{{-- On-screen copy of the PDF (pdf/quote.blade.php, pdf/invoice.blade.php). Vars: $doc (Quote|Invoice), $kind ('quote'|'invoice'), optional $payMethods --}} @php $isQuote = $kind === 'quote'; $brand = \App\Services\MailComposer::brand(); $ntn = config('infotics.billing.ntn'); $qty = fn ($v) => rtrim(rtrim(number_format((float) $v, 2), '0'), '.'); $pct = $qty($doc->tax_percent); @endphp
INFOTICS Academy{{ $brand['address'] }}
{{ $brand['email'] }} · {{ $brand['phone'] }}@if($ntn) · NTN {{ $ntn }}@endif

{{ $isQuote ? 'QUOTATION' : 'INVOICE' }}

{{ $doc->number }}
{{ $isQuote ? 'Prepared for' : 'Billed to' }}
{{ $doc->customer_name }} @if($doc->company){{ $doc->company }}@endif {{ $doc->customer_email }}@if($doc->customer_phone) · {{ $doc->customer_phone }}@endif
@if($isQuote)
Date
{{ ($doc->sent_at ?? $doc->created_at)->format('d M Y') }}
Valid until
{{ $doc->valid_until?->format('d M Y') ?? '—' }}
@else
Issue date
{{ $doc->issue_date?->format('d M Y') }}
Due date
{{ $doc->due_date?->format('d M Y') ?? '—' }}
Status
@endif
@if($isQuote && $doc->title)

{{ $doc->title }}

@endif
@foreach($doc->items as $it) @endforeach
{{ $isQuote ? 'Item' : 'Description' }}QtyUnit priceAmount
{{ $it->description }}{{ $qty($it->quantity) }}{{ money2($it->unit_price) }}{{ money2($it->amount) }}
@if($isQuote) @if($doc->terms)
Terms & conditions
{!! nl2br(e($doc->terms)) !!}
@endif @else
How to pay
@forelse(($payMethods ?? []) as $m)

• {{ $m }}

@empty

Payment details are configured in Settings.

@endforelse

Use invoice number {{ $doc->number }} as the payment reference.

@endif
@if((float) $doc->discount > 0)@endif @if((float) $doc->tax_amount > 0)@endif @unless($isQuote) @if((float) $doc->amount_paid > 0)@endif @endunless
Subtotal{{ money2($doc->subtotal) }}
Discount− {{ money2($doc->discount) }}
Tax ({{ $pct }}%){{ money2($doc->tax_amount) }}
Total{{ money2($doc->total) }}
Paid{{ money2($doc->amount_paid) }}
Balance due{{ money2($doc->balance()) }}
@if($doc->notes)

Notes: {!! nl2br(e($doc->notes)) !!}

@endif