{% extends 'base.html' %}{% from '_m.html' import st, avatar %}{% block title %}{{e.full_name}}{% endblock %}{% block content %}
{{ avatar(e.id, e.full_name, e.photo, 'xl') }}{% if can_photo %}{% endif %}

{{e.full_name}} {{ st(e.status) }}

{% if e.level %}{{e.level}}{% endif %}{{e.designation or 'No designation'}}·{{e.dept or 'No department'}}·{{e.code}}
{% if is_hr %} Edit Attendance{% endif %}{% if can_photo %} ID card{% endif %}
{% if can_photo %}{% if e.photo %}
{% endif %}{% endif %}
TENURE

{{tenure}}

Joined {{e.join_date}}
{{att_rate}}%
Attendance this month
LEAVE LEFT

{{ bal|selectattr('total','lt',365)|sum(attribute='left')|round(1) }}

days across paid types
OUTPUT THIS MONTH

{{units}}

units logged

Attendance · {{month}}

{% for d, s in heat %}{{d}}{% endfor %}
Green present · amber late/half · purple leave · red absent · grey off/pending

Details

Reports to{% if e.mgr %}{{ avatar(e.mgr_id, e.mgr, e.mgr_photo, "sm") }}{{e.mgr}}{% else %}—{% endif %}Email{{e.email or '—'}}Phone{{e.phone or '—'}}Type{{e.emp_type}}Shift{{e.shift_start}} – {{e.shift_end}}Emergency{{e.emergency or '—'}}Address{{e.address or '—'}}
{% if is_hr %}

Salary

Basic{{cur}} {{'{:,.0f}'.format(e.basic)}}Allowances{{cur}} {{'{:,.0f}'.format(e.house+e.medical+e.transport+e.other)}}Fixed deduction{{cur}} {{'{:,.0f}'.format(e.fixed_ded)}}Bank{{e.bank or '—'}}

Login

{% if u %}
Username{{u.username}}Role{{u.role}}
{% else %}

No login yet.

{% if e.email %}
{% endif %}{% endif %}{% endif %}
{% if team %}

Team ({{team|length}} people below)

{% for p in team %}
{{ avatar(p.id, p.full_name, p.photo, "lg") }}
{{p.full_name}}
{{p.designation or 'No designation'}}
{% if p.level %}{{p.level}}{% endif %}
{% endfor %}
{% endif %}

Leave balance

{% for b in bal if b.total<365 %}
{{b.name.replace(' Leave','')}}
{{b.left|round(1)}}/{{b.total}}
{% endfor %}

Payslips

{% for s in slips %}{% else %}{% endfor %}
{{s.month}} {% if is_hr %}{{ st(s.st) }}{% endif %}{{cur}} {{'{:,.0f}'.format(s.net)}}View
No payslips yet.
{% endblock %}