@extends("layouts.user.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")
@include("user.order.parts.filter")
{{--
--}} {{--
--}} {{--
--}} {{-- @csrf--}} {{-- --}} {{-- {{__("Export As Excel")}}--}} {{--
--}} {{--
--}} {{--
--}}
@foreach($orders as $order) @endforeach
#{{__("ID")}} {{__("User")}} {{__("Date")}} {{__("Time")}} {{__("Branch Name")}} {{__("Status")}} {{__("Payment Method")}} {{__("Coupon")}} {{__("Type")}} {{__("Created at")}} {{__("Control")}}
{{$order->id}} {{$order->user->first_name . " " . $order->user->last_name}} {{date("Y/m/d", strtotime($order->created_at))}} {{date("H:i:s", strtotime($order->created_at))}} {{$order->branch->name}} status == "1") yellow @else green @endif">{{$order->getStatusText()}} {{$order->payment->name}} {{ $order->coupon_id ? __("Yes") : __("No") }} {{$order->getTypeText()}} {{$order->created_at->diffForHumans()}} {{-- @if(in_array($order->status, [1,2,4]))--}} {{-- $order->id])}}" class="btn btn-primary mb-3">{{__("Track Order")}}--}} {{-- @endif--}} $order->id])}}" class="btn btn-primary mb-3">{{__("Details")}}
@endsection @section("scripts") @endsection