<span> <?php echo Yii::t('frontend', 'Select All'); ?> </span> </h4> <?php if ($rootCategories) { ?> <?php foreach ($rootCategories as $rootCategory) { ?> <?php $categoryTree = MigrateSteps::getMage1CategoryTree($rootCategory->entity_id); ?> <div class="tree well"> <?php if ($checked = in_array($rootCategory->entity_id, $migrated_category_ids)) { ?> <span class="glyphicon glyphicon-ok-sign text-success"></span> <?php } ?> <input type="checkbox" <?php echo $checked ? "checked" : ''; ?> id="category_<?php echo $rootCategory->entity_id;