@extends('layouts.email_layout') @section('content')

Hi {{$order->address_first_name}}

We are dispatching a replacement to your exchanged order. Your order is now confirmed and we will begin processing delivery.

Order Number: Order Placed:
{{strtotime($order->created_at)}}{{$order->id}} {{date('d.m.Y', strtotime($order->order_confirmation))}}
Billed to: Delivery to:
{!!nl2br($order->billing_address)!!} {!!nl2br($order->shipping_address)!!}
@foreach($order_items as $order_item_row) @php $product_price = $order_item_row->purchased_rate * $order_item_row->purchased_quantity; $gst_value = ($product_price - ($product_price * (100 / (100 + $order_item_row->product_variant_gst_percent)))); $product_price_without_gst = $product_price - $gst_value; $gst_value_array[] = $gst_value; $product_value_array[] = $product_price_without_gst; @endphp @endforeach

{{$order_item_row->product_name}} ₹{{$order_item_row->purchased_rate}}

{!!nl2br($order_item_row->attribute_data)!!}

Qty: {{$order_item_row->purchased_quantity}}

{{$order_item_row->product_name}}
Subtotal ₹{{bcadd(array_sum($product_value_array), 0, 2)}}
C-GST ₹{{bcadd((array_sum($gst_value_array)/2), 0, 2)}}
S-GST ₹{{bcadd((array_sum($gst_value_array)/2), 0, 2)}}
Total ₹{{$order->grand_total}}
@endsection