@extends("layouts.dashboard.app") @section("page-nav-title")

{{__('Orders')}}

{{__('Control and view Orders')}}

@endsection @section("content") @include("layouts.main-parts.page-message")
@csrf {{__('Export As Excel')}}
@foreach($orders as $order) @endforeach
#{{__('ID')}} {{__('Order number')}} {{__('Phone number')}} {{__('Status')}} {{__('Payment Method')}} {{__('Total Quantity')}} {{__('Tax')}} {{__('Total Amount')}} {{__('Customer Address')}} {{__('Branch')}} {{__('Created at')}} {{__('Updated at')}} {{__('instruction')}} {{__('Details')}}
{{$order->id}} {{$order->order_number}} {{$order->phone_number}} @switch($order->Status) @case(1) Pending @break @case(2) Accept @break @case(3) Perpare @break @case(4) Ready @break @case(5) Delieverd @break @case(6) Reject @break @endswitch {{$order->paymentMethod}} {{$order->totalQty}} {{$order->tax}} {{$order->Total_Amount}} {{$order->DropOffAddress}} {{$order->branchSelected}} {{$order->created_at->diffForhumans()}} {{$order->updated_at->diffForhumans()}} {{$order->instruction}} id)}}" class="control-link">
@endsection @section("scripts") @endsection