$customer['customer_id']]; if ($status) { $where .= ' AND order_status = :status'; $params['status'] = $status; } $total = db()->count('orders', $where, $params); $pagination = paginate($total, $page, 10); $orders = db()->fetchAll( "SELECT * FROM orders WHERE {$where} ORDER BY created_at DESC LIMIT :limit OFFSET :offset", array_merge($params, ['limit' => $pagination['per_page'], 'offset' => $pagination['offset']]) ); $extraHead = ''; require_once __DIR__ . '/../includes/header.php'; require_once __DIR__ . '/includes/sidebar.php'; ?>

My Orders

View and track your order history

orders found

No orders yet

Start shopping to see your orders here!

Browse Products
'warning', 'confirmed', 'processing' => 'primary', 'shipped' => 'primary', 'delivered' => 'success', 'cancelled', 'refunded' => 'error', default => 'primary' }; ?>
Order #
x
4): ?>
+ more items
Total:
Track View Details
1): ?>