public static function node_menu_creation($node, $languages)
 {
     $menu_array = \Solunes\Master\App\Menu::where('menu_type', 'admin')->where('level', 1)->lists('id');
     if ($node->folder) {
         if ($menu_parent = \Solunes\Master\App\MenuTranslation::whereIn('menu_id', $menu_array)->where('name', trans('admin.' . $node->folder))->first()) {
             $menu_parent = $menu_parent->menu;
         } else {
             $menu_parent = \Solunes\Master\App\Menu::create(['type' => 'blank', 'menu_type' => 'admin', 'permission' => $node->folder, 'icon' => 'th-list']);
             foreach ($languages as $language) {
                 \App::setLocale($language->code);
                 $menu_parent->translateOrNew($language->code)->name = trans('admin.' . $node->folder);
             }
             \App::setLocale('es');
             $menu_parent->save();
         }
         $menu = \Solunes\Master\App\Menu::create(['menu_type' => 'admin', 'permission' => $node->permission, 'parent_id' => $menu_parent->id, 'level' => 2, 'icon' => 'th-list']);
         foreach ($languages as $language) {
             \App::setLocale($language->code);
             $menu->translateOrNew($language->code)->name = $node->plural;
             $menu->translateOrNew($language->code)->link = 'admin/model-list/' . $node->name;
         }
         \App::setLocale('es');
         $menu->save();
     }
 }