@extends('frontend.frontend-page-master') @section('page-title') {{__('Order Success')}} @endsection @section('breadcrumb')
  • {{get_static_option('product_page_' . $user_select_lang_slug . '_name')}}
  • {{__('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:')}} {{ucwords(get_shipping_name_by_id($order_details->product_shippings_id))}}
    • {{__('Payment Method:')}} {{str_replace('_',' ', ucfirst($order_details->payment_gateway))}}
    • {{__('Payment Status:')}} {{ucfirst($order_details->payment_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(is_tax_enable()) @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(cart_tax_for_mail_template($cart_items))}}
    {{__('Total')}} {{amount_with_currency_symbol($order_details->total)}}

    {{__('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}}

    {{__('Price :')}} {{amount_with_currency_symbol($product_info->sale_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 * $item['quantity']) / 100 * $product_info->tax_percentage; @endphp {{__('Tax ('.$percentage.'%) :')}} +{{amount_with_currency_symbol($tax_amount)}} @endif {{__('Subtotal :')}} {{amount_with_currency_symbol($product_info->sale_price * $item['quantity'] + $tax_amount )}}
    @endsection