@php $order = App\Models\Order::where('id',$order_id)->with('orderdetails','payment','shipping','customer')->first(); @endphp

Your Order Number: #{{$order->invoice_id}}


Hi Dear {{$order->shipping?$order->shipping->name:''}}
Thanks — we've received your payment for order ID #{{$order->invoice_id}}, and we are processing your order. Getting a delivery email will take a maximum time of 10 Minutes to 5 hours.

[Order # {{$order->invoice_id}}] ({{$order->created_at->format('d M Y')}})

@foreach($order->orderdetails as $value) @endforeach
Product Quantity Price
{{$value->product_name}} x {{$value->qty}} {{$value->qty*$value->sale_price}}
Subtotal {{$order->amount - ($order->shipping_charge+$order->discount)}}
Shipping Charge {{$order->shipping_charge}}
Method {{$order->payment?$order->payment->payment_method:''}}
Total {{$order->amount}}
Billing Address
{{$order->shipping?$order->shipping->name:''}}
{{$order->shipping?$order->shipping->phone:''}}
{{$order->shipping?$order->shipping->email:''}}

@copyright {{date('Y')}} Giftshopbd