{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge, empty_state %} {% block content %} {% set breadcrumbs = [ {'text': 'Admin Dashboard'} ] %} {{ page_header( icon_class='fas fa-cog', title_text='Admin Dashboard', subtitle_text='System overview and management', breadcrumbs=breadcrumbs, actions_html=None ) }}

{{ _('Total Users') }}

{{ stats.total_users }}

{{ _('All time') }}

{{ _('Active Users') }}

{{ stats.active_users }}

{{ _('Currently active') }}

{{ _('Total Projects') }}

{{ stats.total_projects }}

{{ _('All time') }}

{{ _('Active Projects') }}

{{ stats.active_projects }}

{{ _('Currently active') }}

{{ _('Total Entries') }}

{{ stats.total_entries }}

{{ _('Time entries logged') }}

{{ _('Active Timers') }}

{{ stats.active_timers }}

{{ _('Currently running') }}

{{ _('Total Hours') }}

{{ "%.1f"|format(stats.total_hours / 3600 if stats.total_hours else 0) }}

{{ _('All time tracked') }}

{{ _('Billable Hours') }}

{{ "%.1f"|format(stats.billable_hours / 3600 if stats.billable_hours else 0) }}

{{ _('Billable time') }}

{{ _('User Activity (30 Days)') }}

{{ _('Project Status') }}

{{ _('Time Entry Trends (30 Days)') }}

{{ _('System Health') }}

{{ _('Database') }}
{{ _('Connected') }}
{{ _('OIDC Authentication') }}
{% if oidc_configured %}{{ _('Configured') }}{% else %}{{ _('Not Configured') }}{% endif %}
{% if oidc_enabled %}
{{ _('OIDC Users') }}
{{ oidc_users_count }} {{ _('users') }}
{% endif %}

{{ _('Admin Sections') }}

Manage Users
Roles & Permissions
API Tokens
REST API Access
Webhooks
Outgoing Events
Integrations
OAuth Setup
Email Configuration
Test & Configure
Email Templates
Invoice Email Templates
Settings
System Info
Custom Fields
Global Field Definitions
Link Templates
URL Templates for Fields
Salesman Email Mappings
Report Distribution

{{ _('Recent Activity') }}

{% if recent_entries %}
{% for entry in recent_entries %} {% endfor %}
{{ _('User') }} {{ _('Project') }} {{ _('Duration') }} {{ _('Date') }}
{{ entry.user.username }}
{{ entry.project.name if entry.project else _('N/A') }}
{{ entry.duration }}
{{ entry.start_time|user_datetime }}
{% else %} {{ empty_state('fas fa-inbox', 'No Recent Activity', 'There are no recent time entries to display.', None, type='no-data') }} {% endif %}
{% endblock %} {% block scripts_extra %} {% endblock %}