@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 — Your order was placed successfully. Order ID #{{$order->invoice_id}}. You will receive a processing email as soon as possible. or check the status of your order from here

[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