{% extends 'base.html.twig' %} {% block title %}My Leaves{% endblock %} {% block content %}

My Leaves

{% if allotment != '' %} {% endif %}
{% include 'parts/flash.html.twig' %}
Available Leaves
CL EL ML HPL LWP
{{ allotment ? allotment.clNum : '0' }} days {{ allotment ? allotment.elNum : '0' }} days {{ allotment ? allotment.mlNum : '0' }} days {{ allotment ? allotment.hplNum : '0' }} days {{ allotment ? allotment.lwpNum : '0' }} days
Applied Leaves
{% for history in leave_history %} {% else %} {% endfor %}
Sr. No. Type Reason Start Date End Date Full Day / Half Day Status Date Applied Actions
{{ loop.index }} {{ history.leaveType }} {{ history.leaveReason }} {{ history.startDate|date('d/m/Y') }} {{ history.endDate|date('d/m/Y') }} {{ history.isHalfLeave ? 'Half Day (' ~ history.halfLeavePeriod ~ ' half)' : 'Full Day' }} {{ history.status }} {{ history.createdAt|date('d/m/Y') }} {% if history.status == 'Pending' %} {% else %} — {% endif %}
No records found
{{ include('parts/pagination.html.twig', {'lastPage': last_page}) }}
{% endblock %}