@extends(MarketplaceHelper::viewPath('vendor-dashboard.layouts.master')) @section('content')
@include('plugins/ecommerce::orders.partials.canceled-alert', compact('order'))
{{ trans('plugins/ecommerce::order.order_information') }} {{ $order->code }} @if ($order->completed_at) {{ trans('plugins/ecommerce::order.completed') }} @else {{ trans('plugins/ecommerce::order.uncompleted') }} @endif @foreach ($order->products as $orderProduct) @php $product = $orderProduct->product; @endphp {{ $orderProduct->product_name }}
{{ $orderProduct->product_name }} @if ($sku = Arr::get($orderProduct->options, 'sku'))

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

@endif
@if ($attributes = Arr::get($orderProduct->options, 'attributes'))
{{ $attributes }}
@endif @include( EcommerceHelper::viewPath('includes.cart-item-options-extras'), ['options' => $orderProduct->options] ) {!! apply_filters(ECOMMERCE_ORDER_DETAIL_EXTRA_HTML, null) !!} @if ($order->shipment->id)

{{ $orderProduct->qty }} {{ trans('plugins/ecommerce::order.completed') }}

  • {{ trans('plugins/ecommerce::order.shipping') }} {{ $order->shipping_method_name }}
@endif
{{ format_price($orderProduct->price) }} x {{ $orderProduct->qty }} {{ format_price($orderProduct->price * $orderProduct->qty) }}
@endforeach
{{ trans('plugins/ecommerce::order.sub_amount') }} {{ format_price($order->sub_total) }} {{ trans('plugins/ecommerce::order.discount') }} @if ($order->coupon_code)

{!! 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 }} {{ ecommerce_convert_weight($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
{{ format_price($order->amount) }}

@if(is_plugin_active('payment')) {{ trans('plugins/ecommerce::order.paid_amount') }} {{ format_price($order->payment->status == Botble\Payment\Enums\PaymentStatusEnum::COMPLETED ? $order->payment->amount : 0) }} @if ($order->payment->status == Botble\Payment\Enums\PaymentStatusEnum::REFUNDED) @endif @endif
@if ($order->isInvoiceAvailable())
{{ trans('plugins/ecommerce::order.download_invoice') }}
@endif {{ trans('plugins/ecommerce::order.save') }}
$order->is_confirmed]) /> @if ($order->is_confirmed) {{ trans('plugins/ecommerce::order.order_was_confirmed') }} @else {{ trans('plugins/ecommerce::order.confirm_order') }} @endif
@if (!$order->is_confirmed) {{ trans('plugins/ecommerce::order.confirm') }} @endif
@if ($order->status == Botble\Ecommerce\Enums\OrderStatusEnum::CANCELED)
{{ trans('plugins/ecommerce::order.order_was_canceled') }} @if($order->cancellation_reason)
{{ trans('plugins/ecommerce::order.cancellation_reason', ['reason' => $order->cancellation_reason_message]) }}
@endif
@endif @if ($order->status == Botble\Ecommerce\Enums\OrderStatusEnum::CANCELED && !$order->shipment->id)
{{ trans('plugins/ecommerce::order.all_products_are_not_delivered') }}
@else @if ($order->shipment->id)
{{ trans('plugins/ecommerce::order.delivery') }}
@endif @endif @if (!$order->shipment->id) @else @include(MarketplaceHelper::viewPath('vendor-dashboard.orders.shipment-detail'), [ 'shipment' => $order->shipment, ]) @endif
{{ trans('plugins/ecommerce::order.history') }}
    @foreach ($order->histories()->orderByDesc('id')->get() as $history)
  • $history->user_id])>
    @if (in_array($history->action, ['confirm_payment', 'refund'])) {{ OrderHelper::processHistoryVariables($history) }} @else {{ OrderHelper::processHistoryVariables($history) }} @endif
    {{ BaseHelper::formatDateTime($history->created_at) }}
    @if ($history->action == 'refund' && Arr::get($history->extras, 'amount', 0) > 0) @endif @if (is_plugin_active('payment') && $history->action == 'confirm_payment' && $order->payment) @endif @if ($history->action == 'send_order_confirmation_email') {{ trans('plugins/ecommerce::order.resend') }} @endif
  • @endforeach
{{ trans('plugins/ecommerce::order.customer_label') }}
@php $userInfo = $order->address->id ? $order->address : $order->user; @endphp

{{ $userInfo->name }}

@if ($userInfo->id)

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

@endif @if ($userInfo->email)

{{ $userInfo->email }}

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

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

@else

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

@endif
@if (!EcommerceHelper::countDigitalProducts($order->products))

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

@if ($order->status != Botble\Ecommerce\Enums\OrderStatusEnum::CANCELED) @endif
@include( 'plugins/ecommerce::orders.shipping-address.detail', ['address' => $order->shippingAddress] )
@endif @if ( EcommerceHelper::isBillingAddressEnabled() && $order->billingAddress->id && $order->billingAddress->id != $order->shippingAddress->id )

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

@include('plugins/ecommerce::orders.shipping-address.detail', [ 'address' => $order->billingAddress, ])
@endif @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
@if ($order->canBeCanceledByAdmin()) {{ trans('plugins/ecommerce::order.cancel') }} @endif
@endsection @pushif ($order->status != Botble\Ecommerce\Enums\OrderStatusEnum::CANCELED, 'footer') @include('plugins/ecommerce::orders.shipping-address.form', [ 'address' => $order->address, 'orderId' => $order->id, 'url' => route('marketplace.vendor.orders.update-shipping-address', $order->address->id ?? 0), ]) @if ($order->shipment && $order->shipment->id) @include(MarketplaceHelper::viewPath('vendor-dashboard.orders.shipping-status-modal'), [ 'shipment' => $order->shipment, 'url' => route('marketplace.vendor.orders.update-shipping-status', $order->shipment->id), ]) @endif @endpushif