@extends('admin.layouts.dashboard') @section('title', 'Invoice ' . $invoice->invoice_number) @push('head') @include('admin.invoices._invoice-form-styles') @endpush @section('content')
@if($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 banner --}}
|
| # | Item & Description | Unit | Qty | Price | @if($showLineDiscount)Disc% | @endif @if($taxType === 'exclusive')GST | HST/PST | @endifAmount |
|---|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} |
#{{ $i + 1 }}
Item
Unit
{{ $item['unit'] ?? '—' }}
{{ $item['description'] }}
@if($itemDesc || $linkedItems)
@if($itemDesc){!! nl2br(e($itemDesc)) !!}@endif
@if($linkedItems)
@if($itemDesc)
@endif
@endif Item(s): {{ $linkedItems }} @endif |
{{ $item['unit'] ?? '—' }} | {{ $qtyDisplay }} | ${{ 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($gstRateShow, 0) }}% @else — @endif {{ $gstRateShow > 0 ? number_format($gstRateShow, 0) . '%' : '—' }} |
@if($li['pstRate'] > 0)
${{ number_format($li['pstAmt'], 2) }} {{ number_format($li['pstRate'], 0) }}% @else — @endif {{ $li['pstRate'] > 0 ? number_format($li['pstRate'], 0) . '%' : '—' }} |
@endif
{{ ($showLineDiscount && $li['discAmt'] > 0) ? 'Disc -$' . number_format($li['discAmt'], 2) : '' }} {{ ($taxType !== 'inclusive' && $li['gstAmt'] > 0) ? 'GST +$' . number_format($li['gstAmt'], 2) : '' }} {{ ($taxType !== 'inclusive' && $li['pstAmt'] > 0) ? 'HST +$' . number_format($li['pstAmt'], 2) : '' }} ${{ number_format($li['rowAmt'], 2) }} |
| Subtotal | ${{ number_format($itemsSubtotal, 2) }} | |||||||
| Discount | -${{ number_format($lineDiscountTotal, 2) }} | |||||||
| Overall Discount{{ $invoice->discount_type === 'percent' ? ' ('.$invoice->discount_value.'%)' : '' }} | -${{ number_format($overallDiscount, 2) }} | |||||||
| {{ $gstLabel }} | ${{ number_format($gstAmount, 2) }} | |||||||
| {{ $pstLabel }} | ${{ number_format($pstAmount, 2) }} | |||||||
| Rounded Off | {{ ($roundedOff >= 0 ? '+' : '') . '$' . number_format($roundedOff, 2) }} | |||||||
| TOTAL | ${{ number_format($totalRounded, 2) }} |
|
@if($invoice->notes)
Terms & Conditions
@php
$notesContent = $invoice->notes;
$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 (desktop) --}}
* $ {{ numberToWordsShow($totalRounded) }} Only
|