{% extends "base.html" %} {% block title %}Payroll Management{% endblock %} {% block content %}

💰 Payroll Management

Manage employee salaries, track payments, and generate payslips

📊
{{ stats.total }}
Total Records
⏳
{{ stats.pending }}
Pending
💰
{{ stats.payrolls|length if stats.payrolls else 0 }}
This Month
{% for stat in team_stats %}
🏢 {{ stat[0] }}
👥 {{ stat[1] }} Employees 💰 ₨ {{ "{:,.0f}".format(stat[2]) }}
✅ Paid: ₨ {{ "{:,.0f}".format(stat[3]) }} 📅 This Month
{% endfor %}
{% for p in payrolls %} {% endfor %}
IDTeamEmployeeBasicPetrol Add. EarningsGrossTaxDeductions NetMonth/YearStatusAction
#{{ loop.index }} {{ p[2] }} {{ p[3] }} ₨ {{ "{:,.0f}".format(p[5]) }} ₨ {{ "{:,.0f}".format(p[6]) }} ₨ {{ "{:,.0f}".format(p[7]) }} ₨ {{ "{:,.0f}".format(p[8]) }} ₨ {{ "{:,.0f}".format(p[9]) }} ₨ {{ "{:,.0f}".format(p[10]) }} ₨ {{ "{:,.0f}".format(p[12]) }} {{ p[18] }}/{{ p[19] }} {{ '✅ Paid' if p[20] == 'Paid' else '⏳ Pending' }} ✏️ Edit {% if p[20] != 'Paid' %}💰 Process{% endif %} 🗑️ Del
{% endblock %}