@if($settings->site_logo) Logo @else

{{ $settings->site_name ?? 'Your Store' }}

@endif @if($settings->store_address)

{{ $settings->store_address }}

{{ $settings->store_city }}{{ $settings->store_state ? ', ' . $settings->store_state : '' }}{{ $settings->store_pincode ? ' - ' . $settings->store_pincode : '' }}

@endif @if($settings->contact_phone)

Phone: {{ $settings->contact_phone }}

@endif @if($settings->contact_email)

Email: {{ $settings->contact_email }}

@endif @if($settings->store_gstin)

GSTIN: {{ $settings->store_gstin }}

@endif

INVOICE

{{ $order->invoice_no ?? $order->order_no }}
{{ $order->created_at->setTimezone('Asia/Kolkata')->format('d M Y') }}

Bill To

{{ $order->customer_name }}

@if($order->billing_address)

{{ $order->billing_address }}

{{ $order->billing_city }}{{ $order->billing_state ? ', ' . $order->billing_state : '' }} {{ $order->billing_pincode ? '- ' . $order->billing_pincode : '' }}

@else

{{ $order->shipping_address }}

{{ $order->shipping_city }}{{ $order->shipping_state ? ', ' . $order->shipping_state : '' }} {{ $order->shipping_pincode ? '- ' . $order->shipping_pincode : '' }}

@endif

Phone: {{ $order->customer_phone }}

@if($order->customer_email)

Email: {{ $order->customer_email }}

@endif

Ship To

{{ $order->customer_name }}

{{ $order->shipping_address }}

{{ $order->shipping_city }}{{ $order->shipping_state ? ', ' . $order->shipping_state : '' }} {{ $order->shipping_pincode ? '- ' . $order->shipping_pincode : '' }}

Phone: {{ $order->customer_phone }}

Order Date {{ $order->created_at->setTimezone('Asia/Kolkata')->format('d M Y, h:i A') }} Order No {{ $order->order_no }} Payment Method {{ $order->payment_method == 'cod' ? 'Cash on Delivery' : 'Online Payment' }} Status {{ strtoupper($order->status) }}
@foreach($order->items as $index => $item) @endforeach
# Product HSN Qty Rate Amount
{{ $index + 1 }}
{{ $item->product_name }}
@if($item->variation_name)
{{ $item->variation_name }}
@endif @if($item->sku)
SKU: {{ $item->sku }}
@endif
{{ $item->hsn_code ?? '-' }} {{ (int)$item->quantity }} Rs. {{ number_format($item->unit_price, 2) }} Rs. {{ number_format($item->total_price, 2) }}
@if($order->notes)
Notes:
{{ $order->notes }}
@endif
@if($order->tax_amount > 0) @if($settings->show_tax_breakup ?? false) @php $halfTax = $order->tax_amount / 2; @endphp @endif @endif @if($order->cod_fee > 0) @endif @if($order->discount_amount > 0) @endif
Subtotal Rs. {{ number_format($order->subtotal, 2) }}
Tax (GST) Rs. {{ number_format($order->tax_amount, 2) }}
↳ CGST Rs. {{ number_format($halfTax, 2) }}
↳ SGST Rs. {{ number_format($halfTax, 2) }}
Shipping {{ $order->shipping_fee > 0 ? 'Rs. ' . number_format($order->shipping_fee, 2) : 'FREE' }}
COD Fee Rs. {{ number_format($order->cod_fee, 2) }}
Discount -Rs. {{ number_format($order->discount_amount, 2) }}
Grand Total Rs. {{ number_format($order->total, 2) }}
@php $total = $order->total; $rupees = floor($total); $paise = round(($total - $rupees) * 100); $ones = ['', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen', 'Seventeen', 'Eighteen', 'Nineteen']; $tens = ['', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety']; if (!function_exists('convertNumberToWords')) { function convertNumberToWords($num) { $ones = ['', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen', 'Seventeen', 'Eighteen', 'Nineteen']; $tens = ['', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety']; if ($num < 20) return $ones[$num] ?? ''; if ($num < 100) return ($tens[floor($num / 10)] ?? '') . (($num % 10) ? ' ' . ($ones[$num % 10] ?? '') : ''); if ($num < 1000) return ($ones[floor($num / 100)] ?? '') . ' Hundred' . (($num % 100) ? ' ' . convertNumberToWords($num % 100) : ''); if ($num < 100000) return convertNumberToWords(floor($num / 1000)) . ' Thousand' . (($num % 1000) ? ' ' . convertNumberToWords($num % 1000) : ''); if ($num < 10000000) return convertNumberToWords(floor($num / 100000)) . ' Lakh' . (($num % 100000) ? ' ' . convertNumberToWords($num % 100000) : ''); return convertNumberToWords(floor($num / 10000000)) . ' Crore' . (($num % 10000000) ? ' ' . convertNumberToWords($num % 10000000) : ''); } } $words = convertNumberToWords($rupees) . ' Rupees'; if ($paise > 0) { $words .= ' and ' . convertNumberToWords($paise) . ' Paise'; } $words .= ' Only'; @endphp
Amount in Words: {{ $words }}