@php $orderProducts = apply_filters('ecommerce_thank_you_order_products', $order->products, $order); @endphp
{!! 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)) @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) !!}{{ $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{{ $order->description }}