<html>
    <head></head>
    <body>
        <p><b>Order details</b></p>
        <p> 
        	Order Id :{{$order_id}}<br>
        	User Name : {{ $name}}<br>
        	Order Status : {{ $order_status}}<br>
        	products :
        	@php
                $products = json_decode($products);
            	foreach ($products[0] as $key => $value) {
            		echo ucwords(str_replace("_"," ",$key)).' : '.$value.'<br>';

            	}
        	@endphp
        	<br>
        	shipping address :
        	@php
                $shipping_address = json_decode($shipping_address);
            	foreach ($shipping_address as $key => $value) {
            		echo ucwords(str_replace("_"," ",$key)).' : '.$value.'<br>';

            	}
        	@endphp
        	<br>
        	billing address :
        	@php
            $billing_address = json_decode($billing_address);
        	foreach ($billing_address as $key => $value) {
        		echo ucwords(str_replace("_"," ",$key)).' : '.$value.'<br>';

        	}
        	@endphp
        	<br>
        	subtotal :  Rs.{{ $subtotal}}<br>
        	coupon code :{{$coupon_code}}<br>
        	coupon discount :  Rs.{{ $coupon_discount}}<br>
        	grand total : Rs.{{$grand_total}}<br>
        </p>
    </body>
</html>