{% extends 'base.html' %} {% load static %} {% block title %}Staff Details - {{ admin.get_full_name }}{% endblock %} {% block content %}

đŸ›Ąī¸ Staff Details

Detailed information for {{ admin.get_full_name }}

âœī¸ Edit Permissions {% if admin.status == 'suspended' %} Reactivate {% else %} Suspend {% endif %}
{% if admin.selfie %} {% else %}
👤
{% endif %}

{{ admin.get_full_name }}

{{ admin.get_role_display }}

{% if admin.role == 'admin' %} Admin {% elif admin.role == 'team_leader' %} 👔Team Leader {% elif admin.role == 'loan_officer' %} Loan Officer {% elif admin.role == 'secretary' %} Secretary {% endif %} {% if admin.status == 'active' %} Active {% elif admin.status == 'suspended' %} Suspended {% elif admin.status == 'dormant' %} Dormant {% endif %}

{{ admin.username }}

{{ admin.email|default:"Not provided" }}

{{ admin.phone_number }}

{{ admin.date_joined|date:"F d, Y" }}

{% if admin.last_login %} {{ admin.last_login|date:"F d, Y H:i" }} {% else %} Never logged in {% endif %}

{% if admin.is_active %} Active {% else %} Inactive {% endif %}

⚡ Quick Actions
📊 Account Statistics

{{ audit_logs.count }}

Actions

{% if admin.is_active %}Yes{% else %}No{% endif %}

Active

Recent Activity
{% if audit_logs %}
{% for log in audit_logs %} {% endfor %}
Action Description IP Address Date
{% if log.action == 'login' %} Login {% elif log.action == 'logout' %} Logout {% elif log.action == 'create' %} +Create {% elif log.action == 'update' %} âœī¸Update {% elif log.action == 'delete' %} đŸ—‘ī¸Delete {% else %} {{ log.action|title }} {% endif %} {{ log.description }} {{ log.ip_address|default:"-" }} {{ log.accessed_at|date:"M d, Y H:i" }}
{% else %}
â„šī¸

No recent activity found

This user hasn't performed any actions yet.

{% endif %}
{% endblock %}