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

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

{{ __('labels.order_number') }}
{{ $order['uuid'] }}
{{ __('labels.order_date') }}
{{ $order['created_at'] }}
{{ __('labels.status') }}
{{ Str::ucfirst(Str::replace("_", " ", $order['status']))}}
{{ __('labels.final_total') }}
{{ $systemSettings['currencySymbol'] . number_format($order['final_total'], 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 @if($order['wallet_balance'] > 0) @endif @if($order['promo_discount'] > 0) @endif
--}} {{-- --}} {{-- {{ __('labels.store_name') }} {{ __('labels.product') }} {{ __('labels.variant') }} {{ __('labels.price') }} {{ __('labels.status') }} {{ __('labels.quantity') }} {{ __('labels.subtotal') }}
--}} {{-- --}} {{-- {{ $item['store']['name'] ?? 'N/A' }} {{ $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['subtotal'], 2) }}
{{ __('labels.shipping_handling') }} : {{ $systemSettings['currencySymbol'] }}{{ number_format($order['delivery_charge'], 2) }}
{{ __('labels.handling_charges') }}: {{ $systemSettings['currencySymbol'] }}{{ number_format($order['handling_charges'] ?? 0, 2) }}
{{ __('labels.per_store_drop_off_fee') }}: {{ $systemSettings['currencySymbol'] }}{{ number_format($order['per_store_drop_off_fee'] ?? 0, 2) }}
{{ __('labels.grand_total') }}: {{ $systemSettings['currencySymbol'] }}{{ number_format($order['subtotal'] + $order['delivery_charge'] + ($order['handling_charges'] ?? 0) + ($order['per_store_drop_off_fee'] ?? 0), 2) }}
{{ __('labels.wallet_used') }}: - {{ $systemSettings['currencySymbol'] }}{{ $order['wallet_balance'] }}
{{ __('labels.promo_discount') }} @if(!empty($order['promo_line']) && $order['promo_line']['cashback_flag']) ({{ __('labels.cashback') }}) @endif ({{ $order['promo_code'] }}): - {{ $systemSettings['currencySymbol'] }}{{ $order['promo_discount'] }}
{{ __('labels.total_payable') }}: {{ $systemSettings['currencySymbol'] }}{{ $order['total_payable'] }}
{{--
--}} {{--
--}} {{--
--}} {{--

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

--}} {{--
--}} {{--
--}} {{--
--}} {{--

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

--}} {{--
--}} {{--
--}} {{--
--}} {{-- @csrf--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}
@endsection @push('scripts') @endpush