<?php if(count($model) > 0): ?>
  <?php if(isset($parent[0])): ?>
    <h2><?php echo e($parent[0]->source); ?></h2>
  <?php endif; ?>
  <ul class="category-sidebar pst-block-head">
    <?php $__currentLoopData = $model; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
      <?php 
        $tmpUrl = $item->url;

        if($tmpUrl == "#\$cat\$#"){
          $tmpUrl = "/listcategory/".$item->ca_id;
        }

       ?>
      <li><a class="<?php echo e(($item->ca_id == $cat_id) ? ' active' : ''); ?>" href="<?php echo e($tmpUrl); ?>" target="<?php echo e($item->target); ?>"> - <?php echo e($item->source); ?></a></li>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
  </ul>
<?php endif; ?>
