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

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

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

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