File: /home/royaltuning/www/public/backoffice.royaltuning.hu/app/Helpers/Global/HtmlHelper.php
<?php
if (! function_exists('activeClass')) {
/**
* Get the active class if the condition is not falsy.
*
* @param $condition
* @param string $activeClass
* @param string $inactiveClass
* @return string
*/
function activeClass($condition, $activeClass = 'active', $inactiveClass = '')
{
return $condition ? $activeClass : $inactiveClass;
}
}
if (! function_exists('htmlLang')) {
/**
* Access the htmlLang helper.
*/
function htmlLang()
{
return str_replace('_', '-', app()->getLocale());
}
}