@extends("layouts.admin.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("admin.order.parts.filter")--}}
{{--
--}} {{--
--}} {{-- @csrf--}} {{-- --}} {{-- {{__("Export As Excel")}}--}} {{--
--}} {{--
--}}
{{-- @if(isset($search)) id="sampleTable" @endif--}} {{-- --}} @foreach($userOrder as $order) @endforeach
#{{__("ID")}} {{__("Username")}} {{__("Phone Number")}} {{__("Number Of Pieces")}} {{__("Payment Way")}} {{__("Status")}} {{__("Total Price")}} {{__("Created At")}} {{__("Updated At")}}{{__("Control")}}{{__("Order Content")}}
{{$order->id}} {{$order->user->full_name}} {{$order->user->phone_number}} {{count($order->userOrderDetail)}} {{$order->payment_way == 0 ? __("Cash") : __("Card")}} {{-- {{($order->getStatusText2())}}--}} @switch ($order->status) @case ("0") {{__("Waiting Delivery")}} @break; @case ("1") {{__("Delivery Process")}} @break; @case ("2") {{__("Completed")}} @break; @endswitch {{$order->total_price}} {{$order->created_at->diffForHumans()}} {{$order->updated_at->diffForHumans()}} {{__("Details")}}
{{----}} @if(!isset($search)) {{$userOrder->links("pagination::bootstrap-4")}} @endif
@endsection @section("scripts") @endsection