{% extends 'base.html' %} {% block content %}

My Profile

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for c, m in messages %} {% endfor %} {% endif %} {% endwith %}
Employee Code: {{ emp.employee_code }}
Department: {{ emp.department.name if emp.department else '-' }}
Designation: {{ emp.designation.title if emp.designation else '-' }}
Reporting Manager: {{ emp.manager.full_name if emp.manager else '-' }}
Work Mode: {{ emp.work_mode or '-' }}
Shift: {{ emp.shift_start or '-' }} – {{ emp.shift_end or '-' }}
Note: Company fields shown above are read‑only here.
{% set ro = (emp.status or '').lower() == 'resigned' %}
Personal Information

ID Details

Bank Details

Documents
{% macro doc_input(label, name, path) -%}
{% if path %} {% set p = (path or '').replace('\\','/') %} {% if p.startswith('uploads/') %} {% set rel = p[8:] %} {% else %} {% set rel = p %} {% endif %} {% endif %}
{%- endmacro %} {{ doc_input('Resume', 'resume', emp.resume_path) }} {{ doc_input('ID Proof', 'id_proof', emp.id_proof_path) }} {{ doc_input('Qualification Certificates', 'doc_qualification', emp.doc_qualification) }} {{ doc_input('Photographs', 'doc_photographs', emp.doc_photographs) }} {{ doc_input('PAN Card', 'doc_pan_card', emp.doc_pan_card) }} {{ doc_input('Aadhar Card', 'doc_aadhar_card', emp.doc_aadhar_card) }} {{ doc_input('Parent/Spouse Aadhar', 'doc_parents_aadhar', emp.doc_parents_aadhar) }} {{ doc_input('UAN Card', 'doc_uan_card', emp.doc_uan_card) }} {{ doc_input('Cancelled Cheque', 'doc_cancelled_cheque', emp.doc_cancelled_cheque) }}
{% if ro %} {% else %} {% endif %}
{% endblock %}