TAX INVOICE
@isset($company)

{{ $company->name ?? 'Company Name' }}

{{ $company->address_line_1 ?? '' }} @if ($company->address_line_2), {{ $company->address_line_2 }}@endif @if ($company->city), {{ $company->city }}@endif @if ($company->postal_code) - {{ $company->postal_code }}@endif

Mobile: {{ $company->phone ?? 'N/A' }} | Email: {{ $company->email ?? 'N/A' }}

@if ($company->tax_id ?? false)

GSTIN/Tax ID: {{ $company->tax_id }}

@endif @else

[Company Name Placeholder]

[Address Placeholder]

@endisset

@foreach ($record->items as $index => $item) @endforeach {{-- Add 3-4 empty rows for height if the invoice has few items --}} @for ($i = count($record->items); $i < 5; $i++) @endfor {{-- Subtotal Row --}} @if ($record->gst_rate > 0) {{-- CGST Row --}} {{-- SGST Row --}} @endif

Billed To:

{{-- 1. Client Name --}} {{ $record->client->name ?? 'Client Name' }} {{-- 2. Client Address (Using nl2br for line breaks) --}} @if ($record->client->address ?? false)
{!! nl2br(e($record->client->address)) !!} @endif {{-- 3. Client Email --}} @if ($record->client->email ?? false)
Email: {{ $record->client->email }} @endif {{-- 4. Client Tax ID / GSTIN --}} @if ($record->client->tax_id ?? false)
GSTIN: {{ $record->client->tax_id }} @endif

Ref. No.: {{ $record->ref_number ?? 'N/A' }}

Inv No.: {{ $record->invoice_number }}

Date: {{ $record->issue_date->format('d/m/Y') }}

@if ($record->due_date)

Due Date: {{ $record->due_date->format('d/m/Y') }}

@endif
Sr. No. Particular Amount
{{ $index + 1 }}.

{{ $item->description }}

Qty: {{ $item->quantity }} @ {{ number_format($item->amount, 2) }}/- each

@if ($item->url ?? false)

URL: {{ $item->url }}

@endif
{{ number_format($item->quantity * $item->amount, 2) }}/-
Subtotal (Taxable Value) {{ number_format($record->subtotal, 2) }}/-
CGST ({{ number_format($record->gst_rate / 2, 2) }}%) {{ number_format($record->cgst_amount, 2) }}/-
SGST ({{ number_format($record->gst_rate / 2, 2) }}%) {{ number_format($record->sgst_amount, 2) }}/-
TOTAL AMOUNT (Incl. All Taxes) {{ number_format($record->total, 2) }}/-

In words: {{ numberToWords(round($record->total, 2)) }} Only

BANK DETAILS

@if (($company->bank_account_number ?? null) && ($company->bank_name ?? null))

Account Name: {{ $company->bank_account_name ?? $company->name }}

BANK NAME: {{ $company->bank_name }}

BRANCH NAME: {{ $company->bank_branch ?? 'N/A' }}

A/C NO.: {{ $company->bank_account_number }}

IFSC CODE: {{ $company->bank_ifsc_code ?? 'N/A' }}

@else

[Bank Details Not Configured]

@endif

For {{ $company->name ?? 'Company' }}

Authorised Signature

@if ($record->notes)

Notes:

{{ $record->notes }}

@endif