<div class="col-lg-3">
    <div class="card">
        <div class="card-header d-flex justify-content-between">
            <h6 class="card-header d-flex align-items-center">
                <i class="fa fa-paper-plane font-30 mr-10"></i>
                <?php echo $this->lang->line('leave'); ?> <?php echo $this->lang->line('list'); ?>
            </h6>
        </div>
        <ul class="list-group list-group-flush">
            <?php if (has_permission(VIEW, 'leave', 'type')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'type' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'type' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('leave/type'); ?>"><i class="fa fa-list" aria-hidden="true"></i> <?php echo $this->lang->line('leave'); ?> <?php echo $this->lang->line('type'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'leave', 'application')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'application' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'application' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('leave/application'); ?>"><i class="fa fa-list-alt" aria-hidden="true"></i> <?php echo $this->lang->line('leave'); ?> <?php echo $this->lang->line('application'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'leave', 'application')) { ?>
                <li class="list-group-item <?php echo $this->input->get('status') == 'waiting' ? 'active' : ''; ?>">
                    <a <?php echo $this->input->get('status') == 'waiting' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('leave/application?status=waiting'); ?>"><i class="fa fa-circle-o" aria-hidden="true"></i> <?php echo $this->lang->line('waiting'); ?> <?php echo $this->lang->line('application'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'leave', 'application')) { ?>
                <li class="list-group-item <?php echo $this->input->get('status') == 'approved' ? 'active' : ''; ?>">
                    <a <?php echo $this->input->get('status') == 'approved' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('leave/application?status=approved'); ?>"><i class="fa fa-check" aria-hidden="true"></i> <?php echo $this->lang->line('approved'); ?> <?php echo $this->lang->line('application'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'leave', 'application')) { ?>
                <li class="list-group-item <?php echo $this->input->get('status') == 'declined' ? 'active' : ''; ?>">
                    <a <?php echo $this->input->get('status') == 'declined' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('leave/application?status=declined'); ?>"><i class="fa fa-ban" aria-hidden="true"></i> <?php echo $this->lang->line('declined'); ?> <?php echo $this->lang->line('application'); ?></a>
                </li>
            <?php } ?>

        </ul>
    </div>
</div>