@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")
{{__("All Orders")}}
#{{__("ID")}} | {{__("User")}} | {{__("Date")}} | {{__("Time")}} | {{__("Location")}} | {{__("Status")}} | {{__("Payment Method")}} | {{__("Technician")}} | {{__("Promocode")}} | {{__("Activation")}} | {{__("Created at")}} | {{__("Control")}} |
---|---|---|---|---|---|---|---|---|---|---|---|
{{$order->id}} | {{$order->user->full_name}} | {{$order->order_day}} | {{date("h:i", strtotime($order->order_time_from))}} {{__(date("A", strtotime($order->order_time_from)))}} - {{date("h:i", strtotime($order->order_time_to))}} {{__(date("A", strtotime($order->order_time_to)))}} | {{$order->location ? $order->location->street . "," . $order->location->building_name . "," . $order->location->apartment_number : $order->order_location_name}} | status == "-1") yellow @else green @endif">{{$order->getStatusText()}} | {{$order->paymentMethod->name}} | {{$order->acceptOrder() ? $order->acceptOrder()->technician->full_name : ""}} | {{$order->promocode ? __("Yes") : __("No")}} | {{$order->getActivationText()}} | {{$order->created_at->diffForHumans()}} | @if(!in_array($order->status, [3,0])) $order->id])}}" class="btn mb-2 btn-primary">{{__("Edit")}} @endif $order->id])}}" class="btn btn-primary">{{__("Details")}} |