'a', 'director'=>'d', 'committee'=>'c', 'user'=>'u', ); public static function navbar() { $result = array(); foreach (array_reverse(self::$method_directory) as $k=>$v) switch ($k) { case 'admin': $result[$k] = array('name'=>'Administrator','icon'=>'fa-globe'); break; case 'director': $result[$k] = array('name'=>'Director','icon'=>'fa-th-list'); break; case 'committee': $result[$k] = array('name'=>'Committee','icon'=>'fa-th-list'); break; case 'user': $result[$k] = array('name'=>Auth::instance()->get_user()->name(),'icon'=>'fa-user'); break; default: $result[$k] = array('name'=>$k,'icon'=>'fa-question'); } return $result; } } ?>