<div class="container-fluid bg-light">
    <div class="container pt-3">
    <div class="row py-5">
        
        <div class="col-md-4 mb-4">
                        <h5 class="mb-3 fw-bold">Popular Post</h5>
            <ul class="list-group list-group-flush">
            <?php
                              $listOfKeys = $pages->getList(1, 5);
                              if ($listOfKeys) :
                              foreach ($listOfKeys as $key) :
                              $lPage = new Page($key);
                            ?>
                            <li class="list-group-item bg-light" style="padding-left:0px;"><a class="text-decoration-none" href="<?php echo $lPage->permalink() ?>"><?php echo $lPage->title() ?></a></li>
                            <?php endforeach ?>
                           <?php endif ?>
            </ul>
        </div>
        
        <div class="col-md-4 mb-4">
            <h5 class="mb-3 fw-bold">Popular Topic</h5>
            <ul class="list-group list-group-flush">
            <?php foreach ($categories->db as $key=>$fields):
            if($fields['list']):  ?>
                            <li class="list-group-item bg-light" style="padding-left:0px;"><a class="text-decoration-none" href="<?php echo DOMAIN_CATEGORIES.$key; ?>"><?php echo $fields['name']; ?></a></li>
                            <?php
              endif;
              endforeach; ?>
            </ul>
        </div>
        
        <div class="col-md-4 mb-4">
            <h5 class="mb-3"><img src="https://travehelo.com/bl-themes/diqets/img/travehelo-logo.png" width="100"></h5>
            <div class="d-flex pb-3 pt-3">
                <a class="btn me-2 bg-white" href="#" role="button" style="color:#d90a8f;"><i class="fab fa-facebook-f"></i></a>
                <a class="btn me-2 bg-white" href="#" role="button" style="color:#d90a8f;"><i class="fab fa-instagram"></i></a>
                <a class="btn me-2 bg-white" href="#" role="button" style="color:#d90a8f;"><i class="fab fa-twitter"></i></a>
            </div>
            <p><?php echo $site->title(); ?>.com mengumpulkan banyak tips dan informasi seputar traveling. Informasi yang di sajikan semoga dapat menambah pengetahuan mengenai tempat tujuan Anda berlibur.</p>
            <p class="pt-2">&copy; 2021 <strong><?php echo $site->title(); ?>.com</strong>. All Rights Reserved</p>
        </div>
        
    </div>
    </div>
</div>