@extends('admin.layout.master') @section('title', __('admin.order') . ' #' . $order->id) @section('content')
{{ __('admin.order') }} #{{ $order->id }} {{ $order->payment_status ? __('admin.paid') : __('admin.not_paid') }} {{ __('admin.order_status_arr.' . $order->status) }}

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

@permission('order-update')
{{ __('admin.actions') }}
@csrf
@endpermission
{{ __('admin.order_details') }}
{{ __('admin.subtotal') }}:
{{ roundToNumber($order->sub_total) . ' ' . __('admin.currency') }}
{{ __('admin.shipping') }}:
{{ roundToNumber($order->shipping_charge) . ' ' . __('admin.currency') }}
{{ __('admin.discount') }}:
{{ roundToNumber($order->total_discount) . ' ' . __('admin.currency') }}
{{ __('admin.total') }}:
{{ roundToNumber($order->total_price) . ' ' . __('admin.currency') }}
@if($order->note != null)
{{ __('admin.note') }}:
{{ $order->note }}
@endif
{{ __('admin.order_status') }}
  • {{ __('admin.order_placed') }} ({{ __('admin.order_id') }}: #{{ $order->id }})
  • {{ __('admin.accepted') }}
  • {{ __('admin.order_status_arr.2') }}
  • {{ __('admin.out_of_delivery') }}
  • {{ __('admin.order_status_arr.4') }}
  • {{ __('admin.completed') }}
@if($order->date !=null && $order->time != null)
{{ __('admin.Scheduling') }}

{{ __('admin.date') }}: {{ $order->date }}

{{ __('admin.time') }}: {{ date('h:i A',strtotime($order->time)) }}

@endif
{{ __('admin.customer_details') }}
Avatar
{{ $order->user->name }}
{{ __('admin.customer_id') }}: #{{ $order->user->id }}
{{ __('admin.contact_info') }}

{{ __('admin.email') }}: {{ $order->user->email }}

{{ __('admin.phone') }}: {{ $order->user->country_code . $order->user->phone }}

{{ __('admin.provider_details') }}
Avatar
{{ $order->provider->name }}
{{ __('admin.provider_id') }}: #{{ $order->provider->id }}
{{ __('admin.contact_info') }}

{{ __('admin.email') }}: {{ $order->provider->email }}

{{ __('admin.phone') }}: {{ $order->provider->country_code . $order->provider->phone }}

{{ __('admin.driver_details') }}
@if($order->driver_id == null)
{{ __('admin.order_not_accepts_by_deriver') }}
@else
Avatar
{{ $order->driver->name }}
{{ __('admin.driver_id') }}: #{{ $order->driver->id }}
{{ __('admin.contact_info') }}

{{ __('admin.phone') }}: {{ $order->driver->country_code . $order->driver->phone }}

@endif
{{ __('admin.shipping_address') }}
{{ __('admin.name') }} {{ $order->address->name }}
{{ __('admin.state') }} {{ $order->address->state }}
{{ __('admin.city') }} {{ $order->address->city }}
{{ __('admin.street') }} {{ $order->address->street }}
{{ __('admin.building_number') }} {{ $order->address->building_number }}
{{ __('admin.floor_number') }} {{ $order->address->floor_number }}
{{ __('admin.apartment_number') }} {{ $order->address->apartment_number }}
{{ __('admin.additional_info') }} {{ $order->address->additional_info }}
@endsection