@extends('frontend.frontend-page-master') @section('page-title') {{__('Order Success')}} @endsection @section('content')

{{get_static_option('product_success_page_' . $user_select_lang_slug . '_title')}}

{{get_static_option('product_success_page_' . $user_select_lang_slug . '_description')}}

  • {{__('Order ID: ')}} {{'#'.$order_details->id}}
  • {{__('Shipping Method:')}} {{get_shipping_name_by_id($order_details->product_shippings_id)}}
  • {{__('Payment Method:')}} {{str_replace('_',' ', ucfirst($order_details->payment_gateway))}}
  • {{__('Payment Status:')}} {{__($order_details->payment_status)}}
  • {{__('Order Status:')}} {{__($order_details->status)}}

{{__('Billing Details')}}

  • {{__('Name')}} {{$order_details->billing_name}}
  • {{__('Email')}} {{$order_details->billing_email}}
  • {{__('Phone')}} {{$order_details->billing_phone}}
  • {{__('Country')}} {{$order_details->billing_country}}
  • {{__('Street Address')}} {{$order_details->billing_street_address}}
  • {{__('District')}} {{$order_details->billing_district}}
  • {{__('Town')}} {{$order_details->billing_town}}
@if($order_details->different_shipping_address == 'yes')

{{__('Shipping Details')}}

  • {{__('Name')}} {{$order_details->shipping_name}}
  • {{__('Email')}} {{$order_details->shipping_email}}
  • {{__('Phone')}} {{$order_details->shipping_phone}}
  • {{__('Country')}} {{$order_details->shipping_country}}
  • {{__('Street Address')}} {{$order_details->shipping_street_address}}
  • {{__('District')}} {{$order_details->shipping_district}}
  • {{__('Town')}} {{$order_details->shipping_town}}
@endif
@php $cart_items = unserialize($order_details->cart_items); @endphp

{{__('Order Summery')}}

@if(\App\Facades\Cart::is_tax_enable() && get_static_option('product_tax_type') === 'individual') @php $tax_percentage = get_static_option('product_tax_type') === 'total' ? '('.get_static_option('product_tax_percentage').')' : ''; @endphp @endif
{{__('Subtotal')}} {{amount_with_currency_symbol($order_details->subtotal)}}
{{__('Coupon Discount')}} - {{amount_with_currency_symbol($order_details->coupon_discount)}}
{{__('Shipping Cost')}} + {{amount_with_currency_symbol($order_details->shipping_cost)}}
{{__('Tax')}} {{$tax_percentage}} + {{amount_with_currency_symbol(\App\Facades\Cart::cart_tax_for_mail_template($cart_items,$order_details))}}
{{__('Total')}} {{amount_with_currency_symbol($order_details->total)}}
@if(get_static_option('product_tax') && get_static_option('product_tax_system') === 'inclusive')

{{__('Inclusive of custom duties and taxes where applicable')}}

@endif

{{__('Ordered Products')}}

@foreach($cart_items as $item) @php $product_info = \App\Products::find($item['id']);@endphp @endforeach
{{__('Thumbnail')}} {{__('Product Info')}}
{!! render_image_markup_by_attachment_id($product_info->image,'','thumb') !!}

{{$product_info->title}} @php $product_variant_price = 0; @endphp @if (!empty($item['variant'])) @foreach(json_decode($item['variant']) as $variants) @php $variant = get_product_variant_list_by_id($variants->variantID); @endphp @if(!empty($variant)) @php $index = array_search($variants->term, json_decode($variant->terms,true)); $prices = json_decode($variant->price) ?? []; $terms = json_decode($variant->terms) ?? []; @endphp
  • {{$terms[$index] ?? ''}} @if (isset($prices[$index]) && !empty($prices[$index])) @php $product_variant_price += $prices[$index]; @endphp +{{amount_with_currency_symbol($prices[$index])}} @endif
@endif @endforeach @endif

{{__('Price :')}} {{amount_with_currency_symbol($product_info->sale_price + $product_variant_price)}} {{__('Quantity :')}} {{$item['quantity']}} @php $tax_amount = 0; @endphp @if(get_static_option('product_tax_type') === 'individual' && is_tax_enable()) @php $percentage = !empty($product_info->tax_percentage) ? $product_info->tax_percentage : 0; $tax_amount = ($product_info->sale_price + $product_variant_price) / 100 * $product_info->tax_percentage; @endphp {{__('Tax')}} {{'('.$percentage.'%) :'}} +{{amount_with_currency_symbol($tax_amount)}} @endif {{__('Subtotal :')}} {{amount_with_currency_symbol(($product_info->sale_price + $product_variant_price + $tax_amount) * $item['quantity'] )}}
@if(auth()->guard('web')->check()) {{__('Go To Dashboard')}} @else {{__('Back To Home')}} @endif
@endsection