{$i18n.t('Admin Panel')} | {$WEBUI_NAME} {#key selectedUser} { users = await getUsers(localStorage.token); }} /> {/key}
{#if loaded}
Dashboard
Overview

{$i18n.t('All Users')}
{users.length}
{#each users .filter((user) => { if (search === '') { return true; } else { let name = user.name.toLowerCase(); const query = search.toLowerCase(); return name.includes(query); } }) .slice((page - 1) * 20, page * 20) as user} {/each}
{$i18n.t('Role')} {$i18n.t('Name')} {$i18n.t('Email')} {$i18n.t('Created at')} {$i18n.t('Last Active')}
user
{user.name}
{user.email} {dayjs(user.created_at * 1000).format($i18n.t('MMMM DD, YYYY'))} {dayjs(user.last_active_at * 1000).fromNow()}
ⓘ {$i18n.t("Click on the user role button to change a user's role.")}
{/if}