Sindbad~EG File Manager

Current Path : /var/www/html/eva.sumar.com.py/vendor/jeroennoten/laravel-adminlte/src/Helpers/
Upload File :
Current File : /var/www/html/eva.sumar.com.py/vendor/jeroennoten/laravel-adminlte/src/Helpers/MenuItemHelper.php

<?php

namespace JeroenNoten\LaravelAdminLte\Helpers;

/**
 * TODO: On the future, all menu items should have a type property. We can use
 * the type property to easy distinguish the item type and avoid guessing it by
 * they properties.
 */
class MenuItemHelper
{
    /**
     * Check if a menu item is a header.
     *
     * @param mixed $item
     * @return bool
     */
    public static function isHeader($item)
    {
        return is_string($item) || isset($item['header']);
    }

    /**
     * Check if a menu item is a link.
     *
     * @param mixed $item
     * @return bool
     */
    public static function isLink($item)
    {
        return isset($item['text']) &&
               (isset($item['url']) || isset($item['route']));
    }

    /**
     * Check if a menu item is a submenu.
     *
     * @param mixed $item
     * @return bool
     */
    public static function isSubmenu($item)
    {
        return isset($item['text'], $item['submenu']) &&
               is_array($item['submenu']);
    }

    /**
     * Check if a menu item is a legacy search bar.
     *
     * @param mixed $item
     * @return bool
     */
    public static function isLegacySearch($item)
    {
        return isset($item['text'], $item['search']) &&
               $item['search'];
    }

    /**
     * Check if a menu item is allowed to be shown (not restricted).
     *
     * @param mixed $item
     * @return bool
     */
    public static function isAllowed($item)
    {
        return $item && empty($item['restricted']);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists