@php $orderProducts = apply_filters('ecommerce_thank_you_order_products', $order->products, $order); @endphp

{{ trans('plugins/ecommerce::order.order_summary') }}

{{ $order->code }}
@foreach ($orderProducts as $orderProduct)
{{ $orderProduct->product_name }} {{ $orderProduct->qty }}

{!! BaseHelper::clean($orderProduct->product_name) !!}

@if ($sku = Arr::get($orderProduct->options, 'sku', $orderProduct->product?->sku))

{{ trans('plugins/ecommerce::products.sku') }}: {{ $sku }}

@endif @if ($attributes = Arr::get($orderProduct->options, 'attributes', ''))

{{ $attributes }}

@endif @if (!empty($orderProduct->product_options) && is_array($orderProduct->product_options))
{!! render_product_options_html($orderProduct->product_options, $orderProduct->product?->front_sale_price ?? $orderProduct->price) !!}
@endif @include(EcommerceHelper::viewPath('includes.cart-item-options-extras'), [ 'options' => $orderProduct->options, ]) @php $bundleReference = Arr::get($orderProduct->options, 'extras.upsale_reference_product'); $bundleReferenceProduct = $bundleReference ? \Botble\Ecommerce\Models\Product::query()->where('slug', $bundleReference)->first() : null; @endphp @if ($bundleReference) @include('plugins/ecommerce::themes.includes.cart-bundle-badge', [ 'reference' => $bundleReference, 'referenceProduct' => $bundleReferenceProduct, ]) @endif {!! apply_filters('ecommerce_thank_you_order_product_item', null, $orderProduct, $order) !!}
@php($isOrderProductFree = $orderProduct->price == 0)

{{ $isOrderProductFree ? trans('plugins/ecommerce::ecommerce.free') : format_price($orderProduct->price * $orderProduct->qty) }}

@if (EcommerceHelper::isTaxEnabled() && $orderProduct->tax_amount > 0 && count($order->products) > 1)

{{ trans('plugins/ecommerce::order.tax') }}: {{ format_price($orderProduct->tax_amount) }} @if (EcommerceHelper::isDisplayCheckoutTaxInformation() && !empty($orderProduct->options['taxClasses'])) ( @foreach ($orderProduct->options['taxClasses'] as $taxName => $taxRate) {{ $taxName }} {{ $taxRate }}%@if (!$loop->last), @endif @endforeach ) @elseif (EcommerceHelper::isDisplayCheckoutTaxInformation() && !empty($orderProduct->options['taxRate']) && $orderProduct->options['taxRate'] > 0) ({{ $orderProduct->options['taxRate'] }}%) @endif

@endif
@endforeach
{!! apply_filters('ecommerce_thank_you_after_order_products', null, $order) !!} @if ($order->description)

{{ trans('plugins/ecommerce::order.order_note') }}

{{ $order->description }}

@endif @if (!empty($isShowTotalInfo)) @include('plugins/ecommerce::orders.thank-you.total-info', compact('order')) @endif