@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content') @if ($order->token) {{ trans('plugins/ecommerce::order.incomplete_order_description_2') }} @if ($hasEmail = ($order->user->email || $order->address->email)) {{ trans('plugins/ecommerce::order.send_an_email_to_recover_this_order') }} @endif @if (! $hasEmail)

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

@endif
@endif
{{ trans('plugins/ecommerce::order.order_information') }} @php $order->load(['products.product']); @endphp @foreach ($order->products as $orderProduct) @php $product = $orderProduct->product; @endphp @if ($product && $product->original_product) {{ $product->name }} @if ($product->original_product->id) {{ $orderProduct->product_name }} @else {{ $orderProduct->product_name }} @endif

{{ $product->variation_attributes }}

@if ($product->sku)

{{ trans('plugins/ecommerce::order.sku') }}: {{ $product->sku }}

@endif
{{ format_price($orderProduct->price) }} x {{ $orderProduct->qty }} {{ format_price($orderProduct->price * $orderProduct->qty) }}
@endif @endforeach
{{ trans('plugins/ecommerce::order.quantity') }} {{ number_format($order->products->sum('qty')) }} {{ trans('plugins/ecommerce::order.sub_amount') }} {{ format_price($order->sub_total) }}

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

@if ($order->coupon_code) {!! BaseHelper::clean( trans('plugins/ecommerce::order.coupon_code', ['code' => Html::tag('strong', $order->coupon_code)->toHtml()]) ) !!} @elseif ($order->discount_description) {{ $order->discount_description }} @endif
{{ format_price($order->discount_amount) }}

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

{{ $order->shipping_method_name }}

{{ $weight }} {{ ecommerce_weight_unit(true) }}

{{ format_price($order->shipping_amount) }}
@if (EcommerceHelper::isTaxEnabled()) {{ trans('plugins/ecommerce::order.tax') }} {{ format_price($order->tax_amount) }} @endif

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

@if (is_plugin_active('payment') && $order->payment->id) {{ $order->payment->payment_channel->label() }} @endif
@if (is_plugin_active('payment') && $order->payment->id) {{ format_price($order->amount) }} @else {{ format_price($order->amount) }} @endif
{!! apply_filters('ecommerce_admin_order_extra_info', null, $order) !!}
{{ trans('plugins/ecommerce::order.save_note') }}
{{ trans('plugins/ecommerce::order.mark_as_completed.name') }}
{{ trans('plugins/ecommerce::order.customer_label') }}

{{ $order->user->name ?: $order->address->name }}

@if ($order->user->id)

{{ $order->user->orders()->count() }} {{ trans('plugins/ecommerce::order.orders') }}

@endif

{{ $email }}

@if ($order->user->id)

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

@else

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

@endif

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

{{ $order->address->name }}
{{ $phone }}
{{ $order->address->full_address }}
{{ trans('plugins/ecommerce::order.see_maps') }}
@if ($order->referral()->count())

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

@foreach (['ip', 'landing_domain', 'landing_page', 'landing_params', 'referral', 'gclid', 'fclid', 'utm_source', 'utm_campaign', 'utm_medium', 'utm_term', 'utm_content', 'referrer_url', 'referrer_domain'] as $field) @if ($order->referral->{$field})
{{ trans("plugins/ecommerce::order.referral_data.$field") }}
{{ $order->referral->{$field} }}
@endif @endforeach
@endif
@stop @push('footer') {!! trans('plugins/ecommerce::order.notice_about_incomplete_order_description', [ 'email' => $order->user->id ? $order->user->email : $order->address->email, ]) !!} @endpush