13141516171819202122232425262728293031 </li>
<?php if ($categories['subCategory']):?>
<ul>
<?php foreach ($categories['subCategory'] as $subCategories):?>
<li><a href="<?= Url::to(['category/products','subCategory_id'=>$subCategories['id']])?>">
<?=$subCategories['title'];?></a>
<ul>
<?php foreach ($products as $product): ?>
<?php if ($product['parent_subcategory']==$subCategories['id']): ?>
<li><a href="<?= Url::to(['category/card-info','product_id'=>$product['id']])?>"><?= $product['title']?></a></li>
<?php endif ?>
<?php endforeach ?>
</ul>
</li>