@use('App\Modules\Tax\Support\Gst') @php $s = $invoice->supplier; $r = $invoice->recipient; $gst = $invoice->chargesGst(); $local = $invoice->localTaxLabel(); $platform = settings('general.site_name'); @endphp {{ $invoice->title() }} {{ $invoice->number }} @php($pdfRoute = \Illuminate\Support\Str::replaceLast('.show', '', (string) request()->route()?->getName()).'.pdf')
@if (\Illuminate\Support\Facades\Route::has($pdfRoute))Download PDF@endif

{{ $invoice->title() }}

@if ($invoice->type === 'credit_note')
Against invoice {{ $invoice->related?->number }} dated {{ $invoice->related?->issued_at->format('d M Y') }}
@endif @if (! $gst)
Issued by a supplier not registered under GST. No GST is charged.
@endif @if ($invoice->issuer === 'seller')
Original for recipient
@endif
Number{{ $invoice->number }}
Date {{ $invoice->issued_at->format('d M Y') }}
@if ($invoice->order)
Order #{{ $invoice->order->number }}
@endif @if ($invoice->period_start)
Period {{ $invoice->period_start->format('d M') }} – {{ $invoice->period_end->format('d M Y') }}
@endif
Supplier {{ $s['legal_name'] ?? $s['name'] }}@if (($s['legal_name'] ?? null) && $s['legal_name'] !== $s['name'])
Trading as {{ $s['name'] }}
@endif
{{ $s['address'] }}
@if ($s['gstin'])
GSTIN: {{ $s['gstin'] }}
@endif @if ($s['pan'] ?? null)
PAN: {{ $s['pan'] }}
@endif
State: {{ $s['state'] }} ({{ $s['state_code'] }})
{{ $invoice->type === 'commission_invoice' ? 'Recipient (seller)' : 'Billed and shipped to' }} {{ $r['legal_name'] ?? $r['name'] }}
{{ $r['address'] }}
@if ($r['gstin'] ?? null)
GSTIN: {{ $r['gstin'] }}
@endif
State: {{ $r['state'] }} ({{ $r['state_code'] }})
Place of supply: {{ $invoice->place_of_supply }} ({{ $invoice->place_code }}) @if ($gst)Tax: {{ $invoice->is_interstate ? 'IGST (inter-state)' : 'CGST + '.$local.' (intra-state)' }}@endif Reverse charge: No
@if ($gst) @if ($invoice->is_interstate)@else@endif @endif @foreach ($invoice->lines as $i => $l) @if ($gst) @if ($invoice->is_interstate) @else @endif @endif @endforeach @php($span = $gst ? ($invoice->is_interstate ? 6 : 7) : 5) @if ($gst) @if ($invoice->is_interstate)@else@endif @endif
#Description{{ in_array($invoice->type, ['service_invoice', 'commission_invoice'], true) ? 'SAC' : 'HSN' }}Qty {{ $gst ? 'Taxable value' : 'Amount' }}IGSTCGST{{ $local }}Total
{{ $i + 1 }} {{ $l['description'] }} {{ $l['hsn'] ?? '–' }} {{ $l['qty'] }} {{ inr($l['taxable']) }}{{ inr($l['igst']) }}
{{ (float) $l['rate'] }}%
{{ inr($l['cgst']) }}
{{ (float) $l['rate'] / 2 }}%
{{ inr($l['sgst']) }}
{{ (float) $l['rate'] / 2 }}%
{{ inr($l['total']) }}
Totals{{ inr($invoice->taxable_value) }}{{ inr($invoice->igst) }}{{ inr($invoice->cgst) }}{{ inr($invoice->sgst) }}{{ inr($invoice->total) }}
{{ $invoice->type === 'credit_note' ? 'Amount credited' : 'Invoice total' }}{{ inr($invoice->total) }}
In words: {{ Gst::inWords((float) $invoice->total) }}
@if ($gst && $invoice->issuer === 'seller')
Prices include GST. Total tax: {{ inr($invoice->tax()) }}.
@endif
@if ($invoice->issuer === 'seller') Sold through {{ $platform }}, an e-commerce operator{{ settings('general.gstin') ? ' (GSTIN '.settings('general.gstin').')' : '' }}. Returns and refunds follow the marketplace return policy.
@endif {{ settings('tax.invoice_note') }}
For {{ $s['legal_name'] ?? $s['name'] }}
Authorised signatory