@extends('layouts/layoutMaster') @section('title', __('locale.Order Details')) @section('vendor-style') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', 'resources/assets/vendor/libs/select2/select2.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/cleave-zen/cleave-zen.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/select2/select2.js']) @endsection @section('page-script') @endsection @section('content')
{{ __('locale.Order') }} #{{ $order->order_id }} {{ $order->payment_status }} {{ $order->status }}

created_at->format('d, M') }} {{ $order->created_at->format('Y') }}, {{ $order->created_at->format('h:i A') }}

@foreach ($order->items as $item) @endforeach
{{ __('locale.Products') }} {{ __('locale.Price') }} {{ __('locale.Qty') }} {{ __('locale.Total') }}
{{ $item->name ?? 'N/A' }} {{ $currency }}{{ number_format($item->price, 2) }} {{ $item->quantity }} {{ $currency }}{{ number_format($item->price * $item->quantity, 2) }}
{{ __('locale.Subtotal') }}:
{{ $currency }}{{ number_format($order->subtotal, 2) }}
{{ __('locale.Discount') }}:
{{ $currency }}{{ number_format($order->discount ?? 0, 2) }}
{{ __('locale.Tax') }}:
{{ $currency }}{{ number_format($order->tax ?? 0, 2) }}
{{ __('locale.Total') }}:
{{ $currency }}{{ number_format($order->grand_total, 2) }}
{{ __('locale.Shipping Activity') }}
    @forelse($order->statusLogs->sortBy('created_at') as $log)
  • {{ str_replace('_', ' ', $log->status) }}
    {{ $log->created_at->format('l h:i A') }}

    {{ Helper::getStatusMessage($log->status) }}

  • @empty
  • {{ __('locale.No Status Updates') }}
  • @endforelse
{{ __('locale.Customer details') }}
Avatar
{{ $order->user->name ?? 'N/A' }}
{{ __('locale.Customer ID') }}: #{{ $order->user->id }}
{{ __('locale.Contact info') }}

{{ __('locale.Email') }}: {{ $order->user->email ?? 'N/A' }}

{{ __('locale.Phone') }}: {{ $order->user->phone ?? 'N/A' }}

@php $address = is_array($order->address) ? $order->address : json_decode($order->address, true); @endphp
{{ __('locale.Shipping Address') }}
@if (!empty($address))

{{ $address['name'] ?? '' }}
{{ $address['address'] ?? '' }}
{{ $address['city'] ?? '' }} - {{ $address['postcode'] ?? '' }}
{{ $address['state'] ?? '' }}
{{ $address['country'] ?? '' }}

@else

{{ __('locale.No address available.') }}

@endif
@if (!empty($order->transaction))
{{ __('locale.Payment Details') }}

{{ $order->transaction?->txn_id }}

{{ $order->transaction?->payment_mode }}

{{ $currency }}{{ $order->transaction?->amount }}

@endif
@endsection