@php $user = $user ?? null; $user?->loadMissing('role'); $nav = $controlStationSection ?? 'overview'; $cpNavActive = 'bg-cyan-500/15 text-white border-l-2 border-cyan-400 pl-[10px]'; $cpNavIdle = 'text-slate-300 hover:bg-white/5 hover:text-white border-l-2 border-transparent pl-[10px]'; $__nc = static function (string $key) use ($nav, $cpNavActive, $cpNavIdle): string { return $nav === $key ? $cpNavActive : $cpNavIdle; }; @endphp