Welcome, <%= @user.email_address %>

<% if @user.admin? %> Administrator <% else %> User <% end %>

Active Sessions
<%= @user.sessions.active.count %>
<%= link_to "View all sessions", profile_path, class: "text-sm font-medium text-blue-600 hover:text-blue-500" %>
<% if @user.totp_enabled? %>
Two-Factor Authentication
Enabled
<%= link_to "Manage 2FA", profile_path, class: "text-sm font-medium text-blue-600 hover:text-blue-500" %>
<% else %>
Two-Factor Authentication
Not Enabled
<%= link_to "Enable 2FA", profile_path, class: "text-sm font-medium text-blue-600 hover:text-blue-500" %>
<% end %>
<% if @user.admin? %>

Admin Quick Actions

<%= link_to admin_users_path, class: "block p-6 bg-white rounded-lg border border-gray-200 shadow-sm hover:bg-gray-50 hover:shadow-md transition" do %>

Manage Users

View, edit, and invite users

<% end %> <%= link_to admin_applications_path, class: "block p-6 bg-white rounded-lg border border-gray-200 shadow-sm hover:bg-gray-50 hover:shadow-md transition" do %>

Manage Applications

Register and configure applications

<% end %> <%= link_to admin_groups_path, class: "block p-6 bg-white rounded-lg border border-gray-200 shadow-sm hover:bg-gray-50 hover:shadow-md transition" do %>

Manage Groups

Create and organize user groups

<% end %>
<% end %>