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

Employee Management

➕ Add New Employee

👥 Total

{{ employees|length }}
All employees

✅ Active

{{ employees|selectattr('status', 'equalto', 'active')|list|length }}
Currently working

🏪 Meat Shop

{{ employees|selectattr('employee_type', 'equalto', 'meat_shop')|list|length }}
Shop staff

❌ Inactive

{{ employees|selectattr('status', 'equalto', 'inactive')|list|length }}
Not working

All Employees

{% if employees %}
{% for employee in employees %} {% endfor %}
Employee ID Name Type Designation Department Joining Date Salary Status Actions
{{ employee.employee_id }} {{ employee.full_name }}
{{ employee.phone or 'No phone' }}
{% if employee.employee_type == 'meat_shop' %} 🏪 Shop {% elif employee.employee_type == 'delivery' %} 🚚 Delivery {% elif employee.employee_type == 'office' %} 🏢 Office {% elif employee.employee_type == 'production' %} 🏭 Production {% elif employee.employee_type == 'management' %} 👔 Management {% else %} {{ employee.employee_type|title }} {% endif %} {{ employee.designation }} {{ employee.department }} {{ employee.joining_date|date_format }} {{ employee.salary|currency }}
{{ employee.salary_type|title }}
{% if employee.status == 'active' %} ✅ Active {% elif employee.status == 'inactive' %} ❌ Inactive {% else %} ⚠️ {{ employee.status|title }} {% endif %}
{% else %}
👥

No employees yet

Add your first employee to get started

Add First Employee
{% endif %}

Quick Actions

📅 Manage Attendance 💰 Manage Expenses 💳 Process Payments

Employee Management Tips

📋 Employee Records: Keep complete information including emergency contacts

⏰ Attendance: Track daily check-ins and working hours

💰 Expenses: Approve and track employee expense claims

💳 Payments: Process salaries, bonuses, and reimbursements

{% endblock %}