@extends('layouts.admin') @section('title', 'Order Management') @section('content')

Customer Orders

Fulfill orders, track shipments, and update payment statuses.

All Orders Pending Processing Shipped Delivered Cancelled
@if($status) @endif
@if($orders->isEmpty())
No customer orders found under this status filter.
@else
@foreach($orders as $ord) @endforeach
Order # Customer Address Items Count Total Amount Payment Status Action
{{ $ord->order_number }}
{{ $ord->created_at->format('M d, Y H:i') }}
{{ $ord->customer_name }}
{{ $ord->customer_phone }}
{{ Str::limit($ord->shipping_address, 30) }}
{{ $ord->city }}, {{ $ord->pincode }}
{{ $ord->items->sum('quantity') }} items ₹{{ number_format($ord->total_amount, 2) }} @if($ord->discount_amount > 0)
Saved ₹{{ number_format($ord->discount_amount, 2) }}
@endif
{{ strtoupper($ord->payment_method) }}
{{ ucfirst($ord->payment_status) }}
{{ ucfirst($ord->order_status) }}
{{ $orders->links() }}
@endif
@endsection