Order from
{{ $order->user->name }}
{{ $order->user->email }}
@if($order->user->mobile)
{{ $order->user->mobile }}
@endif
@if(isset($order->user->country->nicename))
{{ $order->user['city']['name'] }}, {{ $order->user['state']['name'] }}, {{ $order->user['country']['nicename'] }}
@endif
@foreach($order->invoices->where('status','pending') as $suborder)
@if($suborder->variant)
@if($suborder->variant->variantimages)
![{{ $suborder->variant->products['name'] }}]({{ url('/variantimages/'.$suborder->variant->variantimages['main_image']) }})
@else
![{{ $suborder->variant->products['name'] }}]({{ Avatar::create($suborder->variant->products['name'])->toBase64() }})
@endif
@endif
@if($suborder->simple_product)
![{{ $suborder->simple_product['product_name'] }}]({{ url('images/simple_products/'.$suborder->simple_product->thumbnail) }})
@endif
@if(isset($suborder->variant))
{{ $suborder->variant->products['name'] }} (x {{ $suborder['qty'] }})
@endif
@if(isset($suborder->simple_product))
{{ $suborder->simple_product['product_name'] }} (x {{ $suborder['qty'] }})
@endif
{{ $suborder->price + $suborder->tax_amount + $suborder->shipping }}
(Incl. of Tax & Shipping).
@endforeach
Subtotal:
@if($order->discount != 0)
{{ sprintf("%.2f",$order['order_total'] + $order['discount']) }}
@else
{{ sprintf("%.2f",$order['order_total']) }}
@endif
@if($order->discount != 0)
Coupon discount:
{{ sprintf("%.2f",$order['discount']) }}
@endif
@if($order->gift_charge != 0)
Gift Pkg. charges:
+ {{ sprintf("%.2f",$order->gift_charge) }}
@endif
@if($order->handlingcharge != 0)
Handling charges:
+ {{ sprintf("%.2f",$order->handlingcharge) }}
@endif
Total:
@if($order->discount != 0)
{{ sprintf("%.2f",$order->order_total + $order->handlingcharge) }}
@else
{{ sprintf("%.2f",$order->order_total + $order->handlingcharge) }}
@endif
Paid by:
{{ $order->payment_method }}