{% extends "base.html" %} {% block title %}Employee Dashboard{% endblock %} {% block page_title %}Employee Dashboard{% endblock %} {% block content %}

Welcome, {{ employee.name }}! 👋

Here's your work overview and recent activities.

{{ stats.present_days }}
✅ Present Days
{{ stats.absent_days }}
❌ Absent Days
{{ stats.late_days }}
⏰ Late Days
{{ stats.leave_balance }}
📅 Leave Balance

👤 My Profile

Edit Profile
Full Name:
{{ employee.name }}
Email:
{{ employee.email }}
Phone:
{{ employee.phone }}
Department/Team:
{{ employee.department }}
Position:
{{ employee.position }}
Joining Date:
{{ employee.joining_date }}

💻 My Assets

View All
{% if assets and assets|length > 0 %} {% else %}
No assets assigned yet.
{% endif %}

💰 Recent Payroll

View All
{% if payrolls and payrolls|length > 0 %} {% for payroll in payrolls[:3] %} {% endfor %}
MonthYearBasic SalaryNet SalaryStatus
{{ payroll[10] }} {{ payroll[11] }} ₹{{ "%.2f"|format(payroll[4]) }} ₹{{ "%.2f"|format(payroll[8]) }} {% if payroll[12] == 'Paid' %} ✅ Paid {% else %} ⏳ Pending {% endif %}
{% else %}
No payroll records found.
{% endif %}

📋 My Recent Requests

View All →
{% if requests and requests|length > 0 %} {% for req in requests[:5] %} {% endfor %}
Type Subject Dates Status Submitted
{{ req[3] }} {{ req[4] }} {% if req[6] %}{{ req[6][:10] }}{% endif %} {% if req[6] and req[7] %} to {% endif %} {% if req[7] %}{{ req[7][:10] }}{% endif %} {% if req[8] == 'pending' %} ⏳ Pending {% elif req[8] == 'approved' %} ✅ Approved {% elif req[8] == 'rejected' %} ❌ Rejected {% else %} {{ req[8] }} {% endif %} {% if req[9] %}{{ req[9][:16] }}{% endif %}
{% else %}
No requests yet. Create a request
{% endif %}
{% endblock %}