@extends('layouts.app') @section('title', 'Manage Orders - Admin') @section('content') @php $currentStatus = request('status'); $statusColors = [ 'pending' => 'warning', 'processing' => 'info', 'completed' => 'success', 'cancelled' => 'danger', 'refunded' => 'secondary', ]; @endphp
{{ $totalOrders }} total orders
| Order | Customer | Total | Payment | Status | Action |
|---|---|---|---|---|---|
| {{ $order->order_number }} {{ $order->created_at->format('M d, Y · H:i') }} |
{{ $order->user->name ?? 'Guest' }}
{{ $order->user->email ?? '—' }}
|
₹{{ number_format($order->total, 2) }}
{{ $order->orderItems->count() }} items
|
{{ ucfirst($order->payment_status) }} | @php $color = $statusColors[$order->order_status] ?? 'secondary'; @endphp {{ ucfirst($order->order_status) }} | View |
| No orders found. | |||||