<?php if (!empty($tags)) {
	?>
    <div class="panel sidebar-menu">
        <div class="panel-heading">
            <h3 class="panel-title"><?= \Yii::t('app', 'Search by tag') ?></h3>
        </div>

        <div class="panel-body">
            <ul class="tag-cloud">
				<?php foreach ($tags as $tag) { ?>
                    <li><a href="<?= Url::to(
							[
								'alias' => $tag->alias
							]
						) ?>"><i class="fa fa-tag"></i>&#160<?php = $tag->title; ?></a>
                    </li>
				<?php } ?>
            </ul>
        </div>
    </div>
	<?php
}
?>