@php use App\Enums\Order\OrderItemStatusEnum;use App\Enums\Order\OrderStatusEnum; @endphp @extends('layouts.seller.app', ['page' => $menuSeller['orders']['active'] ?? ""]) @section('title', __('labels.order_details')) @section('header_data') @php $page_title = __('labels.order_details'); $page_pretitle = __('labels.seller') . " " . __('labels.order_details'); @endphp @endsection @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('seller.dashboard')], ['title' => __('labels.orders'), 'url' => route('seller.orders.index')], ['title' => __('labels.order_details'), 'url' => ''] ]; @endphp @section('seller-content')

{{ __('labels.order_summary') }}

{{ __('labels.order_number') }}
{{ $order['uuid'] }}
{{ __('labels.order_date') }}
{{ $order['created_at'] }}
{{ __('labels.status') }}
{{ Str::ucfirst(Str::replace("_", " ", $order['status']))}}
{{ __('labels.total_price') }}
{{ $systemSettings['currencySymbol'] . number_format($order['total_price'], 2) }}
{{ __('labels.payment_method') }}
{{ $order['payment_method'] }}
{{ __('labels.payment_status') }}
{{ $order['payment_status'] }}
@if(!empty($order['order_note']))

{{ __('labels.customer_information') }}

{{ __('labels.order_note') }}
@endif

{{ __('labels.customer_information') }}

{{ __('labels.customer_name') }}
{{ $order['billing_name'] }}
{{ __('labels.email') }}
{{ $order['email'] }}
{{ __('labels.phone') }}
{{ $order['billing_phone'] }}

{{ __('labels.shipping_address') }}

{{ $order['shipping_name'] }}
{{ $order['shipping_address_1'] }}
@if($order['shipping_address_2']) {{ $order['shipping_address_2'] }}
@endif @if($order['shipping_landmark']) {{ $order['shipping_landmark'] }}
@endif {{ $order['shipping_city'] }} , {{ $order['shipping_state'] }} {{ $order['shipping_zip'] }}
{{ $order['shipping_country'] }}
{{ $order['shipping_phone'] }}

{{ __('labels.order_items') }}

@foreach($order['items'] as $item) @endforeach
{{ __('labels.product') }} {{ __('labels.variant') }} {{ __('labels.price') }} {{ __('labels.status') }} {{ __('labels.quantity') }} {{ __('labels.subtotal') }}
{{ $item['product']['title'] ?? 'N/A' }} @if(!empty($item['attachments']))
Attachments
    @foreach($item['attachments'] as $attachment)
  • view
  • @endforeach
@endif
{{ $item['variant']['title'] ?? 'N/A' }} {{$systemSettings['currencySymbol'] . number_format($item['price'], 2) }} {{ $item['orderItem']['status_formatted'] }} {{ $item['quantity'] }} {{ $systemSettings['currencySymbol'] . number_format($item['subtotal'], 2) }}
{{ __('labels.total') }}: {{ collect($order['items'])->sum('quantity') }} {{$systemSettings['currencySymbol'] . number_format($order['total_price'], 2) }}
@if(!in_array($order['status'], [OrderStatusEnum::COLLECTED(), OrderStatusEnum::READY_FOR_PICKUP(),OrderStatusEnum::OUT_FOR_DELIVERY(),OrderStatusEnum::DELIVERED(),OrderStatusEnum::FAILED(),OrderStatusEnum::CANCELLED()]))

{{ __('labels.update_status') }}

{{ __('labels.select_items_to_update_status') ?? 'Select one or more items from the table above to update their status.' }}

@csrf
@endif
@endsection @push('scripts') @endpush