<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-cogs font-30 mr-10"></i>
                <?php echo $this->lang->line('setting'); ?> <?php echo $this->lang->line('list'); ?>
            </h6>
        </div>
        <ul class="list-group list-group-flush">
            <?php if (has_permission(VIEW, 'setting', 'setting')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'setting' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'setting' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('setting'); ?>"><i class="fa fa-cog" aria-hidden="true"></i> <?php echo $this->lang->line('general'); ?> <?php echo $this->lang->line('setting'); ?></a>
                </li>
            <?php } ?>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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