@php $order = App\Order::where('order_id', $neworder->order_id )->with(['shippingaddress','invoices','invoices.variant','invoices.simple_product'])->whereHas('invoices')->orderBy('id', 'desc')->where('user_id', auth()->user()->id)->where('status','1')->first(); $user = $order->user; $address = $order->shippingaddress; if($user->country_id !=''){ $c = App\Allcountry::where('id',$user->country_id)->first()->nicename; $s = App\Allstate::where('id',$user->state_id)->first()->name; $ci = App\Allcity::where('id',$user->city_id)->first() ? App\Allcity::where('id',$user->city_id)->first()->name : ''; } @endphp Order Confirmation
<

Your order is confirmed.

Hello, {{ $user->name }},
Thank you for shopping with Artinar!  Your order is confirmed; soon you will have your painting in your hands.

View your order details

Item(s) ordered

@foreach($neworder->invoices as $invoice) @if(isset($invoice->simple_product)) @endif @endforeach

{{ $invoice->simple_product->product_name }}

{{ $invoice->simple_product->size }}

{{ $invoice->simple_product->material }}

Item Price: {{ $paidcurrency }} {{ round($invoice->qty*$invoice->price+$invoice->tax_amount+$invoice->shipping,2) }}

Qty: {{ $invoice->qty }}

@foreach($neworder->invoices as $invoice) @if(isset($invoice->simple_product)) @endif @endforeach
ITEMNAME

Order & shipping info

Order details

Order No. : #{{$neworder->order_id}}

Order date: {{date('d-m-Y', strtotime($neworder->created_at))}}


Mode of Payment

{{$neworder->payment_method}}
Worldpay Transaction ID: {{$neworder->transaction_id}}
Right of Withdrawal

Billing Address

@php $c = App\Allcountry::where('id',$order->billing_address['country_id'])->first()->nicename; $s = App\Allstate::where('id',$order->billing_address['state'])->first()->name; $ci = App\Allcity::where('id',$order->billing_address['city'])->first() ? App\Allcity::where('id',$order->billing_address['city'])->first()->name : ''; @endphp

{!! $order->billing_address['firstname']."
"??"" !!}{!! strip_tags($order->billing_address['address'])."
"??"" !!} {!! $ci."
"??"" !!}{!! $s."
"??"" !!} {!! $c."
"??"" !!} Contact: {!! $order->billing_address['mobile']??"" !!}, {!! $order->billing_address['pincode']??"" !!}

Shipping Address

@php $user = App\User::findorfail($order->user_id); $c = App\Allcountry::where('id',$address->country_id)->first()->nicename; $s = App\Allstate::where('id',$address->state_id)->first()->name; $ci = App\Allcity::where('id',$address->city_id)->first() ? App\Allcity::where('id',$address->city_id)->first()->name : ''; @endphp

{!! $address->name."
"??"" !!}{!! strip_tags($address->address)."
"??"" !!}{!! $ci."
"??"" !!}{!! $s."
"??"" !!} {!! $c."
"??"" !!} Contact: {!! $address->phone??"" !!}, {!! $address->pin_code??"" !!}

We're here to help

Please contact us at info@artiner.com for any queries.

 Due to impact of COVID-19,it may take longer than usual to process the order.