@php $orderDetails = \App\OrderDetail::where('id', $content['id'])->first(); $order = \App\Order::where('id', $orderDetails->order_id)->first(); if(!empty($orderDetails->variation)){ $productStock = \App\ProductStock::with('product')->where('product_id', $orderDetails->product_id)->where('variant', @$orderDetails->variation)->first(); }else{ $productStock = \App\ProductStock::with('product')->where('product_id', $orderDetails->product_id)->first(); } $generalsetting = \App\GeneralSetting::first(); $rupees = ''; $grandTotal = 0; $delivery_date = Date('d M Y', strtotime('+5 days')); $orderTotalPrice = \App\OrderDetail::where('order_id', $orderDetails->order_id)->sum('price'); @endphp

Hello, {{ ucwords(\App\User::where('id', $orderDetails->seller_id)->first()->name) }}

Thank you for choosing ekhadiindia.com to sell your products. An order for {{ $orderDetails->product->name }} has been placed on ekhadiindia.com on {{date('jS F Y', $order->date)}} at {{date('h:i A', $order->date)}} Order Code {{$order->code}}. For processing/support, go to My Account on ekhadiindia.com.


Order Summary

@if(!empty($orderDetails)) @endif @if($order->coupon_discount > 0) @endif
# {{ translate('Product Name') }} {{ translate('Sku Name') }} {{ translate('Quantity') }} {{ translate('Amount') }}
{{1}} {{ $orderDetails->product->name }} {{$orderDetails->product->stocks[0]->sku}} {{ $orderDetails->quantity }} {!! $rupees.number_format((float)@$orderDetails->price, 2, '.', '') !!}
Coupon Discount {!! $rupees.number_format((float)$order->coupon_discount, 2, '.', '') !!}
Total Amount {{ number_format((float)@$grandTotal, 2, '.', '') }}