Hi,
{{-- Thank you for your order. Your product will be shipped shortly. In case of tangible product, we will send across to you courier tracking no. --}} We thank you for the order. Please find the details below:

Order Id :{{$order_id}}
Order Status : {{ ($order_status) ? $order_status : 'Failed' }}
Product Details :
@php $products_array = json_decode($products); foreach ($products_array as $value) { foreach ($value as $key => $value1) { $url = ''; if($key=='product_id') { $url = coursesurl($value1); $coursesprice = coursesprice($value1); echo 'Product Image:
'; } if($key=='name') { echo 'Product Name: '.$value1.'
'; } if($key=='quantity') { echo 'Quantity: '.$value1.'
'; } if($key=='price') { $coursesprice = ($coursesprice ) ? $coursesprice : $value1; echo 'Price : Rs.'.$coursesprice.'
'; echo 'Discounted Price : Rs.'.$value1.'
'; } echo ""; } } @endphp
Billing Details: @php $billing_address = json_decode($billing_address); foreach ($billing_address as $key3 => $value3) { $key3 = str_replace("billing", "", $key3); echo ucwords(str_replace("_"," ",$key3)).' : '.$value3.'
'; } @endphp
Shipping Details: @php $shipping_address = json_decode($shipping_address); foreach ($shipping_address as $key2 => $value2) { $key2 = str_replace("shipping", "", $key2); $key2 = str_replace("delivery", "", $key2); echo ucwords(str_replace("_"," ",$key2)).' : '.$value2.'
'; } @endphp
Subtotal : Rs.{{ $subtotal}}
Coupon code : {{$coupon_code}}
Coupon discount : Rs.{{ $coupon_discount}}
Grand total : Rs.{{$grand_total}}

Thanks,
Team BOC