@php $path = '/'.ltrim(request()->path(), '/'); if ($path === '') { $path = '/'; } @endphp