|
|
{{ $warehouse->name }}
@if($warehouse->gstin)
GSTIN: {{ $warehouse->gstin }}
@endif
|
| @if($order->order_type == "purchases") {{ $traslations['purchase_invoice'] }} @elseif($order->order_type == "purchase-returns") {{ $traslations['purchase_return_invoice'] }} @elseif($order->order_type == "sales-returns") {{ $traslations['sales_return_invoice'] }} @elseif($order->order_type == "sales") {{ $traslations['sales_invoice'] }} @elseif($order->order_type == "quotations") {{ $traslations['quotation_invoice'] }} @endif | {{ $traslations['invoice'] }} # {{ $order->invoice_number }} |
|
@if($order->order_type == "sales" || $order->order_type == "sales-returns" || $order->order_type == "quotations")
{{ $traslations['seller'] }}
@else {{ $traslations['buyer'] }} @endif
{{ $warehouse->name }}
@if($warehouse->gstin)
GSTIN: {{ $warehouse->gstin }}
@endif
|
@if($order->order_type == "sales" || $order->order_type == "sales-returns" || $order->order_type == "quotations")
{{ $traslations['buyer'] }}
@else {{ $traslations['seller'] }} @endif
@if($order->order_type == 'stock-transfers')
{{ $order->warehouse->name }}
@else
{{ $order->user->name }}
@if(isset($order->user->gstin) && $order->user->gstin)
GSTIN: {{ $order->user->gstin }}
@endif
@endif
|
| # | {{ $traslations['product'] }} | HSN/SAC | {{ $traslations['quantity'] }} | @if($order->warehouse->show_mrp_on_invoice){{ $traslations['mrp'] }} | @endif{{ $traslations['unit_price'] }} | Tax | {{ $traslations['total'] }} |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $item->product->name }}
@if(isset($item->product->hsn_code) && $item->product->hsn_code)
HSN: {{ $item->product->hsn_code }}
@endif
|
{{ isset($item->product->hsn_code) ? $item->product->hsn_code : '-' }} | {{ $item->quantity . ' ' . $item->unit->short_name }} | @if($order->warehouse->show_mrp_on_invoice){{ App\Classes\Common::formatAmountCurrency($company->currency, $item->mrp) }} | @endif{{ App\Classes\Common::formatAmountCurrency($company->currency, $item->single_unit_price) }} | @if($order->tax_rate > 0) {{ $order->tax_rate }}% @else - @endif | {{ App\Classes\Common::formatAmountCurrency($company->currency, $item->subtotal) }} |
| HSN/SAC | Taxable Value | CGST Rate | CGST Amt | SGST Rate | SGST Amt | IGST Rate | IGST Amt | Total Tax |
|---|---|---|---|---|---|---|---|---|
| {{ isset($order->items->first()->product->hsn_code) ? $order->items->first()->product->hsn_code : '-' }} | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->subtotal) }} | {{ $order->tax_rate/2 }}% | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->tax_amount/2) }} | {{ $order->tax_rate/2 }}% | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->tax_amount/2) }} | - | - | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->tax_amount) }} |
| Total | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->tax_amount/2) }} | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->tax_amount/2) }} | - | {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->tax_amount) }} | ||||
|
{{-- Amount in words --}}
Amount in Words
{{ App\Classes\Common::convertNumberToWords($order->total) }}
{{-- Payment mode --}}
{{ $traslations['payment_mode'] }}:
@if($order->orderPayments)
@foreach ($order->orderPayments as $p)
{{ App\Classes\Common::formatAmountCurrency($company->currency, $p->amount) }}
@if($p->payment && $p->payment->paymentMode)
({{ $p->payment->paymentMode->name }})
@endif
@endforeach
@else - @endif
{{-- QR Code --}}
@if(file_exists(public_path('images/qrcode.png')))
Scan to Pay via UPI
|
|
| Total Items / Qty {{ $order->total_items }} / {{ $order->total_quantity }} | {{ $traslations['paid_amount'] }} {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->paid_amount) }} | {{ $traslations['due_amount'] }} {{ App\Classes\Common::formatAmountCurrency($company->currency, $order->due_amount) }} |
|
@if($order->user->phone)
Sending to: {{ $order->user->name }}
|
{{ $order->user->phone }}
@else
⚠ No phone number found — WhatsApp will open without a recipient
@endif
📞 Share Invoice on WhatsApp
PDF download link included in message
|