count($clientModel->where('status', 'active')), 'servers' => count($serverModel->where('status', 'active')), 'orders' => count($orderModel->findAll()), 'blocked_domains' => $domainModel->countBlocked() ]; $recent_orders = $orderModel->recent(5); View::render('layouts.admin', [ 'title' => 'Dashboard', 'content' => __DIR__ . '/../../resources/views/admin/dashboard.php', 'stats' => $stats, 'recent_orders' => $recent_orders ]); } }