{% extends 'index.html' %} {% load static %} {% load i18n %} {% block content %} {% load tz %} {% now "Y-m-d" as current_date %}
{% trans "Back" %}
{% trans "Requests to Approve" %}
{{requested|length}}
{% trans "Approved Leaves In This Month" %}
{{approved|length}}
{% trans "Rejected Leaves In This Month" %}
{{rejected|length}}
{% trans "Employee Leaves" %}
{% trans "On Leave" %}
{% if leave_today_employees %}
    {% for leave_today_employee in leave_today_employees %}
  • {{leave_today_employee.employee_id}}
  • {% endfor %}
{% elif current_date == next_holiday.start_date|date:"Y-m-d" %}

{% trans "Today is a holiday." %}

{% else %}

{% trans "No leave requests for today." %}

{% endif %}
{% trans "Next Holiday" %} {{next_holiday.name}} {{next_holiday.start_date}}
{% trans "Upcoming holidays" %}
    {% if holidays %} {% for holiday in holidays %}
  • {{holiday.name}}
    {{holiday.start_date}}
  • {% endfor %} {% else %}

    {% trans "No more holidays scheduled for this month." %}

    {% endif %}
{% trans "Department Leaves" %}
{% if current_date == next_holiday.start_date|date:"Y-m-d" %}

{% trans "Today is a holiday." %}

{% else %}
{% endif %}
{% trans "Leave Type - Count of leaves" %}
{% trans "Weekly Leave Analytics" %}
{% endblock %}