}
        {% endif %}
        {% endfor %}</td>


      <td>{% for available_leave in leave_request.employee_id.available_leave.all %}
        {% if available_leave.leave_type_id.id == leave_request.leave_type_id.id %}
        {{available_leave.total_leave_days}}
        {% endif %}
        {% endfor %}</td>

      <td>{{leave_request.requested_days}}</td>

      {% for choice in choices %}
      {% if choice.0 == leave_request.status %}
      <td>{{choice.1}}</td>
      {% endif %}
      {