@extends('layouts.app') @section('title', 'Manage Orders | WOK UP 中華鍋 上') @section('content')
Order Management

Customer Orders

← Back to Website
All Pending Confirmed Completed
@if($orders->isEmpty())

No orders found

There are no customer orders matching the selected filter.

View All Orders
@else
@foreach($orders as $o)
#{{ $o->order_number }} {{ ucfirst($o->status) }} {{ $o->created_at->diffForHumans() }}
{{ $o->customer_name }} · {{ $o->customer_phone }} · {{ $o->branch ? $o->branch->name : 'Delivery' }} · {{ $o->items->sum('quantity') }} items
{{ Str::limit($o->delivery_address, 70) }}
Total Amount
৳{{ number_format($o->total, 0) }}
View Details →
@endforeach
{{ $orders->links() }}
@endif
@endsection