@lang('admin::home.Order No') - #{{ $order->code }} @php $statusEnum = is_string($order->status) ? (\App\Application\Marketplace\Enums\MerchantOrderStatuses::tryFrom($order->status)) : $order->status; @endphp {{ $statusEnum?->trans() }} {{ __('admin::home.' . $order?->type_service_name()) }}
@php $currentMarkEnum = is_string($mark) ? (\App\Application\Marketplace\Enums\MerchantOrderMarks::tryFrom($mark) ?? \App\Application\Marketplace\Enums\MerchantOrderMarks::WHITE) : $mark; @endphp
@foreach($orderItems as $item) @endforeach
@lang('admin::home.item') @lang('admin::home.qty') @lang('admin::home.Price') @lang('admin::home.Merchant') @lang('admin::home.Total Price')
{{ $item?->item_name }}
{{implode(',',$item->addonName)}}
{{ $item->qty }} {{ number_format($item?->itemPrice, 2) }} @lang('admin::home.SAR') {{ $item?->merchant?->company_name }} {{ number_format($item?->item_total, 2) }} @lang('admin::home.SAR')
@lang('admin::home.Total Items') :
{{ $orderItems->count() }}
@lang('admin::home.Sub Total') :
{{ number_format($order->subtotal, 2) }}
@lang('admin::home.delivery_fee') :
{{ number_format($order->delivery_fee, 2) }}
@lang('admin::home.VAT') :
{{ number_format($order->vat, 2) }}
@lang('admin::home.Discount') :
{{ number_format($order->discount, 2) }}
@lang('admin::home.Paid From wallet') :
{{ number_format($order->from_wallet, 2) }}
@lang('admin::home.Paid From Merchant Balance') :
{{ number_format($order->from_merchant_balance, 2) }}
@lang('admin::home.Total Price') :
{{ number_format($order->total_after_vat, 2) }}
@if($order->client_lat??$address->latitude??$order?->addressInOrder?->latitude)
Location
@endif
@lang('admin::home.User Details')
{{ \Str::substr(ucfirst($orderUser->name),0,1) }}

{{ $orderUser->name }}

{{ $orderUser->email }}

{{ $orderUser->phone_number }}

@lang('admin::home.User address') :

@lang('admin::home.address') : @if($address) {{ $address?->address }} @else {{ $order?->addressInOrder?->address??$address?->address }} @endif

@if($address)

@lang('admin::home.Country') : {{ $address?->country->title }}

@else

@lang('admin::home.Country') : {{ $order?->addressInOrder?->title ?? $address?->country->title }}

@endif
@lang('admin::home.Order Summary')

@lang('admin::home.Order Note') {{ $order->note }}

@lang('admin::home.Ordered Date') {{ \Carbon\Carbon::parse($order->created_at)->format('Y m d - h:i') }}

@lang('admin::home.Ordered Duration') {{ \Carbon\Carbon::parse($order->from)->format('g:i A') }} - {{ \Carbon\Carbon::parse($order->to)->format('g:i A') }}

@if($order->schedulable)

@lang('admin::home.Scheduled date') {{ \Carbon\Carbon::parse($order->date)->format('Y m d - h:i') }}

@endif

@lang('admin::home.Distance between Customer and Branch') {{ $order?->delivery_distance }}

@if($order->driver) تم تعيين السائق: {{" ".$driver?->name." "}}

المسافة بين السائق والفرع: {{ $order?->driverBranchDistance }}

@else تعيين سائق: (لم يتم الإسناد بعد) @endif
@php $statusEnumForDriver = is_string($order->status) ? (\App\Application\Marketplace\Enums\MerchantOrderStatuses::tryFrom($order->status)) : $order->status; $statusValForDriver = $statusEnumForDriver?->value ?? (is_string($order->status) ? $order->status : ''); @endphp @if($statusValForDriver !== 'on-way' && $statusValForDriver !== 'completed' && $statusValForDriver !== 'previous' && $statusValForDriver !== 'cancelled')
@endif
@if($order->gift)
Order is a gift to

Receipt name {{ $order->client_name }}

Receipt phone {{ $order->client_phone }}

@if($order->gift_confidential)

The content and the price of the gift is confidential and are not disclosed to the friend

@else

The content and the price of the gift is not confidential and are disclosed to the friend

@endif @if(!$order->ask_receipt)

Receipt Location

Customer don't know the location of the friend and asked the receipt for the location

@endif
@endif
{{-- --}} @push('js') @endpush