<div class="mb-4">
    <h2 class="title"><?php echo $_LANG['categories']; ?></h2>
    <div class="card">
        <div class="card-body">
            <ul class="nav nav-pills flex-column justify-content-center">
                <li>
                    <a class="nav-link <?php echo ($currentCategory == '') ? 'active' : ''; ?>" <?php echo ($currentCategory == '') ? 'aria-current="page"' : ''; ?> href="<?php echo PATH_SYSTEM.$page1; ?>"><?php echo $_LANG['all']; ?></a>
                </li>
                <?php if($categoryList){ ?>
                    <?php foreach($categoryList as $category){ ?>
                        <li>
                            <a class="nav-link <?php echo ($currentCategory == $category->url) ? 'active' : ''; ?>" <?php echo ($currentCategory == $category->url) ? 'aria-current="page"' : ''; ?> href="<?php echo PATH_SYSTEM.$page1.'/'.$category->url; ?>"><?php echo $category->name; ?></a>
                        </li>
                    <?php } ?>
                <?php } ?>
            </ul>
        </div>
    </div>
</div>