New Order

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 = ceil(number_format((float)round(coursesprice($value1)), 2, '.', '')); echo 'Product Image :
'; } if($key=='name') { echo 'Product Name : '.$value1.'
'; } if($key=='quantity') { echo 'Quantity : '.$value1.'
'; } if($key=='price') { $coursesprice = ($coursesprice ) ? $coursesprice : $value1 = ceil(number_format((float)round($value1), 2, '.', '')); 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.{{ceil(number_format((float)round($subtotal), 2, '.', ''))}}
Coupon code : {{$coupon_code}}
Coupon discount : Rs.{{ ceil(number_format((float)round($coupon_discount), 2, '.', ''))}}
Grand total : Rs.{{ceil(number_format((float)round($grand_total), 2, '.', ''))}}

Thanks,
Team BOC