@extends('layouts.admin') @section('page-title', 'Pickup Hub Orders') @section('content')

Pickup Hub Orders

You have total {{ $stats['total'] }} pickup hub orders

{{-- Card Header with Filters --}}

Orders

{{-- Stats Cards --}}

{{ $stats['total'] }}

Total

{{ $stats['pending'] }}

Pending

{{ $stats['processing'] }}

Ready for Pickup

{{ $stats['delivered'] }}

Picked Up

{{ $stats['cancelled'] }}

Canceled

{{-- Table --}}
@forelse($orders as $index => $order) @empty @endforelse
# Order Code Customer Pickup Hub Total Product Price Delivery Status Payment Status Options
{{ $orders->firstItem() + $index }} {{ $order->order_number }}
{{ $order->customer->name }}
{{ $order->pickupHub?->name ?? '-' }} {{ $order->items->count() }} ${{ number_format($order->total, 2) }} {{ ucfirst(str_replace('_', ' ', $order->status)) }} {{ ucfirst($order->payment_status) }}
@if($order->status === 'pending') @if($order->shipping_address['phone'] ?? $order->customer?->phone) @endif
@csrf @method('PATCH')
@elseif($order->status === 'confirmed')
@csrf @method('PATCH')
@elseif($order->status === 'processing' && $order->payment_status === 'pending') @endif
@csrf @method('DELETE')

No pickup hub orders found

Try adjusting your filters

{{-- Pagination --}} @if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection