<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-clock-o font-30 mr-10"></i>
                <?php echo $this->lang->line('attendance'); ?>
            </h6>
        </div>
        <ul class="list-group list-group-flush">
            <?php if (has_permission(VIEW, 'attendance', 'attendance')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'attendance' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'attendance' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('attendance'); ?>"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $this->lang->line('attendance'); ?></a>
                </li>
            <?php } ?>
            <?php if (has_permission(VIEW, 'attendance', 'attendance')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_method() == 'manual' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_method() == 'manual' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('attendance/manual'); ?>"><i class="fa fa-calendar" aria-hidden="true"></i> <?php echo $this->lang->line('manual'); ?> <?php echo $this->lang->line('attendance'); ?></a>
                </li>
            <?php } ?>
            <?php if (has_permission(VIEW, 'attendance', 'logs')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'logs' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'logs' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('attendance/logs'); ?>"><i class="fa fa-bar-chart" aria-hidden="true"></i> <?php echo $this->lang->line('attendance'); ?> <?php echo $this->lang->line('logs'); ?></a>
                </li>
            <?php } ?>
            <?php if (has_permission(VIEW, 'attendance', 'import')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'import' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'import' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('attendance/import'); ?>"><i class="fa fa-upload" aria-hidden="true"></i> <?php echo $this->lang->line('import'); ?> <?php echo $this->lang->line('attendance'); ?></a>
                </li>
            <?php } ?>
        </ul>
    </div>
</div>