<?php use \App\Models\ProductCategory; ?>
<?php if($ProductCategory->Children()->count()>0): ?>
    <?php $__currentLoopData = $ProductCategory->Children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $childCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <li class="menu-item <?php if($childCategory->Children()->count()>0): ?> menu-item-has-children has-child <?php endif; ?>">
            <a href="<?php echo e(route('products',$childCategory->id)); ?>" class="menu-name" data-title="<?php echo e($childCategory->title); ?>">
                <img src="<?php echo e($childCategory->imageUrl); ?>" style="height:25px;" alt=""><?php echo e($childCategory->title); ?> </b>
            </a>
            <?php if($childCategory->Children()->count()>0): ?>
                <ul class="sub-menu">
                    <?php
                        echo App\Http\Controllers\ProductCategoryController::Dropdown($childCategory->id);
                    ?> 
                </ul>
            <?php endif; ?>
        </li>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php /**PATH C:\Users\Irfan\Desktop\ErpLite\resources\views/ProductCategory/menu.blade.php ENDPATH**/ ?>