protected function renderLabel(ItemInterface $item, array $options) { $html = '<i class="' . $item->getIcon() . '"></i> '; $html .= '<span>' . $item->getLabel() . '</span>'; if ($item->hasChildren()) { $drop = false; foreach ($item->getChildren() as $child) { if (\App::isGranted($child->getPermissions())) { $drop = true; } } if ($drop) { $html .= '<i class="fa fa-angle-left pull-right"></i>'; } } return $html; }