{% extends 'backoffice/base.html' %} {% block title %}Leave Management{% endblock %} {% block content %}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}

LEAVE MANAGEMENT

{% for leave in page_obj %} {% endfor %}
Employee Start Date End Date Leave Type Reason Status Created On Updated At Action
{{ leave.user.first_name }} {{ leave.user.last_name }} {{ leave.startdate|date:"F d, Y" }} {{ leave.enddate|date:"F d, Y" }} {{ leave.get_leavetype_display }} {{ leave.reason }} {{ leave.get_status_display }} {{ leave.created|date:"F d, Y" }} {{ leave.updated|date:"F d, Y" }} {% if leave.status == 'pending' %} Approve Reject {% elif leave.status == 'approved' %} Cancel {% else %} {% endif %}
Export to Excel
{% endblock %}