@extends('WarehouseDashboard.header.header') @section('content')
{{__('Orders Shipment')}}

@csrf @method("GET") {{__("Make consignment")}}

{{__('Orders Shipment table')}}




{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}}
@foreach($ordersShipment as $order) @endforeach
{{__('Confirm Delivery')}} {{__('ID')}} {{__('Order Area')}} {{__('Order Rate')}} {{__('Order Tax')}} {{__('user Name')}} {{__('Phone Number')}} {{__('Type')}} {{__('Weight')}} {{__('Within')}} {{__('Status')}} {{__('Payment Method')}} {{__('Total Amount')}} {{__('Created at')}} {{__('Locations')}}
@if($order->status == 41) {{-- Confirm Delivery To Warehouse--}}
id)}}" method="post" id="update{{$order->id}}" style="display: none" data-swal-title="{{__('Confirm Delivery')}}" data-swal-text="{{__('Are Your Sure To Confirm Delivery This Order ?')}}" data-yes="{{__('Yes')}}" data-no="{{__('No')}}" data-success-msg="{{__('the order has been confirmed successfully')}}">@csrf @method("put")
@elseif($order->status == 42) {{-- Confirm Delivery By Warehouse--}} {{__("Delivery Confirmed")}} @else {{__("Waiting Driver")}} @endif
{{$order->id}} {{$order->pick_off_place_administrativeArea != null ? $order->pick_off_place_administrativeArea : __("Unknown") }} {{$order->rate}} {{$order->tax}} {{$order->user ? $order->user->name : null }} {{$order->phone_number ?? null}} {{$order->type}} {{$order->weight}} {{$order->within}} {{$order->getStatusText()}} {{$order->paymentMethod}} {{$order->total}} {{$order->created_at}}
{{ $ordersShipment->links() }}
@endsection @section('js-scripts') @endsection