{% if not jQuery.isEmptyObject(data) %} {% for(const [key, value] of Object.entries(data)) { %} {% let color = cint(value["remaining_leaves"]) > 0 ? "green" : "red" %} {% } %}
{{ __("Leave Type") }} {{ __("Total Allocated Leaves") }} {{ __("Expired Leaves") }} {{ __("Used Leaves") }} {{ __("Leaves Pending Approval") }} {{ __("Available Leaves") }}
{%= key %} {%= value["total_leaves"] %} {%= value["expired_leaves"] %} {%= value["leaves_taken"] %} {%= value["leaves_pending_approval"] %} {%= value["remaining_leaves"] %}
{% else %}

{{ __("No leaves have been allocated.") }}

{% endif %}