src/Utilities/Helper.php
public static function compileContent($content, array $data, $param)
    {
        if (is_string($content)) {
            return static::compileBlade($content, static::getMixedValue($data, $param));
        } elseif (is_callable($content)) {
            return $content($param);
        }

        return $content;
    }
public static function compileContent($content, array $data, $param)
    {
        if (is_string($content)) {
            return static::compileBlade($content, static::getMixedValue($data, $param));
        } elseif (is_callable($content)) {
            return $content($param);
        }

        return $content;
    }
public static function compileContent ( $ content , array $ data , $ param ) { if ( is_string ( $ content ) ) { return static :: compileBlade ( $ content , static :: getMixedValue ( $ data , $ param ) ) ; } elseif ( is_callable ( $ content ) ) { return $ content ( $ param ) ; } return $ content ; }
Determines if content is callable or blade string, processes and returns.

@param mixed $content Pre-processed content
@param array $data    data to use with blade template
@param mixed $param   parameter to call with callable
@return mixed
Determines if content is callable or blade string processes and returns .