<div class="list-group">
    <?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <a href="<?php echo e(route($routeLink, $department->id)); ?>" class="list-group-item list-group-item-action <?php if($department->id == $activeDepartment): ?> active <?php endif; ?> ">
            <?php echo e($department->name); ?>

        </a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php if(Auth::user() != null): ?>
        <a href="<?php echo e(route('admin.departments.create')); ?>" class="list-group-item list-group-item-action"><i class="fa fa-plus-circle mr-2"></i>Додај смер</a>
    <?php endif; ?>
</div>
<?php /**PATH C:\xampp\htdocs\resources\views/admin/departments/navigation.blade.php ENDPATH**/ ?>