<div class="list-group">
<?php foreach($sideNavPages as $page): ?>
  <a class="list-group-item <?= ($this->uri->segment(1)==$page->page_url)? 'active':'';?>" href="<?= base_url($page->page_url) ?>"><?= $page->page_label ?></a>
<?php endforeach;; ?>
</div>
