{% extends 'base.html' %}{% from '_m.html' import st, avatar %}{% block title %}Dashboard{% endblock %}{% block content %} {% macro punchbtn() %}{% if not rec or not rec.check_out %}{% else %}Done for today ✓{% endif %}{% endmacro %}

Welcome{{ ', ' + g.emp.full_name.split()[0] if g.emp }} 👋

{{ company }} · {{ 'HR overview' if is_hr else 'Your workspace' }}

{% if g.emp %}
Today's attendance
{% if rec %}{{ rec.check_in }}{% if rec.check_out %} – {{ rec.check_out }}{% endif %}{% else %}Not checked in{% endif %}
{% if rec and rec.method %}via {{rec.method}}{% endif %}
{{ punchbtn() }}
{% endif %}
--:--:--
Pakistan Standard Time
{% if g.emp %}{% endif %} {% if is_hr %}
Total employees
0
{{late}} late today
Present today
0
{{onleave}} on leave
Monthly salary bill ({{cur}})
0
Gross, active staff

Daily attendance analysis · this month

Today at a glance

{{rate_today}}%
Attendance rate today
{{ (hipaa[0]/hipaa[1]*100)|round|int if hipaa[1] else 0 }}%
HIPAA training compliance

Salary analysis by department

Employee structure by department

✨ Smart insights · automated

{% for lv,ic,t,x,u in insights %}
{{t}}{{x}}
{% endfor %}

Attendance rate · last 14 working days (%)

Net payroll · finalized months

Needs your attention

Leave requests · {{alerts.leave}}Expense claims · {{alerts.exp}}Loan requests · {{alerts.loan}}Corrections · {{alerts.reg}}Helpdesk · {{alerts.tix}}Trainings expiring · {{tr_exp}}Documents expiring · {{doc_exp}}
{% endif %} {% if not is_hr and g.emp %}

Self-service

Apply for leaveExpense claimMy payslipsFix attendanceLog productivityDialerMy goalsDocumentsHR helpdeskAdvance / loan
{% endif %}
{% if g.emp %}

My leave balance

{% for b in bal if b.total<365 %}
{{b.name.replace(' Leave','')}}
{{b.left|round(1)}}/{{b.total}}
{% endfor %} Apply for leave{% if pend_team %} · {{pend_team}} team request(s){% endif %}{% if slip %}

Latest payslip: {{slip.month}}

{% endif %}

My goals, tasks & output

{% if my_target %}
Units this month: {{my_units}} (target {{my_target|round|int}}/day)
{% endif %}{% for gl in my_goals %}
{{gl.title}} · {{gl.due or '—'}}
{% endfor %} {% for t in my_tasks %}
☐ {{t.task}} · due {{t.due}}
{% endfor %}{% if not my_goals and not my_tasks %}

No open goals or tasks.

{% endif %}{% if unack %}

{{unack}} polic{{ 'y' if unack==1 else 'ies' }} to acknowledge →

{% endif %}
{% endif %} {% if is_hr %}

🏆 Top performers · this month

{% for b in board %}
{{loop.index}}{{b.full_name[:1]}}{{b.full_name}}{{b.u}} units{{ ' · QA %.0f%%'|format(b.ql) if b.ql }}
{% else %}

Productivity entries will appear here.

{% endfor %}Productivity →
{% endif %}

Announcements & holidays

{% for a in ann %}
{{a.title}}
{{a.created}} · {{a.author}}

{{a.body}}

{% else %}

No announcements.

{% endfor %}{% for h in hol %}
🎉 {{h.day}} · {{h.name}}
{% endfor %}

People & events

🎂 Birthdays this month
{% for b in bdays %}
{{ avatar(b.id, b.full_name, b.photo, "sm") }}{{b.full_name}} · {{b.dob[8:]}}/{{b.dob[5:7]}}
{% else %}

None.

{% endfor %}
🏅 Work anniversaries
{% for b in anniv %}
{{b.full_name}} · since {{b.join_date[:4]}}
{% else %}

None.

{% endfor %}
🌴 Away today
{% for b in away %}{{b.full_name}} {% else %}

Everyone is in.

{% endfor %}

💛 Recent recognition

{% for k in kudos_recent %}
{{ avatar(k.tid, k.tname, k.tphoto, 'sm') }}
{{k.fname}} → {{k.tname}}
{{k.badge}}
{% else %}

No recognition yet.

{% endfor %}Open wall

📋 My tasks

{% for t in my_tasks2 %}
☐ {{t.title}} · {{t.priority}}{{ ', due ' + t.due if t.due }}
{% else %}

No open tasks.

{% endfor %}All tasks

🗳️ Polls & letters

{% if polls_open %}

{{polls_open}} poll(s) waiting for your vote →

{% else %}

You're up to date on polls.

{% endif %}

Request an HR letter →

{% endblock %}