@php // Helper: mark a nav item active when the current route matches a pattern. $is = fn (string $pattern) => request()->routeIs($pattern) ? 'active' : ''; @endphp