<div style="background-color:#dbdad6; width:201px; padding-bottom:1px;">
<ul class="treeview-list treeview">
	<div class="box" style="background-color: #f6f6f6 !important; width:173px; margin: -4px 0 4px 4px; position:relative; z-index:99; padding-top:0px !important;">
	  
      <?php foreach ($categories as $category) { ?>
      <li>
        <?php if ($category['category_id'] == $category_id) { ?>
        <a href="<?php echo $category['href']; ?>" class="active" style="font-weight:600;"><?php echo $category['name']; ?></a>
        <?php } else { ?>
        <a href="<?php echo $category['href']; ?>" style="font-weight:600;"><?php echo $category['name']; ?></a>
        <?php } ?>
        <?php if ($category['children']) { ?>		
        <ul>
		  <?php foreach ($category['children'] as $child) { ?>
          <li style="padding-top:8px !important; padding-bottom:0px !important; ">
            <?php if ($child['category_id'] == $child_id) { ?>
            <a href="<?php echo $child['href']; ?>" class="active"><?php echo $child['name']; ?></a>
            <?php } else { ?>
            <a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a>
            <?php } ?>
          </li>
          <?php } ?>
        </ul>
      </li>
 
	  <?php } ?>	  <?php } ?>
    </ul>
</div>
	
	
