@php $isActive = $currentFolderId && $currentFolderId == $folder->id; $children = $folder->children; $hasKids = $children->count() > 0; $colId = 'dmsf-' . $folder->id; @endphp