{% extends 'base.html' %} {% load static %} {% block title %}{{ employee.full_name }} - HR - Optinet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ employee.full_name }}

Employee Details

{% include 'hr/hr_nav.html' %}
Employee Information
{% if employee.profile_picture %}
Profile Picture:
{{ employee.full_name }}
{% endif %}
Employee ID:
{{ employee.employee_id }}
Full Name:
{{ employee.full_name }}
Email:
{{ employee.email }}
Phone:
{{ employee.phone }}
ID Number:
{{ employee.id_number }}
Department:
{{ employee.department.name|default:"N/A" }}
Job Title:
{{ employee.job_title }}
Employment Status:
{{ employee.get_employment_status_display }}
Hire Date:
{{ employee.hire_date|date:"M d, Y" }}
{% if employee.probation_end_date %}
Probation End Date:
{{ employee.probation_end_date|date:"M d, Y" }}
{% endif %} {% if employee.termination_date %}
Termination Date:
{{ employee.termination_date|date:"M d, Y" }}
{% endif %}
Employment Type:
{{ employee.get_employment_type_display }}
{% if employee.kra_pin %}
KRA PIN:
{{ employee.kra_pin }}
{% endif %} {% if employee.nssf_number %}
NSSF Number:
{{ employee.nssf_number }}
{% endif %} {% if employee.nhif_number %}
NHIF Number:
{{ employee.nhif_number }}
{% endif %}
Salary & Banking Information
Basic Salary:
KES {{ employee.basic_salary|floatformat:2 }}
{% if employee.bank_name %}
Bank Name:
{{ employee.bank_name }}
{% endif %} {% if employee.bank_account_number %}
Account Number:
{{ employee.bank_account_number }}
{% endif %} {% if employee.bank_branch %}
Bank Branch:
{{ employee.bank_branch }}
{% endif %}
Address Information
Physical Address:
{{ employee.physical_address }}
{% if employee.postal_address %}
Postal Address:
{{ employee.postal_address }}
{% endif %}
Emergency Contact
{% if employee.emergency_contact_name %}
Name:
{{ employee.emergency_contact_name }}
{% endif %} {% if employee.emergency_contact_phone %}
Phone:
{{ employee.emergency_contact_phone }}
{% endif %} {% if employee.emergency_contact_relationship %}
Relationship:
{{ employee.emergency_contact_relationship }}
{% endif %} {% if not employee.emergency_contact_name %}

No emergency contact information available.

{% endif %}
Recent Deductions
{% if recent_deductions %} {% for deduction in recent_deductions %}
{{ deduction.get_deduction_type_display }}
KES {{ deduction.amount|floatformat:2 }}
{{ deduction.created_at|date:"M d, Y" }}
{% endfor %} {% else %}

No recent deductions

{% endif %}
Recent Bonuses
{% if recent_bonuses %} {% for bonus in recent_bonuses %}
{{ bonus.get_bonus_type_display }}
KES {{ bonus.amount|floatformat:2 }}
{{ bonus.created_at|date:"M d, Y" }}
{% endfor %} {% else %}

No recent bonuses

{% endif %}
{% if documents %}
{% for document in documents %} {% endfor %}
Type Title Size Upload Date Actions
{{ document.get_document_type_display }} {{ document.title }} {{ document.file_size }} {{ document.uploaded_at|date:"M d, Y" }}
{% else %}

No documents uploaded yet.

Upload First Document
{% endif %}
Recent Payslips
{% if recent_payslips %} {% for payslip in recent_payslips %}
{{ payslip.payslip_number }}
${{ payslip.net_salary|floatformat:2 }}
{{ payslip.pay_period_start|date:"M Y" }}
{% endfor %} {% else %}

No payslips generated

{% endif %}
Account Information
{% if employee.user %}
Username:
{{ employee.user.username }}
Role:
{{ employee.user.get_role_display }}
Last Login:
{% if employee.user.last_login %} {{ employee.user.last_login|date:"M d, Y H:i" }} {% else %} Never logged in {% endif %}
Account Status:
{% if employee.user.is_active %} Active {% else %} Inactive {% endif %}
{% else %}

No user account exists for this employee.

{% endif %} {% if not employee.user %} {% else %}
User account exists
{% endif %}
Actions
{% if not employee.user %} Send Account Invitation {% else %} Account Already Created {% endif %} Add Deduction Add Bonus
{% if employee.user %} {% endif %} {% endblock content %} {% block extra_js %} {% endblock %}