@php $shippingOption = $this->order->shippingOption; $billingAddress = $this->order->billingAddress; $shippingAddress = $this->order->shippingAddress; $total = $order->total() + $shippingOption?->price; $customer = $this->customer; @endphp

{{ $order->number }}

{{ $order->status->getLabel() }}
@if (! $order->isCompleted()) @if (! $order->isPaid()) @endif @endif

{{ __('shopper::pages/products.menu') }}

{{ __('shopper::words.per_page') }}
    @foreach ($items as $item)
  • {{ $item->name }}
    {{ $item->name }}
    {{ $item->product->sku ?? '' }}

    {{ shopper_money_format($item->total, $order->currency_code) }}

  • @endforeach
{{ $items->links() }}
{{ __('shopper::words.subtotal') }} {{ shopper_money_format($order->total(), $order->currency_code) }}

{{ __('shopper::pages/orders.total_price_description') }}

{{ __('shopper::words.payment_method') }}

@if ($order->paymentMethod)
@if ($order->paymentMethod->logo) payment icon @else @endif

{{ $order->paymentMethod->title }}

{{ __('shopper::words.available_methods') }}
@else

{{ __('shopper::pages/orders.no_payment_method') }}

{{ __('shopper::pages/orders.read_about_payment') }}
@endif

{{ __('shopper::words.shipping') }}

@if ($order->shippingOption)
{{ __('shopper::words.provider') }}
{{ $order->shippingOption->name }} ({{ $order->shippingOption->carrier->name }})
{{ __('shopper::forms.label.price') }}
{{ shopper_money_format($order->shippingOption->price, $order->currency_code) }}
{{ __('shopper::forms.label.tax') }}
{{ __('shopper::words.not_available') }}
@else

{{ __('shopper::pages/orders.no_shipping_method') }} {{ __('shopper::pages/orders.read_about_shipping') }}

@endif
{{ __('shopper::words.total') }} {{ shopper_money_format($total, $order->currency_code) }}

{{ __('shopper::pages/orders.private_notes') }}

Customer avatar
@if ($order->notes)

{{ $order->notes }}

@else
@error('notes')

{{ $message }}

@enderror
{{ __('shopper::forms.actions.send') }}
@endif

{{ __('shopper::words.customer') }}

@if ($customer)
Customer profile

{{ $customer->full_name }}

{{ __('shopper::words.view') }}

{{ __('shopper::pages/orders.customer_date', ['date' => $customer->created_at->diffForHumans()]) }}, {{ __('shopper::pages/orders.customer_orders', ['number' => $customer->orders_count]) }}

@else
@endif

{{ __('shopper::pages/orders.customer_infos') }}

@if ($customer)

{{ $customer->email }}

{{ $customer->phone_number ?? __('shopper::words.no_phone_number') }}

@else

{{ __('shopper::pages/orders.customer_infos_empty') }}

@endif
@if ($shippingAddress)

{{ __('shopper::pages/customers.addresses.shipping') }}

{{ $order->shippingAddress->full_name }}
@if ($order->shippingAddress->company) {{ $order->shippingAddress->company }}
@endif {{ $order->shippingAddress->street_address }}
{{ $order->shippingAddress->postal_code }}, {{ $order->shippingAddress->city }}
{{ $order->shippingAddress->country_name }}
@if ($order->shippingAddress->phone) {{ $order->shippingAddress->phone }} @endif

@if ($billingAddress)

{{ __('shopper::pages/customers.addresses.billing') }}

@if ($billingAddress->is($shippingAddress))

{{ __('shopper::words.same_address') }}

@else

{{ $billingAddress->full_name }}
@if ($billingAddress->company) {{ $billingAddress->company }}
@endif {{ $billingAddress->street_address }}
{{ $billingAddress->postal_code }}, {{ $billingAddress->city }}
{{ $billingAddress->country_name }}
@if ($billingAddress->phone) {{ $billingAddress->phone }} @endif

@endif
@endif @endif