New Order Received!

Hello Admin,

A new order #{{ $order->payment_order_id }} has been placed by {{ $customer_name }}. Please review the details below.

Order Summary

@php // CORRECTED: Using the same accurate calculation logic as the customer email and invoice. $total_taxable_value = 0; $total_gst_amount = 0; @endphp @forelse ($order_items as $item) @php $line_total_inclusive = $item->quantity * $item->sales_price; $gst_percentage = $item->cgst + $item->sgst; $line_taxable_value = $line_total_inclusive / (1 + ($gst_percentage / 100)); $line_gst_amount = $line_taxable_value * ($gst_percentage / 100); $total_taxable_value += $line_taxable_value; $total_gst_amount += $line_gst_amount; @endphp @empty @endforelse
Item Qty Total
{{ $item->product_name }} {{ $item->quantity }} ₹{{ amountFormat($line_total_inclusive) }}
No items found in this order.

@if($order->coupon_amount > 0) @endif @if($order->coins > 0) @endif
Subtotal ₹{{ amountFormat($total_taxable_value + $total_gst_amount) }}
Shipping ₹{{ amountFormat($order->shipping_cost) }}
Branding Charges ₹{{ amountFormat($order->branding_cost) }}
Coupon Discount - ₹{{ amountFormat($order->coupon_amount) }}
Coin Discount - ₹{{ amountFormat($order->coin_cost * $order->coins) }}
Grand Total @php $grand_total = $total_taxable_value + $total_gst_amount + $order->shipping_cost + $order->branding_cost - $order->coupon_amount - ($order->coin_cost * $order->coins); @endphp ₹{{ amountFormat(max(0, $grand_total)) }}

Customer Details

Name: {{ $customer_name }}
Email: {{ $order->user->email }}
Phone: {{ $order->user->mobile }}

Shipping Address

{{ $order->shippingAddress->line1 }}
@if ($order->shippingAddress->line2) {{ $order->shippingAddress->line2 }}
@endif {{ $order->shippingAddress->city }}, {{ $order->shippingAddress->state }} {{ $order->shippingAddress->pincode }}
{{ $order->shippingAddress->country }}

{{-- IMPROVEMENT: This link should ideally go directly to the order in the admin panel --}} View Order in Admin Panel