@php $currentPath = '/'.ltrim(request()->path(), '/'); $isWorkerProfilePath = preg_match("#^/(?:staff/|files/|history/|log/|new_comment/|deduction/)#", $currentPath) === 1; @endphp