@extends('dashboard.layout.layout') {{-- @section('body','content-left-sidebar chat-application') @section('body_col','content-left-sidebar') --}} @section('content')
{{ trans('dashboard.order.order_number') }} : {{ $order->id }}
{{ trans('dashboard.order.expected_time') }} : {{ number_format($order->expected_time/60,2) }} {!! trans('dashboard.dates.minute') !!}
{{ trans('dashboard.order.actual_time') }} : {{ number_format(($order->actual_time ?? $order->expected_time/60) ,2) }} {!! trans('dashboard.dates.minute') !!}
{{ trans('dashboard.order.start_location') }} : {{ $order->start_location_data['location'] }}
{{ trans('dashboard.order.arrive_location') }} : {{ $order->end_location_data['location'] }}
{{ trans('dashboard.order.distance') }} : {{ number_format($order->actual_distance/1000,2) }} {!! trans('dashboard.distances.km') !!}
{{ trans('dashboard.order.pay_type') }} : {{ trans('dashboard.order.pay_types.'.$order->payment_type) }}
{{ trans('dashboard.order.order_type') }} : {{ trans('dashboard.order.order_types.'.$order->order_type) }}
{{ trans('dashboard.order.calc_method') }} : {{ trans('dashboard.order.calc_methods.'.$order->order_calc_method) }}
{{ trans('dashboard.client.client') }}
{{ optional($order->client)->fullname }} {!! trans('dashboard.user.fullname') !!} {{ @$order->client->fullname }} {!! trans('dashboard.order.order_count') !!} {{ optional(@$order->client->clientOrders)->count() }}
{!! trans('dashboard.general.email') !!} {{ @$order->client->email }} {!! trans('dashboard.general.phone') !!} {{ @$order->client->phone }}
@if ($order->driver_id)
{{ trans('dashboard.driver.driver') }}
{{ optional($order->driver)->fullname }} {!! trans('dashboard.user.fullname') !!} {{ @$order->driver->fullname }} {!! trans('dashboard.order.order_count') !!} {{ optional(@$order->driver->driverOrders)->count() }}
{!! trans('dashboard.general.email') !!} {{ @$order->driver->email }} {!! trans('dashboard.general.phone') !!} {{ @$order->driver->phone }}
@else
{{ trans('dashboard.driver.no_drivers') }}
@endif
@forelse ($order->driverNotifiedOrders as $notified)

{{ $notified->fullname }}

{{ optional(@$notified->driverOrders)->count() }}

{{ trans('dashboard.order.order_count') }}

( {{ $notified->rate_avg }})

{!! trans('dashboard.user.rating') !!}
@empty
{{ trans('dashboard.order.no_notified_drivers') }}
@endforelse
@forelse ($offers as $offer)

{{ optional($offer->driver)->fullname }}

{{ $offer->offer_price }}

{!! trans('dashboard.offer.offer_price') !!}

{{ optional(@$offer->driver->driverOrders)->count() }}

{{ trans('dashboard.order.order_count') }}

( {{ optional($offer->driver)->rate_avg }})

{!! trans('dashboard.user.rating') !!}
{!! trans('dashboard_order.offer.offer_statuses.'.$offer->offer_status) !!}
@empty
{{ trans('dashboard.order.no_offer_used') }}
@endforelse
@forelse ($messages->reverse() as $message) @if ($message->created_at->format("Y-m-d") != $format ) @php $format= $message->created_at->format("Y-m-d"); @endphp
{{ $format }}
@endif @if ($message->sender_id != $order->client_id)
@if ($message->message_type == 'image') @elseif ($message->message_type == 'location') @else

{!! $message->message !!}

@endif
@else
@if ($message->message_type == 'image') @elseif ($message->message_type == 'location') @else

{!! $message->message !!}

@endif
@endif @empty

{!! trans('dashboard.chat.no_messages') !!}

@endforelse
{!! trans('dashboard.order.invoice') !!}

{{ trans('dashboard.order.order_status') }}

  • @if (optional($order->order_status_times)->pending || empty($order->order_status_times)) @else @endif
    {{ trans('dashboard.order.dashboard.statuses.pending') }}
    {{ $order->created_at->format("H:i") }}

    {{ $order->created_at->format("Y-m-d") }}

  • @foreach ($order_cases as $key => $case)
  • @if (optional($order->order_status_times)->$key) @else @endif
    {{ $case }}
    @if (optional($order->order_status_times)->$key) {{ date("H:i",strtotime($order->order_status_times->$key)) }} @else @endif

    @if (optional($order->order_status_times)->$key) {{ date("Y-m-d",strtotime($order->order_status_times->$key)) }} @else @endif

  • @endforeach
@endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') {{-- --}} @include('dashboard.order.map') @include('dashboard.order.chat_scripts') @endsection