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 }}
Phone: {{ $order->user->mobile }}
Email: {{ $order->user->email }}
@if ($order->user->gst_number != '') GSTIN: {{ $order->gst_number }}
@endif @if ($order->user->org_name != '') Company: {{ $order->user->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->checkout_id }}
@if ($order->tran_id != '') Transaction ID: {{ $order->tran_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->orders as $item) @php // The sales_price is GST-inclusive. We need to calculate the pre-tax value. $line_total_inclusive = $item->quantity * $item->amount; $gst_percentage = 0; // 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->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) }}
Coin Discount - ₹{{ amountFormat($order->coins_value) }}
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->coin_cost * $order->coins - $order->coupon_amount; @endphp ₹{{ amountFormat(max(0, $grand_total)) }}
Go to Orders