public function render()
{
$activated = XeToggleMenu::getActivated($this->type, $this->instanceId);
$deactivated = XeToggleMenu::getDeactivated($this->type, $this->instanceId);
$items = [];
foreach ($activated as $key => $item) {
$items[$key] = ['item' => $item, 'activated' => true];
}
foreach ($deactivated as $key => $item) {
$items[$key] = ['item' => $item, 'activated' => false];
}
$typeIdable = str_replace(['/', '@'], '_', $this->type);
return View::make('toggleMenu.setting', ['items' => $items, 'type' => $this->type, 'instanceId' => $this->instanceId, 'typeIdable' => $typeIdable]);
}