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

{{__("Canceled Orders")}}

{{__("All Canceled 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")}} {{__("Canceled By")}}{{__("Canceled Type")}}{{__("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}} {{$order->canceled != null ? $order->canceled->user != null ? $order->canceled->user->full_name :null : Null}}{{$order->canceled->getTypeText()}}{{$order->created_at->diffForHumans()}} $order->id])}}" class="btn btn-primary">{{__("Details")}}
@endsection @section("scripts") {{-- --}} @endsection