search)); $lc = Hints::locale(); $grouped = Hints::byArea(); if ($q === '') return $grouped; $out = []; foreach ($grouped as $area => $hints) { $matched = array_filter($hints, function ($h) use ($q, $lc) { $t = mb_strtolower(($h['title'][$lc] ?? '') . ' ' . ($h['body'][$lc] ?? '')); return str_contains($t, $q); }); if (! empty($matched)) $out[$area] = $matched; } return $out; } }