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

{{__(" Finshed Orders")}}

{{__("All Finshed Orders")}}

@endsection @section("css-links") getLocale() . "/pages/orders.css")}}"> @endsection @section("content") @include("includes.dialog")
@include("admin.order.parts.filter")
@csrf
@foreach($orders as $order) @php $order_time_from =\Carbon\Carbon::parse($order->order_time_from); $order_time_to =\Carbon\Carbon::parse($order->order_time_to); @endphp @endforeach
#{{__("ID")}} {{__("User")}} {{__("Date")}} {{__("Time")}} {{__("Location")}} {{__("Status")}} {{__("Payment Method")}} {{__("Rating")}} {{__("Technician")}} {{__("Created at")}} {{__("invoice Created at")}} {{__("Control")}}
{{$order->id}} {{$order->user->full_name}} {{$order->order_day}}{{$order_time_from->format('h:i A') }} - {{$order_time_to->format('h:i A') }} status == "-1") yellow @else green @endif">{{$order->getStatusText()}} {{$order->paymentMethod->name}} @if($order->rating != Null && $order->rating->number_rating != 0)
@else {{__("There's No Rating")}} @endif
{{$order->acceptOrder()->technician->full_name}} {{ date("Y-m-d h:i A", strtotime($order->created_at))}} {{ date("Y-m-d h:i A", strtotime($order->invoice->created_at))}} $order->id])}}" class="btn btn-primary">{{__("Details")}}
{{$orders->links('pagination::bootstrap-4')}}
@endsection @section("scripts") {{-- --}} @endsection