<?php if(can_see($item)): ?>
    <li class="<?php echo set_active($item); ?>">
        <a href="<?php echo isset($item['link']) ? url($item['link']) : '#'; ?>">
            <?php if(isset($item['icon'])): ?>
            <i class="fa fa-lg fa-fw <?php echo $item['icon']; ?>"></i> 
            <?php endif; ?>
            <span class="menu-item-parent"><?php echo $title; ?></span>
        </a>
        <?php if(isset($item['subitems'])): ?>
            <ul>
                <?php foreach($item['subitems'] as $subtitle => $subitem): ?>
                    <?php echo $__env->make('subviews.menu', ['title' => $subtitle, 'item' => $subitem], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <?php endforeach; ?>
            </ul>
        <?php endif; ?>
    </li>
<?php endif; ?>