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

{{__("Orders")}}

{{__("All Orders")}}

@endsection @section("css-links") getLocale() . "/pages/orders.css")}}"> @endsection @section("content") @include("includes.dialog")

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

status == "-1") yellow @else green @endif">{{$order->getStatusText()}}

@if(in_array((int)$order->status, [-1, 1]))
@include("admin.order.parts.forms.assign_technician")
@endif @if($order->activation == "0") @endif
@if(in_array((int)$order->status, [-1, 1, 2, 4]))
$order->id])}}" method="POST"> @csrf
@endif @if(in_array((int)$order->status, [2, 4]))
$order->id, "type" => "cancel-assign"])}}" method="POST"> @csrf
@endif

{{__('General Information')}}

{{__('Full Name')}}
{{$order->user->full_name}}
{{__('Phone Number')}}
{{$order->user->client ? $order->user->client->phone_number : ($order->user->institution ? $order->user->institution->phone_number : Null)}}
{{__('Created')}}
{{ date("Y-m-d h:i A", strtotime($order->created_at))}}
{{-- --}} {{--
--}} {{--
{{__('Image')}}
--}} {{--
--}} {{--
@if($notes->getFirstMediaFile()) @endif
--}} {{--
--}}
{{__('Date Time')}}
{{ $order->order_day }} | {{date("h:i A", strtotime($order->order_time))}}
{{__('Order Location From')}}
{{$order->order_location_beck_up_name}}
{{__('Order Location To')}}
{{$order->order_location_drop_of_name}}
@if($order->type == "n")
{{__('Number of service required')}}
{{count($order->orderServices)}}
@endif
{{__('Payment Method')}}
{{$order->paymentMethod->name}}
@if(in_array($order->status, [1, 2, 3, 4]))
{{__("Driver")}}
{{$order->acceptOrder()->technician->full_name}}
@elseif(in_array($order->status, [0]))
{{__("Driver")}}
{{$order->canceled->user->full_name}}
@endif @if($order->status == 3) @if($order->rating && $order->rating->number_rating != 0)
{{__('Driver rating')}}
@if(in_array($order->rating->number_rating, [1,2,3]))

{{$order->rating->reason}}

@endif @else
{{__('Driver rating')}}

{{__("There's No Rating")}}

@endif
@endif

@if($order->attachment)

{{__("Attachments")}}

{{__("Certificate of origin")}}
{{__("Packing list")}}
{{__("Customs broker authorization")}}
{{__("Invoice certified by the chamber of commerce")}}

@endif @if($order->type == "n") @else @endif @if($order->invoice)
@include("admin.order.parts.invoice", ["invoice" => $order->invoice])
@endif @if($order->status == 0)
@include("admin.order.parts.cancel_info", ["canceled" => $order->canceled])
@endif
@endsection @section("scripts") @endsection