Company Logo
Tax Invoice
Seller:
{{ $pickup->organisation_name }}
{{ $pickup->address }}
@if ($pickup->address_2 != '') {{ $pickup->address_2 }}
@endif Pincode: {{ $pickup->pin_code }}
City: {{ $pickup->city }}
State: {{ $pickup->state }}
Country: {{ $pickup->country }}
Phone: {{ $pickup->phone }}
Email: {{ $pickup->email }}
GSTIN: {{ $pickup->gst_number }}
Buyer:
{{ $order->user->name }}
{{ $order->shippingAddress->line1 }}
@if ($order->shippingAddress->line2 != '') {{ $order->shippingAddress->line2 }}
@endif Pincode: {{ $order->shippingAddress->pincode }}
City: {{ $order->shippingAddress->city }}
District: {{ $order->shippingAddress->district }}
State: {{ $order->shippingAddress->state }}
Country: {{ $order->shippingAddress->country }}
Phone: {{ $order->user->mobile }}
Email: {{ $order->user->email }}
@if ($order->gst_number != '') GSTIN: {{ $order->gst_number }}
@endif @if ($order->org_name != '') Company: {{ $order->org_name }}
@endif
Invoice No: {{ $order->invoice_id }}
Invoice Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d M Y, h:i A') }}
Order ID: {{ $order->payment_order_id }}
@if ($order->transaction_id != '') Transaction ID: {{ $order->transaction_id }}
@endif
@if (in_array($order->under_process, [2, 3, 4]))
Note: This order was cancelled @if ($order->under_process == 2) by user. @elseif($order->under_process == 3) by admin. @elseif($order->under_process == 4) and refunded successfully @if ($order->cancelled_by == 'user') (cancelled by user). @elseif($order->cancelled_by == 'admin') (cancelled by admin). @else . @endif @endif
@endif
@php $i = 1; $total_taxable_value = 0; $total_gst_amount = 0; @endphp @forelse ($order->checkoutProducts as $item) @php // The sales_price is GST-inclusive. We need to calculate the pre-tax value. $line_total_inclusive = $item->quantity * $item->sales_price; $gst_percentage = $item->cgst + $item->sgst; // Calculate the taxable value (pre-tax amount) for the entire line item. // Formula: Taxable Value = Total Inclusive Price / (1 + (GST % / 100)) $line_taxable_value = $line_total_inclusive / (1 + ($gst_percentage / 100)); // Calculate the rate per single unit. $unit_taxable_rate = $line_taxable_value / $item->quantity; // Calculate the GST amount for the entire line item. $line_gst_amount = $line_taxable_value * ($gst_percentage / 100); // Accumulate totals for the summary section. $total_taxable_value += $line_taxable_value; $total_gst_amount += $line_gst_amount; @endphp @empty @endforelse
# Description HSN/SAC Qty Rate (₹) Taxable Amt (₹) GST % GST Amt (₹) Total (₹)
{{ $i++ }} {{ $item->product_name }} {{ $item->hsn_code }} {{ $item->quantity }} {{ amountFormat($unit_taxable_rate) }} {{ amountFormat($line_taxable_value) }} {{ $gst_percentage }}% {{ amountFormat($line_gst_amount) }} {{ amountFormat($line_total_inclusive) }}
No Products Found in This Order
Subtotal (Taxable Value) ₹{{ amountFormat($total_taxable_value) }}
Total GST ₹{{ amountFormat($total_gst_amount) }}
Shipping Charges ₹{{ amountFormat($order->shipping_cost) }}
Branding Charges ₹{{ amountFormat($order->branding_cost) }}
Coin Discount - ₹{{ amountFormat($order->coin_cost * $order->coins) }}
Coupon Discount - ₹{{ amountFormat($order->coupon_amount) }}
Grand Total @php // Calculate grand total from authoritative values for accuracy. $grand_total = $total_taxable_value + $total_gst_amount + $order->shipping_cost + $order->branding_cost - ($order->coin_cost * $order->coins) - $order->coupon_amount; @endphp ₹{{ amountFormat(max(0, $grand_total)) }}
Go to Orders