{{# unless leaves}}
There are no leave requests yet.
{{else}}

Scroll table horizontally

{{# each leaves }} {{/ each }}
Dates (from to) Type Deducted Approved by Comment Status
{{> leave_dates leave=this}} {{ this.leave_type.name }}{{#if this.is_pended_revoke_leave}}
(pended revoke){{/if}}
{{ this.get_deducted_days_number }} {{#with this.approver}}{{this.full_name}}{{/with}} {{# if this.is_approved_leave }} {{# unless this.is_pended_revoke_leave}}
{{/unless}} {{else}} {{#if_equal this.userId ../logged_user.id }}
{{/if_equal}} {{/if}}
{{this.comment.comment}} {{#if this.is_new_leave }}Pending{{else}}{{#if this.is_approved_leave}}Approved{{else}}Rejected{{/if}}{{/if}}
{{/unless}}