{% if data %}
{{ __("Allocated Leaves") }}
{% for(const [key, value] of Object.entries(data)) { %} {% } %}
{{ __("Leave Type") }} {{ __("Total Allocated Leaves") }} {{ __("Used Leaves") }} {{ __("Pending Leaves") }} {{ __("Available Leaves") }}
{%= key %} {%= value["total_leaves"] %} {%= value["leaves_taken"] %} {%= value["pending_leaves"] %} {%= value["remaining_leaves"] %}
{% } else { %}

No Leaves have been allocated.

{% } %}