@if($invoice->status === 'cancelled')
CANCELLED
@endif @if($invoice->status === 'draft')
DRAFT
@endif {{-- Header --}}
@if($profile->logo) @endif
{{ $profile->business_name }} @if($profile->legal_name && $profile->legal_name !== $profile->business_name)
{{ $profile->legal_name }}
@endif
{{ $profile->full_address }}
@if($profile->phone) Phone: {{ $profile->phone }}
@endif @if($profile->email) Email: {{ $profile->email }}
@endif @if($profile->gstin) GSTIN: {{ $profile->gstin }}
@endif @if($profile->pan) PAN: {{ $profile->pan }}
@endif

{{ strtoupper(str_replace('_', ' ', $invoice->invoice_type)) }}

{{ $invoice->invoice_number }}

Date: {{ $invoice->invoice_date->format('d M Y') }}

@if($invoice->due_date)

Due: {{ $invoice->due_date->format('d M Y') }}

@endif @if($invoice->po_number)

PO: {{ $invoice->po_number }}

@endif

{{ ucfirst($invoice->payment_status) }}

{{-- Bill To / Ship To / Invoice Details --}}
Bill To
{{ $invoice->customer_name }}
@if($invoice->billing_address){{ $invoice->billing_address }}
@endif @if($invoice->customer_gstin)
GSTIN: {{ $invoice->customer_gstin }}
@endif @if($invoice->customer_phone)Phone: {{ $invoice->customer_phone }}
@endif @if($invoice->customer_email)Email: {{ $invoice->customer_email }}@endif
Invoice Details
Financial Year: {{ $invoice->financial_year }}
Supply Type: {{ ucwords(str_replace('_', ' ', $invoice->supply_type)) }}
Place of Supply: {{ config('erp.states.' . $invoice->place_of_supply, $invoice->place_of_supply) }}
Reverse Charge: {{ $invoice->reverse_charge }}
@if($invoice->e_way_bill_number) E-Way Bill: {{ $invoice->e_way_bill_number }}
@endif
{{-- Items Table --}} @if($invoice->isInterState()) @else @endif @foreach($invoice->items as $item) @if($invoice->isInterState()) @else @endif @endforeach
# Description HSN/SAC Qty Unit Rate (₹) Disc Taxable (₹)IGSTCGST SGSTTotal (₹)
{{ $item->serial_number }} {{ $item->item_name }} @if($item->description)
{{ $item->description }}@endif
{{ $item->hsn_sac_code ?: '—' }} {{ $item->quantity }} {{ $item->unit }} {{ number_format($item->unit_price, 2) }} @if($item->discount_percent > 0) {{ $item->discount_percent }}%
({{ number_format($item->discount_amount, 2) }}) @else — @endif
{{ number_format($item->taxable_amount, 2) }}{{ $item->igst_rate }}%
{{ number_format($item->igst_amount, 2) }}
{{ $item->cgst_rate }}%
{{ number_format($item->cgst_amount, 2) }}
{{ $item->sgst_rate }}%
{{ number_format($item->sgst_amount, 2) }}
{{ number_format($item->total_amount, 2) }}
{{-- Totals + GST Breakup --}}
{{-- GST Summary table (left side) --}}
@if($invoice->items->count() > 0)
GST Summary
@if($invoice->isInterState()) @else @endif @foreach($invoice->items->groupBy('hsn_sac_code') as $hsn => $group) @if($invoice->isInterState()) @else @endif @endforeach
HSN/SAC TaxableIGST RateIGST AmtCGST %CGST Amt SGST %SGST AmtTotal Tax
{{ $hsn ?: 'N/A' }} {{ number_format($group->sum('taxable_amount'), 2) }}{{ $group->first()->igst_rate }}% {{ number_format($group->sum('igst_amount'), 2) }}{{ $group->first()->cgst_rate }}% {{ number_format($group->sum('cgst_amount'), 2) }} {{ $group->first()->sgst_rate }}% {{ number_format($group->sum('sgst_amount'), 2) }}{{ number_format($group->sum('cgst_amount') + $group->sum('sgst_amount') + $group->sum('igst_amount'), 2) }}
@endif
{{-- Totals (right side) --}}
@if($invoice->discount_amount > 0) @endif @if($invoice->cgst_amount > 0) @endif @if($invoice->igst_amount > 0) @endif @if($invoice->cess_amount > 0) @endif @if(abs($invoice->round_off) > 0) @endif @if($invoice->amount_paid > 0) @endif
Subtotal₹{{ number_format($invoice->subtotal, 2) }}
Discount-₹{{ number_format($invoice->discount_amount, 2) }}
Taxable Amount₹{{ number_format($invoice->taxable_amount, 2) }}
CGST₹{{ number_format($invoice->cgst_amount, 2) }}
SGST₹{{ number_format($invoice->sgst_amount, 2) }}
IGST₹{{ number_format($invoice->igst_amount, 2) }}
Cess₹{{ number_format($invoice->cess_amount, 2) }}
Round Off₹{{ number_format($invoice->round_off, 2) }}
Total Amount ₹{{ number_format($invoice->total_amount, 2) }}
Amount Paid₹{{ number_format($invoice->amount_paid, 2) }}
Balance Due₹{{ number_format($invoice->amount_due, 2) }}
Amount in Words: {{ $invoice->amount_in_words }}
{{-- Footer --}} @if($invoice->terms_conditions)
Terms & Conditions: {{ $invoice->terms_conditions }}
@endif
This is a computer-generated invoice and does not require a physical signature. | Generated by {{ config('app.name') }}