@extends(Theme::getThemeNamespace() . '::views.ecommerce.customers.master') @section('content') @php Theme::set('pageName', __('Order information')) @endphp

{{ __('Order information') }}

{{ theme_option('site_title') }}
{{ setting('contact_address') }}

{{ __('Order number') }}: {{ get_order_code($order->id) }}

{{ __('Time') }}: {{ $order->created_at->translatedFormat('M d, Y h:m') }}
{{ __('Order information') }}
{{ __('Order status') }}: {!! $order->status->toHtml() !!}
{{ __('Payment method') }}: {!! $order->payment->payment_channel->label() !!}
{{ __('Payment status') }}: {!! $order->payment->status->toHtml() !!}
{{ __('Amount') }}: {{ format_price($order->amount, $order->currency_id) }}
@if (EcommerceHelper::isTaxEnabled())
{{ __('Tax') }}: {{ format_price($order->tax_amount, $order->currency_id) }}
@endif
{{ __('Shipping fee') }}: {{ format_price($order->shipping_amount, $order->currency_id) }}
@if ($order->description) {{ __('Note') }}: {{ $order->description }}   @endif

{{ __('Customer information') }}
{{ __('Full Name') }}: {{ $order->address->name }}
{{ __('Phone') }}: {{ $order->address->phone }}
{{ __('Address') }}: {{ $order->address->address }}
{{ __('City') }}: {{ $order->address->city }}
{{ __('State') }}: {{ $order->address->state }}

{{ __('Order detail') }}
@foreach($order->products as $key => $orderProduct) @php $product = get_products([ 'condition' => [ 'ec_products.status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED, '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', ], ]); @endphp @endforeach
# {{ __('Image') }} {{ __('Product') }} {{ __('Amount') }} {{ __('Quantity') }} {{ __('Total') }}
{{ $key + 1 }} @if ($product) {{ $product->name }} @endif {{ $orderProduct->product_name }} @if ($product && $product->sku) ({{ $product->sku }}) @endif @if ($product && $product->is_variation)

@php $attributes = get_product_attributes($product->id) @endphp @if (!empty($attributes)) @foreach ($attributes as $attribute) {{ $attribute->attribute_set_title }}: {{ $attribute->title }}@if (!$loop->last), @endif @endforeach @endif

@endif
{{ format_price($orderProduct->price) }} {{ $orderProduct->qty }} {{ format_price($orderProduct->price * $orderProduct->qty) }}

{{ __('Print order') }} @if ($order->canBeCanceled()) {{ __('Cancel order') }} @endif
@endsection