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

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

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