diff --git a/routes/admin.js b/routes/admin.js
index 3c06920..64c1515 100644
--- a/routes/admin.js
+++ b/routes/admin.js
@@ -12,7 +12,7 @@ router.get('/inbox', async (req, res) => {
try{
const result = await RecordModel.find(
- {label: "new"}
+ {label: "inbox"}
);
res.status(200).render('pages/admin/inbox',
{"result": result}
diff --git a/views/components/customercard.ejs b/views/components/customercard.ejs
index c541ed9..449da3d 100644
--- a/views/components/customercard.ejs
+++ b/views/components/customercard.ejs
@@ -20,7 +20,7 @@
diff --git a/views/pages/admin/archived.ejs b/views/pages/admin/archived.ejs
index fd04e1f..865e336 100644
--- a/views/pages/admin/archived.ejs
+++ b/views/pages/admin/archived.ejs
@@ -23,13 +23,13 @@
- <%- include('../../components/_sidebarItem', { link: '#', iconPath: 'M12.5 0c-.157 0-.311.01-.565.027A1 1 0 0 0 11 1.02V10h8.975a1 1 0 0 0 1-.935c.013-.188.028-.374.028-.565A8.51 8.51 0 0 0 12.5 0Z',
+ <%- include('../../components/_sidebarItem', { link: '/admin/inbox', iconPath: 'M12.5 0c-.157 0-.311.01-.565.027A1 1 0 0 0 11 1.02V10h8.975a1 1 0 0 0 1-.935c.013-.188.028-.374.028-.565A8.51 8.51 0 0 0 12.5 0Z',
itemName: 'Dashboard', badge: '' }) %>
- <%- include('../../components/_sidebarItem', { link: '#', iconPath: 'm17.418 3.623-.018-.008a6.713 6.713 0 0 0-2.4-.569V2h1a1 1 0 1 0 0-2h-2a1 1 0 0 0-1 1v2H9.89A6.977 6.977 0 0 1 12 8v5h-2V8A5 5 0 1 0 0 8v6a1 1 0 0 0 1 1h8v4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-4h6a1 1 0 0 0 1-1V8a5 5 0 0 0-2.582-4.377ZM6 12H4a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2Z',
+ <%- include('../../components/_sidebarItem', { link: '/admin/inbox', iconPath: 'm17.418 3.623-.018-.008a6.713 6.713 0 0 0-2.4-.569V2h1a1 1 0 1 0 0-2h-2a1 1 0 0 0-1 1v2H9.89A6.977 6.977 0 0 1 12 8v5h-2V8A5 5 0 1 0 0 8v6a1 1 0 0 0 1 1h8v4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-4h6a1 1 0 0 0 1-1V8a5 5 0 0 0-2.582-4.377ZM6 12H4a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2Z',
itemName: 'Inbox', badge: '1' }) %>
- <%- include('../../components/_sidebarItem', { link: '#', iconPath: 'm17.418 3.623-.018-.008a6.713 6.713 0 0 0-2.4-.569V2h1a1 1 0 1 0 0-2h-2a1 1 0 0 0-1 1v2H9.89A6.977 6.977 0 0 1 12 8v5h-2V8A5 5 0 1 0 0 8v6a1 1 0 0 0 1 1h8v4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-4h6a1 1 0 0 0 1-1V8a5 5 0 0 0-2.582-4.377ZM6 12H4a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2Z',
+ <%- include('../../components/_sidebarItem', { link: '/admin/inbox', iconPath: 'm17.418 3.623-.018-.008a6.713 6.713 0 0 0-2.4-.569V2h1a1 1 0 1 0 0-2h-2a1 1 0 0 0-1 1v2H9.89A6.977 6.977 0 0 1 12 8v5h-2V8A5 5 0 1 0 0 8v6a1 1 0 0 0 1 1h8v4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-4h6a1 1 0 0 0 1-1V8a5 5 0 0 0-2.582-4.377ZM6 12H4a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2Z',
itemName: 'Archived', badge: '' }) %>
@@ -37,10 +37,10 @@
-
New Customers (Unreads)
+
Archived Customers
<% result.forEach(function(item) { %>
- <%- include('../../components/customercard.ejs', { "phone": item.phone, "email": item.email, "date": item.date, "msg":item.msg, "label": "new"}) %>
+ <%- include('../../components/customercard.ejs', { "phone": item.phone, "email": item.email, "date": item.date, "msg":item.msg, "label": "inbox"}) %>
<% }); %>
diff --git a/views/pages/admin/dashboard.ejs b/views/pages/admin/dashboard.ejs
index 04a7353..82c1839 100644
--- a/views/pages/admin/dashboard.ejs
+++ b/views/pages/admin/dashboard.ejs
@@ -22,16 +22,16 @@