Action Required: Cancellation Request

Hello Admin,

A customer has submitted a request to cancel order #{{ $order->payment_order_id }}. Please review the details below and take the necessary action in the admin panel.

Request Details

Customer: {{ $customer_name }}

Customer's Reason:

{{ $cancellation_reason }}

Original Order Summary

@php $total_taxable_value = 0; $total_gst_amount = 0; @endphp @forelse ($order_items as $item) @php // CORRECTED: Using the accurate calculation logic from the invoice. $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.

{{-- IMPROVEMENT: Added the coupon discount which was missing --}} @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) }}
Original 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)) }}
{{-- IMPROVEMENT: The link now points directly to the specific order in the admin panel --}} Manage Cancellation Request