From d5ea56d07877176e38662cca3a5c06f62d90ad32 Mon Sep 17 00:00:00 2001
From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com>
Date: Mon, 5 Feb 2024 07:24:32 +0100
Subject: [PATCH] Update dashboard.tpl
change active users to All Users Insight
add All users to graph
---
ui/ui/dashboard.tpl | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/ui/ui/dashboard.tpl b/ui/ui/dashboard.tpl
index 26a6abed..1b37f6fe 100644
--- a/ui/ui/dashboard.tpl
+++ b/ui/ui/dashboard.tpl
@@ -165,7 +165,7 @@
-
{Lang::T('Active Users')}
+
{Lang::T('All Users Insights')}
@@ -306,16 +306,17 @@
document.addEventListener("DOMContentLoaded", function () {
// Get the data from PHP and assign it to JavaScript variables
var u_act = '{/literal}{$u_act}{literal}';
+ var c_all = '{/literal}{$c_all}{literal}';
var u_all = '{/literal}{$u_all}{literal}';
// Create the chart data
var data = {
- labels: ['Active Users', 'Inactive Users'],
+ labels: ['Active Users', 'Inactive Users', 'All Users'],
datasets: [{
label: 'User Recharges',
- data: [parseInt(u_act), parseInt(u_all)],
- backgroundColor: ['rgba(4, 191, 13)', 'rgba(191, 35, 4)'],
- borderColor: ['rgba(0, 255, 0, 1)', 'rgba(255, 99, 132, 1)'],
+ data: [parseInt(u_act), parseInt(u_all), parseInt(c_all)],
+ backgroundColor: ['rgba(4, 191, 13)', 'rgba(191, 35, 4)', 'rgba(0, 0, 255, 0.5'],
+ borderColor: ['rgba(0, 255, 0, 1)', 'rgba(255, 99, 132, 1)', 'rgba(0, 0, 255, 0.7'],
borderWidth: 1
}]
};