@extends('admin.layouts.app') @section('title', 'Manage Orders') @section('header_title', 'Customer Orders') @section('content')

Orders Management

Track, fulfill, and update live orders across all restaurant branches

Refresh List
@php $activeStatus = request('status'); @endphp All ({{ $counts['all'] }}) Pending ({{ $counts['pending'] }}) Confirmed ({{ $counts['confirmed'] }}) Preparing ({{ $counts['preparing'] }}) Out For Delivery ({{ $counts['out_for_delivery'] }}) Completed ({{ $counts['completed'] }}) Cancelled ({{ $counts['cancelled'] }})
@if(request('status')) @endif
@if(request('search') || request('branch_id') || request('status')) Reset @endif
@forelse($orders as $order) @empty @endforelse
Order # Customer Branch Items Total Status Time Actions
#{{ $order->order_number }}
{{ $order->customer_name }}
{{ $order->customer_phone }}
{{ $order->branch->name ?? 'Dhanmondi' }}
{{ $order->items->sum('quantity') }} items
{{ $order->items->pluck('item_name')->join(', ') }}
{{ $currency }}{{ number_format($order->total, 0) }}
{{ str_replace('_', ' ', $order->payment_method) }}
{{ str_replace('_', ' ', $order->status) }}
{{ $order->created_at->format('h:i A') }}
{{ $order->created_at->format('M d, Y') }}
@csrf @method('PATCH')
@csrf @method('DELETE')
🥡
No orders found
Try adjusting your search criteria or filter tags
@if($orders->hasPages())
Showing {{ $orders->firstItem() }} to {{ $orders->lastItem() }} of {{ $orders->total() }} orders
{{ $orders->links('admin.partials.pagination') }}
@endif
@endsection