@extends('layouts.app') @section('title', 'Invoice #' . $invoice->invoice_number) @section('page_title', 'Tax Invoice Overview') @section('content')
Back to Invoices
@if($invoice->status !== 'cancelled' && $invoice->balance_due > 0) @endif Print / Download GST Invoice @if($invoice->status !== 'cancelled')
@csrf
@endif

{{ $company->company_name }}

{{ $company->address }}, {{ $company->city }}, {{ $company->state }} - {{ $company->pincode }}
GSTIN: {{ $company->gstin }} | State: {{ $company->state }} (State Code: {{ $company->state_code }})
Phone: {{ $company->phone }} | Email: {{ $company->email }}
TAX INVOICE
{{ $invoice->invoice_number }}
Date: {{ $invoice->invoice_date->format('d/m/Y') }}
@if($invoice->due_date)
Due Date: {{ $invoice->due_date->format('d/m/Y') }}
@endif
@if($invoice->status == 'cancelled') CANCELLED (Stock Reverted) @else {{ ucfirst(str_replace('_', ' ', $invoice->payment_status)) }} @endif
Details of Receiver (Billed To):
{{ $invoice->party_name }}
@if($invoice->party && $invoice->party->billing_address)
{{ $invoice->party->billing_address }}
@endif
GSTIN / UIN: {{ $invoice->party_gstin ?: 'Unregistered (Consumer B2C)' }}
State: {{ $invoice->place_of_supply_state }} | State Code: {{ $invoice->place_of_supply_code }}
Tax & Supply Determination:
Place of Supply: {{ $invoice->place_of_supply_state }} [{{ $invoice->place_of_supply_code }}]
Transaction Type: @if($invoice->is_inter_state) Inter-State (IGST 100%) @else Intra-State (CGST 50% + SGST 50%) @endif
Reverse Charge (RCM): No
@if($invoice->is_inter_state) @else @endif @foreach($invoice->items as $idx => $item) @if($invoice->is_inter_state) @else @endif @endforeach
# Description of Goods HSN Code Qty Rate (₹) Taxable Value (₹)IGSTCGST SGSTTotal (₹)
{{ $idx + 1 }}
{{ $item->product_name }}
@if($item->discount_percent > 0) Discount: {{ $item->discount_percent }}% (₹{{ number_format($item->discount_amount, 2) }}) @endif
{{ $item->hsn_code }} {{ number_format($item->quantity, 0) }} {{ $item->unit_code }} ₹{{ number_format($item->unit_price, 2) }} ₹{{ number_format($item->taxable_value, 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) }}
Invoice Value in Words:
{{ $amountInWords }}
@if($invoice->is_inter_state) @else @endif @foreach($hsnSummary as $hsnItem) @if($invoice->is_inter_state) @else @endif @endforeach
HSN/SAC Taxable ValIGST Rate IGST AmtCGST Rate CGST Amt SGST Rate SGST AmtTotal Tax
{{ $hsnItem['hsn'] }} ₹{{ number_format($hsnItem['taxable'], 2) }}{{ $hsnItem['igst_rate'] }}% ₹{{ number_format($hsnItem['igst_amount'], 2) }}{{ $hsnItem['cgst_rate'] }}% ₹{{ number_format($hsnItem['cgst_amount'], 2) }} {{ $hsnItem['sgst_rate'] }}% ₹{{ number_format($hsnItem['sgst_amount'], 2) }}₹{{ number_format($hsnItem['total_tax'], 2) }}
@if($invoice->is_inter_state) @else @endif @if($invoice->round_off != 0) @endif
Total Taxable Value: ₹{{ number_format($invoice->taxable_amount, 2) }}
Integrated GST (IGST): ₹{{ number_format($invoice->igst_amount, 2) }}
Central GST (CGST): ₹{{ number_format($invoice->cgst_amount, 2) }}
State GST (SGST): ₹{{ number_format($invoice->sgst_amount, 2) }}
Total Tax: ₹{{ number_format($invoice->total_tax_amount, 2) }}
Round Off: {{ $invoice->round_off >= 0 ? '+' : '' }}₹{{ number_format($invoice->round_off, 2) }}
Grand Total: ₹{{ number_format($invoice->grand_total, 2) }}
Amount Paid: ₹{{ number_format($invoice->paid_amount, 2) }}
Balance Due: ₹{{ number_format($invoice->balance_due, 2) }}
Bank Remittance Details:
Bank Name: {{ $company->bank_name ?? 'HDFC Bank Ltd' }}
A/C No: {{ $company->account_no ?? '50200012345678' }}
IFSC Code: {{ $company->ifsc_code ?? 'HDFC0001234' }}
Terms & Conditions:
{!! nl2br(e($company->terms)) !!}
For {{ $company->company_name }}
Authorized Signatory
@if($invoice->status !== 'cancelled' && $invoice->balance_due > 0) @endif @endsection