I already tried this 2 types of code which is {{Request::is(\'residential\') ? \'active\' : \'\'}} and {{ \'contractor\' == request()->path() ? \'active\'
{{Request::is(\'residential\') ? \'active\' : \'\'}}
{{ \'contractor\' == request()->path() ? \'active\'