@extends('plugins/ecommerce::orders.master') @section('title', __('Order successfully at :site_title', ['site_title' => Theme::getSiteTitle()])) @section('content')
@include('plugins/ecommerce::orders.partials.logo')

{{ __('Your order is successfully placed') }}

{{ __('Thank you for purchasing our products!') }}

@include('plugins/ecommerce::orders.thank-you.customer-info', [ 'order' => $orders, 'isShowShipping' => false, ]) {{ __('Continue shopping') }}
@php $isUnifiedShipping = ! MarketplaceHelper::isChargeShippingPerVendor(); $totalShippingAmount = $orders->sum('shipping_amount'); $hasShipping = $orders->filter(fn ($order) => $order->shipment->id)->count() > 0; @endphp @foreach ($orders as $order)
@if ($isUnifiedShipping) {{-- For unified shipping, show products only without individual shipping breakdown --}} @include('plugins/ecommerce::orders.thank-you.order-info', ['isShowTotalInfo' => false]) {{-- Show simplified order totals for individual orders --}}
@if ($order->sub_total != $order->amount) @include('plugins/ecommerce::orders.thank-you.total-row', [ 'label' => __('Subtotal'), 'value' => format_price($order->sub_total), ]) @endif @if (EcommerceHelper::isTaxEnabled() && (float) $order->tax_amount) @include('plugins/ecommerce::orders.thank-you.total-row', [ 'label' => __('Tax'), 'value' => format_price($order->tax_amount), ]) @endif @if ((float) $order->discount_amount) @include('plugins/ecommerce::orders.thank-you.total-row', [ 'label' => __('Discount'), 'value' => format_price($order->discount_amount) . ($order->coupon_code ? ' (' . __('Using coupon code') . ': ' . $order->coupon_code . ')' : ''), ]) @endif @if ((float) $order->payment_fee) @include('plugins/ecommerce::orders.thank-you.total-row', [ 'label' => __('plugins/payment::payment.payment_fee'), 'value' => format_price($order->payment_fee), ]) @endif

{{ __('Order Total') }}:

{{ format_price($order->amount) }}

@else {{-- For per-vendor shipping, show normal order info with shipping --}} @include('plugins/ecommerce::orders.thank-you.order-info', ['isShowTotalInfo' => true]) @endif
@if (! $loop->last)
@endif @endforeach @if (count($orders) > 1)

{{ __('Sub amount') }}:

{{ format_price($orders->sum('sub_total')) }}

@if ($hasShipping && $totalShippingAmount > 0)

{{ __('Shipping fee') }}:

{{ format_price($totalShippingAmount) }}

@endif @if ($orders->sum('discount_amount'))

{{ __('Discount') }}:

{{ format_price($orders->sum('discount_amount')) }}

@endif @if (EcommerceHelper::isTaxEnabled())

{{ __('Tax') }}:

{{ format_price($orders->sum('tax_amount')) }}

@endif @if ($orders->sum('payment_fee'))

{{ __('Payment Fee') }}:

{{ format_price($orders->sum('payment_fee')) }}

@endif

{{ __('Total amount') }}:

{{ format_price($orders->sum('amount')) }}

@endif
{{-- Continue shopping button for mobile, positioned at the bottom --}}
{{ __('Continue shopping') }}
@stop