@if(!empty($setting->logo_path) && file_exists(public_path('storage/'.$setting->logo_path)))
@endif
|
INVOICE |
{{ $displayNum }}
Original Copy
|
|
{{ $setting->business_name }}
{{ $setting->address }}
@if($setting->phone) Phone: {{ $setting->phone }} @endif @if($setting->email) Email: {{ $setting->email }} @endif @if($setting->website) Website: {{ $setting->website }} @endif @include('admin.invoices.partials._tax-registration-lines', ['invoiceGstNumber' => $invoice->gst_number ?? null]) |
{{-- Amount Due black banner --}}
|
| # | Item & Description | Qty | Price | @if($showLineDiscount)Disc% | @endif @if($taxType === 'exclusive')GST | HST/PST | @endifAmount |
|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $item['description'] }}
@if($itemDesc){!! nl2br(e($itemDesc)) !!} @endif
@if($loop->first && ($linkedItems = $invoice->linkedItemsLabel()))
Item(s): {{ $linkedItems }}
@endif
|
{{ $li['qty'] % 1 == 0 ? (int)$li['qty'] : $li['qty'] }} | ${{ number_format($li['displayRate'], 2) }} | @if($showLineDiscount)@if($li['discPct'] > 0) {{ number_format($li['discPct'], 0) }}% @else — @endif | @endif @if($taxType === 'exclusive')
@if($li['gstRate'] > 0 || ($li['gstRate'] + $li['pstRate'] === 0.0 && ($item['tax_rate'] ?? 0) > 0))
${{ number_format($li['gstAmt'], 2) }} {{ number_format($li['gstRate'] + $li['pstRate'] === 0.0 ? ($item['tax_rate'] ?? 0) : $li['gstRate'], 0) }}% @else — @endif |
@if($li['pstRate'] > 0)
${{ number_format($li['pstAmt'], 2) }} {{ number_format($li['pstRate'], 0) }}% @else — @endif |
@endif
${{ number_format($li['rowAmt'], 2) }} |
|
@if($invoice->notes)
Terms & Conditions
@php
$notesContent = $invoice->notes;
// If it's plain text (no HTML tags), convert newlines to $notesHtml = (strip_tags($notesContent) === $notesContent) ? nl2br(e($notesContent)) : $notesContent; @endphp {!! $notesHtml !!}
@endif
@php
$termsContent = $setting->terms_conditions ?? '';
$termsHtml = (strip_tags($termsContent) === $termsContent)
? nl2br(e($termsContent))
: $termsContent;
@endphp
@if($termsContent)
{!! $termsHtml !!}
@else
Please make E-Transfer Payment at {{ $setting->email }}
@endif
|
{{-- Right: Summary table --}}
* $ {{ numberToWords($totalRounded) }} Only
|
||||||||||||||||||