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

{{__("Order Details Page")}}

{{__("Order Details Page")}}

@endsection @section("css-links") getLocale() . "/pages/orders.css")}}"> @endsection @section("content")
@foreach($orders as $order)
#{{__("ID")}} {{__("Date")}} {{__("Time")}} {{__("Location")}} {{__("Technician Name")}} {{__("Technician Rating")}} {{__("Status")}} {{__("Payment Method")}} {{__("Activation")}} {{__("Created at")}} {{__("Service")}} {{__("Total Amount")}} {{__("Discount")}}
{{$order->id}} {{$order->order_day}} {{date("H:i A", strtotime($order->order_time_from))}} - {{date("H:i A", strtotime($order->order_time_to))}} {{$order->order_location_name}} {{$order->acceptOrder() != Null ? $order->acceptOrder()->technician->full_name : Null}} {{-- @if($order->acceptOrder() != Null)--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- @else--}} {{-- ---}} {{-- @endif--}} @if($order->rating && $order->rating->number_rating != 0)
@if(in_array($order->rating->number_rating, [1,2,3]))

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

@endif @else

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

@endif
status == "-1") yellow @else green @endif">{{$order->getStatusText()}} {{$order->paymentMethod->name}} {{$order->getActivationText()}} {{$order->created_at->diffForHumans()}}