@extends('layouts/layoutMaster') @section('title', __('locale.Order Details')) @section('vendor-style') @vite(['resources/assets/css/datatables.scss', 'resources/assets/vendor/libs/raty-js/raty-js.scss', 'resources/assets/vendor/scss/pages/app-invoice.scss']) @endsection @section('vendor-script') @vite(['resources/assets/js/datatables.js', 'resources/assets/vendor/libs/raty-js/raty-js.js', 'resources/assets/js/star-ratings.js']) @endsection @section('content') @php $currency = $order->currency ?? Helper::setting('currency_symbol', 'currency'); @endphp
{{ $order->created_at->format('d, M') }} {{ $order->created_at->format('Y') }}, {{ $order->created_at->format('h:i A') }}
| {{ __('Image') }} | {{ __('locale.Products') }} | {{ __('locale.Price') }} | {{ __('locale.Qty') }} | {{ __('locale.Total') }} |
|---|---|---|---|---|
|
@php $img=$item->product?->image?->file ?? ''; @endphp
|
{{ $item->name ?? 'N/A' }} | {{ $currency }}{{ number_format($item->price, 2) }} | {{ $item->quantity }} | {{ $currency }}{{ number_format($item->price * $item->quantity, 2) }} |
{{ Helper::getStatusMessage($log->status) }}
{{ $order->ride?->driver?->address }}, {{ $order->ride?->driver?->city }}
{{ __('locale.Email') }}: {{ $order->ride?->driver?->user?->email ?? 'N/A' }}
{{ __('locale.Phone') }}: {{ $order->ride?->driver?->user?->dial_code ?? 'N/A' }}{{ $order->ride?->driver?->user?->phone ?? 'N/A' }}
{{ $order->store->address }}, {{ $order->store->city }}
{{ __('locale.Email') }}: {{ $order->store?->user?->email ?? 'N/A' }}
{{ __('locale.Phone') }}: {{ $order->store?->user?->dial_code ?? 'N/A' }}{{ $order->store?->user?->phone ?? 'N/A' }}
{{ __('locale.Email') }}: {{ $order->user->email ?? 'N/A' }}
{{ __('locale.Phone') }}: {{ $order->user->phone ?? 'N/A' }}
{{ $address['name'] ?? '' }}
{{ $address['address'] ?? '' }}
{{ $address['city'] ?? '' }} - {{ $address['postcode'] ?? '' }}
{{ $address['state'] ?? '' }}
{{ $address['country'] ?? '' }}
{{ __('locale.No address available.') }}
@endif{{ __('locale.Txn ID') }}: {{ $order->transaction->txn_id ?? 'N/A' }}
{{ __('locale.Payment Type') }}: {{ $order->transaction->payment_mode ?? 'N/A' }}
{{ __('locale.Amount') }}: {{ $order->transaction->currency ?? $currency }}{{ $order->transaction->amount ?? 0 }}
@endif