Print Preview: Official TAX INVOICE (GST Compliant)
@php $invoiceLogo = \App\Models\AppSetting::getVal('invoice', 'logo_path'); $invoiceHeader = \App\Models\AppSetting::getVal('invoice', 'header_text'); @endphp @if($invoiceLogo)
Company Logo
@endif
{{ $company->legal_name ?? $company->name ?? 'Mayoora Costume House' }}
@if($invoiceHeader)
{{ $invoiceHeader }}
@endif
{{ $company->address ?? 'Main Road' }}, {{ $company->city ?? 'Thrissur' }}, {{ $company->state ?? 'Kerala' }} - 680001
Phone: {{ $company->phone ?? '+91 98765 43210' }} | Email: {{ $company->email ?? 'accounts@mayoora.com' }}
@if($company->tax_number_gstin)
GSTIN / UIN: {{ $company->tax_number_gstin }} | State: {{ $company->state ?? 'Kerala' }} (Code: {{ $company->state_code ?? '32' }})
@endif
TAX INVOICE
Invoice No: {{ $salesInvoice->invoice_number }}
Date of Issue: {{ $salesInvoice->invoice_date ? $salesInvoice->invoice_date->format('d M Y') : date('d M Y') }}
Due Date: {{ $salesInvoice->due_date ? $salesInvoice->due_date->format('d M Y') : 'Due on Receipt' }}
Status: {{ strtoupper($salesInvoice->status) }}

Billed To (Customer)

@if(!empty($salesInvoice->customer->company_name) && $salesInvoice->customer->company_name !== $salesInvoice->customer->name)
{{ $salesInvoice->customer->company_name }}
Attn: {{ $salesInvoice->customer->name }}
@else
{{ $salesInvoice->customer->name ?? 'Direct Counter Customer' }}
@endif
Phone: {{ $salesInvoice->customer->phone ?? '-' }}
@php $custGst = $salesInvoice->customer->gstin ?? $salesInvoice->customer->tax_number_gstin ?? null; @endphp @if($custGst)
Customer GSTIN: {{ $custGst }}
@endif @if($salesInvoice->customer->address)
Address: {{ $salesInvoice->customer->address }}{{ $salesInvoice->customer->address_line_2 ? ', ' . $salesInvoice->customer->address_line_2 : '' }}, {{ $salesInvoice->customer->city }}, {{ $salesInvoice->customer->state ?? 'Kerala' }} {{ $salesInvoice->customer->pin_code ? '- ' . $salesInvoice->customer->pin_code : '' }}
@endif

Invoice & Supply Details

Invoice Type: {{ ucfirst(str_replace('_', ' ', $salesInvoice->invoice_type)) }}
@if($salesInvoice->rentalOrder)
Linked Rental Ref: {{ $salesInvoice->rentalOrder->order_number }}
@endif
Place of Supply: {{ $company->state ?? 'Kerala' }} ({{ $company->state_code ?? '32' }})
Reverse Charge Applicable: No
@forelse($salesInvoice->items as $idx => $item) @empty @endforelse
# Item Description HSN/SAC Qty Rate (₹) Taxable (₹) GST % Total (₹)
{{ $idx + 1 }} {{ $item->product->name ?? 'Item / Service' }} @if($item->product && $item->product->sku) ({{ $item->product->sku }}) @endif {{ $item->hsn_code ?? $item->product->hsn_sac_code ?? '9973' }} {{ $item->quantity }} ₹{{ number_format($item->unit_price, 2) }} ₹{{ number_format($item->taxable_amount ?? ($item->unit_price * $item->quantity), 2) }} {{ $item->tax_rate ?? 0 }}% ₹{{ number_format($item->total_amount, 2) }}
No invoice line items found.
@php $compState = strtolower(trim($company->state ?? 'Kerala')); $custState = strtolower(trim($salesInvoice->customer->state ?? $company->state ?? 'Kerala')); $isInterState = ($custState !== '' && $custState !== $compState); $subTotal = (float)($salesInvoice->subtotal ?? 0.00); $taxTotal = (float)($salesInvoice->tax_amount ?? 0.00); $freight = (float)($salesInvoice->shipping_charge ?? 0.00); $igst = $isInterState ? $taxTotal : 0.00; $cgst = $isInterState ? 0.00 : round($taxTotal / 2, 2); $sgst = $isInterState ? 0.00 : ($taxTotal - $cgst); $grandTotal = (float)($salesInvoice->total_amount ?? ($subTotal + $taxTotal + $freight)); @endphp
@if(($salesInvoice->discount_amount ?? 0) > 0) @endif @if(($salesInvoice->paid_amount ?? 0) > 0 || ($salesInvoice->advance_adjusted ?? 0) > 0) @endif
Value GST Amount
{{ number_format($subTotal, 2) }} {{ number_format($taxTotal, 2) }} {{ number_format($grandTotal, 2) }}
Sub Total {{ number_format($subTotal, 2) }}
Freight {{ number_format($freight, 2) }}
IGST {{ number_format($igst, 2) }}
CGST {{ number_format($cgst, 2) }}
SGST {{ number_format($sgst, 2) }}
Discount - {{ number_format($salesInvoice->discount_amount, 2) }}
Grand Total {{ number_format($grandTotal, 2) }}
Paid / Adjusted {{ number_format(($salesInvoice->paid_amount ?? 0) + ($salesInvoice->advance_adjusted ?? 0), 2) }}
Balance Payable {{ number_format($salesInvoice->balance_due ?? 0, 2) }}
Bank Payment Details:
Bank: {{ \App\Models\AppSetting::getVal('finance', 'bank_name', 'State Bank of India') }} | Account: {{ \App\Models\AppSetting::getVal('finance', 'bank_account_number', '67123456789') }}
IFSC: {{ \App\Models\AppSetting::getVal('finance', 'bank_ifsc', 'SBIN0070123') }} | Branch: {{ \App\Models\AppSetting::getVal('finance', 'bank_branch', 'Thrissur Main') }}
UPI: {{ \App\Models\AppSetting::getVal('finance', 'bank_upi', 'mayoora@upi') }}
@if($footerText = \App\Models\AppSetting::getVal('invoice', 'footer_text'))
{{ $footerText }}
@else
Thank you for your business!
@endif @if($terms = \App\Models\AppSetting::getVal('invoice', 'terms'))
Terms & Conditions:
{!! nl2br(e($terms)) !!}
@endif
For {{ $company->legal_name ?? $company->name ?? 'Mayoora Costume House' }}


Authorized Signatory