@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.start_location') }} : {{ @$order->branch->location }}
{{ trans('dashboard.order.arrive_location') }} : {{ @$order->address->location }}
{{ trans('dashboard.order.payment_method') }} : {{ trans('dashboard.order.payment_methods.'.$order->payment_method) }}
{{ trans('dashboard.order.deliver_method') }} : {{ trans('dashboard.order.deliver_methods.'.$order->deliver_method) }}
{{ trans('dashboard.order.transaction_id') }} : {{ $order->transaction_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.client.client') }}

{{ optional($order->client)->fullname }}
{{ optional($order->client)->phone }}

{!! trans('dashboard.order.order_count') !!} : {{ $order->client->clientOrders->count() }}

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

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

  • {{ trans('dashboard.order.statuses.pending') }}

    {{ $order->created_at->format("Y-m-d H:i") }}
  • {{ trans('dashboard.order.statuses.in_kitchen') }}

    {!! optional($order->order_status_times)->in_kitchen ?? "" !!}
  • {{ trans('dashboard.order.statuses.on_road') }}

    {!! optional($order->order_status_times)->on_road ?? "" !!}
  • {{ trans('dashboard.order.statuses.client_cancel') }}

    {!! optional($order->order_status_times)->client_cancel ?? "" !!}
  • {{ trans('dashboard.order.statuses.admin_cancel') }}

    {!! optional($order->order_status_times)->admin_cancel ?? "" !!}
  • {{ trans('dashboard.order.statuses.completed') }}

    {!! optional($order->order_status_times)->completed ?? "" !!}
@endsection @section('page_styles') {{-- --}} @endsection @section('vendor_scripts') @endsection @section('page_scripts') @include('dashboard.order.map') @include('dashboard.order.chat_scripts') @endsection