<?php

if(! function_exists('prefixActive')){
	function prefixActive($prefixName)
	{
		return	request()->route()->getPrefix() == $prefixName ? 'active' : '';
	}
}

if(! function_exists('prefixBlock')){
	function prefixBlock($prefixName)
	{
		return	request()->route()->getPrefix() == $prefixName ? 'block' : 'none';
	}
}

if(! function_exists('routeActive')){
	function routeActive($routeName)
	{
        /*
        if (strpos($routeName, ".") > 0){
            $routeName = substr($routeName, 0, strpos($routeName, "."));
        }
        debug("routename: ",$routeName);
        */
		return	request()->routeIs($routeName) ? 'active' : '';
	}
}
