<% include partials/head.ejs %>
<% include partials/header.ejs %>

Online

<% clientsOnline.forEach((item) => { let lsdate = new Date(item.lastSeen); let flagCss = (item.dynamicData.clientGeo.country !== undefined) ? ('flag ' + item.dynamicData.clientGeo.country).toLowerCase() : 'icon question mark' let deviceStr = ''; deviceStr += (item.dynamicData.device.manufacture !== undefined) ? item.dynamicData.device.manufacture : ''; deviceStr += (item.dynamicData.device.model !== undefined) ? ' (' + item.dynamicData.device.model + ')' : ''; %> <% }) %>
Name Country IP Device Last Seen Manage
<%= item.clientID %> <%= item.dynamicData.clientIP %> <%= deviceStr %> <%= lsdate.toLocaleString('en-GB', { timeZone: 'UTC' }) %> Manage

Offline

<% clientsOffline.forEach((item) => { let lsdate = new Date(item.lastSeen); let flagCss = (item.dynamicData.clientGeo.country !== undefined) ? ('flag ' + item.dynamicData.clientGeo.country).toLowerCase() : 'icon question mark' let deviceStr = ''; deviceStr += (item.dynamicData.device.manufacture !== undefined) ? item.dynamicData.device.manufacture : ''; deviceStr += (item.dynamicData.device.model !== undefined) ? ' (' + item.dynamicData.device.model + ')' : ''; %> <% }) %>
Name Country IP Device Last Seen Manage
<%= item.clientID %> <%= item.dynamicData.clientIP %> <%= deviceStr %> <%= lsdate.toLocaleString('en-GB', { timeZone: 'UTC' }) %> Manage
<% include partials/footer.ejs %>