@if ($order)
! $order->address->name, 'col-md-6' => $order->address->name])>
{{ trans('plugins/ecommerce::order.order_information') }}
{{ trans('plugins/ecommerce::order.order_number_1') }}: {{ $order->code }}
{{ trans('plugins/ecommerce::ecommerce.time') }}: {{ $order->created_at->translatedFormat('d M Y H:i:s') }}
{{ trans('plugins/ecommerce::order.order_status') }}: {!! BaseHelper::clean($order->status->toHtml()) !!}
@if($order->cancellation_reason)
{{ trans('plugins/ecommerce::order.cancellation_reason') }}: {{ $order->cancellation_reason_message }}
@endif @if (is_plugin_active('payment') && $order->payment->id)
{{ trans('plugins/ecommerce::order.payment_method') }}: {{ $order->payment->payment_channel->displayName() }}
{{ trans('plugins/ecommerce::order.payment_status_1') }}: {!! BaseHelper::clean($order->payment->status->toHtml()) !!}
@endif @if ($order->description)
{{ trans('plugins/ecommerce::ecommerce.note') }}: {{ $order->description }}
@endif
@if ($order->address->name)
{{ trans('plugins/ecommerce::order.shipping_address') }}
{{ trans('plugins/ecommerce::ecommerce.full_name') }}: {{ $order->address->name }}
{{ trans('plugins/ecommerce::ecommerce.phone') }}: {{ $order->address->phone }}
{{ trans('plugins/ecommerce::ecommerce.address') }}: {{ $order->address->full_address }}
@endif
{{ trans('plugins/ecommerce::products.products') }}
@foreach ($order->products as $orderProduct) @php $product = get_products([ 'condition' => [ 'ec_products.id' => $orderProduct->product_id, ], 'take' => 1, 'select' => ['ec_products.id', 'ec_products.images', 'ec_products.name', 'ec_products.price', 'ec_products.sale_price', 'ec_products.sale_type', 'ec_products.start_date', 'ec_products.end_date', 'ec_products.sku', 'ec_products.is_variation', 'ec_products.status', 'ec_products.order', 'ec_products.created_at'], ]); @endphp
{{ $orderProduct->product_name }}
@if ($product && $product->original_product?->url) {!! BaseHelper::clean($orderProduct->product_name) !!} @else {!! BaseHelper::clean($orderProduct->product_name) !!} @endif
@if ($sku = Arr::get($orderProduct->options, 'sku'))
{{ $sku }}
@endif
@if ($attributes = Arr::get($orderProduct->options, 'attributes'))
{{ $attributes }}
@elseif ($product && $product->is_variation)
@if ($attributes = get_product_attributes($product->getKey())) @foreach ($attributes as $attribute) {{ $attribute->attribute_set_title }}: {{ $attribute->title }} @if (!$loop->last) , @endif @endforeach @endif
@endif @include( EcommerceHelper::viewPath('includes.cart-item-options-extras'), ['options' => $orderProduct->options] ) @if (!empty($orderProduct->product_options) && is_array($orderProduct->product_options)) {!! render_product_options_html($orderProduct->product_options, $orderProduct->price) !!} @endif @if ($orderProduct->license_code) @php $licenseCodes = $orderProduct->license_codes_array; $hasMultipleCodes = count($licenseCodes) > 1; @endphp
{{ $hasMultipleCodes ? trans('plugins/ecommerce::products.license_codes.codes') . ' (' . count($licenseCodes) . ')' : trans('plugins/ecommerce::products.license_codes.code') }}:
@if ($hasMultipleCodes)
@foreach ($licenseCodes as $index => $code)
{{ $index + 1 }}. {{ $code }}
@endforeach
@else {{ $licenseCodes[0] ?? $orderProduct->license_code }} @endif
@endif @if (is_plugin_active('marketplace') && ($product = $orderProduct->product) && $product->original_product->store?->id)
{{ trans('plugins/ecommerce::ecommerce.sold_by') }}: {{ $product->original_product->store->name }}
@endif
{{ trans('plugins/ecommerce::products.price') }}: {{ $orderProduct->amount_format }}
{{ trans('plugins/ecommerce::products.quantity') }}: {{ $orderProduct->qty }}
{{ trans('plugins/ecommerce::ecommerce.total') }}: {{ $orderProduct->total_format }}
@endforeach
@if (EcommerceHelper::isTaxEnabled() && (float)$order->tax_amount)
{{ trans('plugins/ecommerce::ecommerce.tax') }}: {{ format_price($order->tax_amount) }}
@endif @if ((float)$order->discount_amount)
{{ trans('plugins/ecommerce::ecommerce.discount') }}: {{ format_price($order->discount_amount) }} @if ($order->discount_amount) @if ($order->coupon_code) ({!! BaseHelper::html(trans('plugins/ecommerce::ecommerce.coupon_code_with_code', ['code' => Html::tag('strong', $order->coupon_code)->toHtml()])) !!}) @elseif ($order->discount_description) ({{ $order->discount_description }}) @endif @endif
@endif @if ((float)$order->shipping_amount && EcommerceHelper::countDigitalProducts($order->products) != $order->products->count())
{{ trans('plugins/ecommerce::order.shipping_fee') }}: {{ format_price($order->shipping_amount) }}
@endif
{{ trans('plugins/ecommerce::ecommerce.total_amount') }}: {{ format_price($order->amount) }}
@if (! EcommerceHelper::isDisabledPhysicalProduct() && $order->shipment->id)
{{ trans('plugins/ecommerce::order.shipping_information') }}
{{ trans('plugins/ecommerce::order.shipping_status') }}: {!! BaseHelper::clean($order->shipment->status->toHtml()) !!}
@if ($order->shipment->shipping_company_name)
{{ trans('plugins/ecommerce::order.shipping_company_name') }}: {{ $order->shipment->shipping_company_name }}
@endif @if ($order->shipment->tracking_id)
{{ trans('plugins/ecommerce::order.tracking_id') }}: {{ $order->shipment->tracking_id }}
@endif @if ($order->shipment->tracking_link)
{{ trans('plugins/ecommerce::order.tracking_link') }}: {{ $order->shipment->tracking_link }}
@endif @if ($order->shipment->note)
{{ trans('plugins/ecommerce::order.delivery_notes') }}: {{ $order->shipment->note }}
@endif @if ($order->shipment->estimate_date_shipped)
{{ trans('plugins/ecommerce::ecommerce.estimate_date_shipped') }}: {{ $order->shipment->estimate_date_shipped }}
@endif @if ($order->shipment->date_shipped)
{{ trans('plugins/ecommerce::ecommerce.date_shipped') }}: {{ $order->shipment->date_shipped }}
@endif
@endif
@elseif (request()->input('order_id') || request()->input('email')) @endif