@extends('layouts.admin.app') @section('page-title') {{ __('Dashboard') }} @endSection @section('page-nav-title')

{{ __('Orders') }}

{{ __('All Orders') }}

@endsection @section('css-links') @endsection @section('content') @include('includes.dialog')

{{ __('Order Details') }} #{{ $order->id }}

{{ $order->getStatusText() }}

@if ($order->status != 0 && $order->status != 5 && $order->type == 3)
@include('admin.order.parts.forms.assign_driver')
@endif @if (in_array((int) $order->status, [1, 2, 3, 4]))
@csrf
@endif

@if ($order->type == 1)

{{ __('Client Car Details') }}

{{ __('Car Model') }}
  • {{ $order->car->model }}
{{ __('Car Color') }}
  • {{ $order->car->color }}
{{ __('Car Number') }}
  • {{ $order->car->number }}
{{ __('Estimate Time to arrive') }}
  • {{ $order->car->time }}

@endif
@include('admin.order.parts.invoice', ['order' => $order])
@if ($order->status == 0)
@include('admin.order.parts.cancel_info', ['canceled' => $order->canceled])
@endif @if ($order->status != 1 && $order->status != 0 && $order->type == 3)
@if (isset($order->assignDriver->driver)) @include('admin.order.parts.driver_info', ['driver' => $order->assignDriver->driver]) @endif
@endif
@endsection @section('scripts') @endsection