@extends('Backend.Layouts.app') @php $page_title = "Manage Orders"; $allOrders = collect($orders); $getOrderStatus = function ($order) { return strtolower(trim(strip_tags((string) $order->status ))); }; $totalOrders = $allOrders->count(); $initiatedOrders = $allOrders->filter(fn($order) => $getOrderStatus($order) === 'initiated')->count(); $processingOrders = $allOrders->filter(fn($order) => $getOrderStatus($order) === 'processing')->count(); $completedOrders = $allOrders->filter(fn($order) => $getOrderStatus($order) === 'completed')->count(); $cancelledOrders = $allOrders->filter(fn($order) => $getOrderStatus($order) === 'cancelled')->count(); $selectedFilter = request()->get('q', ''); $canModifyOrders = in_array('can_modify_order', current_user()->permissions()); @endphp @section('content') @push('styles') @endpush
Review and manage customer order information.
Monitor customer orders, track their status and manage order activities.
View, search and manage customer orders.
| # | Reference | Status | Business | Customer | Phone number | Email address | Managed by | Last updated | Action |
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $order->code_number }} | {{ $order->_status() }} |
{{ $order->business_name ?: '-' }}
|
{{ $order->name ?: '-' }}
|
{{ $order->phone_number ?: '-' }} | {{ $order->email ?: '-' }} | {{ $admin ? $admin->fullnames() : '-' }} | {{ $updatedAt ?: '-' }} |
|
No orders foundCustomer orders will appear here when they are available. |
|||||||||