@extends("front/layout.master") @section('title', 'Order Placed Successfully |') @section('body')
@php $order = App\Order::where('order_id', app('request')->input('orderid') ?? '') ->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 != '') { $country = App\Allcountry::where('id', $user->country_id)->first()->nicename; $state = App\Allstate::where('id', $user->state_id)->first()->name; $city = App\Allcity::where('id', $user->city_id)->first() ? App\Allcity::where('id', $user->city_id)->first()->name : ''; } @endphp

{{ __('staticwords.Thankyou') }}

{{ __('staticwords.orderplacedsuccesstext') }} #{{ app('request')->input('orderid') ?? '' }}

Order Updates

You will Receive an email when your order is ready.

Contact information:

{{ $user->email }}

Payment Method:

{{ ucfirst($order->payment_method) }}

Shipping Address:
{{ $address->name }}
  • {{ strip_tags($address->address) }}, @php $user = App\User::findorfail($order->user_id); $country = App\Allcountry::where('id', $address->country_id)->first()->nicename; $state = App\Allstate::where('id', $address->state_id)->first()->name; $city = App\Allcity::where('id', $address->city_id)->first() ? App\Allcity::where('id', $address->city_id)->first()->name : ''; @endphp {{ $country }}, {{ $state }}, {{ $city }}
  • @if (!empty($address->pin_code))
  • {{ $address->pin_code }}
  • @endif @if (!empty($address->phone))
  • {{ $address->phone }}
  • @endif
Billing Address:
{{ $order->billing_address['firstname'] }}
  • {{ strip_tags($order->billing_address['address']) }} @php $country = App\Allcountry::where('id', $order->billing_address['country_id'])->first()->nicename; $state = App\Allstate::where('id', $order->billing_address['state'])->first()->name; $city = App\Allcity::where('id', $order->billing_address['city'])->first() ? App\Allcity::where('id', $order->billing_address['city'])->first()->name : ''; @endphp {{ $country }}, {{ $state }}, {{ $city }}
  • {{ $order->billing_address['pincode'] ?? '' }}
  • @if (!empty($order->billing_address['mobile']))
  • {{ $order->billing_address['mobile'] }}
  • @endif
@foreach ($order->invoices as $invoice) @if (isset($invoice->simple_product))
@if($invoice->simple_product['thumbnail'] != '' && file_exists(public_path().'/images/simple_products/'.$invoice->simple_product['thumbnail'])) product image @else product image @endif @endif
@if ($invoice->simple_product)
@php $category = App\Category::with('simpleproducts')->where('id','=',$invoice->simple_product->category_id)->first(); $cat_slug = str_slug($category->title, '-', app()->getLocale()); $subcategory =App\Subcategory::with('simpleproducts')->where('id','=',$invoice->simple_product->subcategory_id)->first(); $subcat_slug = str_slug($subcategory->title, '-', app()->getLocale()); @endphp @endif @if (!empty($product->material)) {{ $product->material }}
@endif @if (!empty($product->material) && !empty($product->size)) {{ ' , ' }} @endif
{{ round($invoice->qty * ($invoice->price + $invoice->tax_amount) + $invoice->shipping, 2) }}

@endforeach
Sub Total : {{ round($order->order_total + $order->discount - $order->gift_charge, 2) }}
Coupon Discount: {{ round($order->discount, 2) }}
Gift Packaging Charge: + {{ round($order->gift_charge, 2) }}
Handling Charge: + {{ round($order->handlingcharge, 2) }}
Grand Total:
{{ round($order->order_total + $order->handlingcharge, 2) }}

@endsection