<div class="sidebar left" id="takeawayCategoryNavigation">
    <div class="order-cart-head">Categories</div>
    <div class="cat-nav-list">
        <?php if (!empty($categories)): ?>
            <?php foreach ($categories as $aCategory): ?>
                <?php if (!empty($menus[$aCategory->id])): ?> 
                    <div class="category-tab text-capitalize" id="categoryTab<?php echo $aCategory->id ?>">
                        <a class="text-capitalize" href="javascript:void(0);"><?php echo $aCategory->title ?></a>
                    </div>
                <?php endif; ?>
            <?php endforeach; ?>
        <?php endif ?>
    </div>
</div>