['chip' => 'bg-gray-100 text-gray-700 border-gray-200', 'bar' => 'bg-gray-300', 'icon' => 'bg-gray-100 text-gray-600 border-gray-200'], LicensePlanResolver::PLAN_PERSONAL => ['chip' => 'bg-teal-50 text-teal-700 border-teal-200', 'bar' => 'bg-teal-500', 'icon' => 'bg-teal-50 text-teal-700 border-teal-200'], LicensePlanResolver::PLAN_PROFESSIONAL => ['chip' => 'bg-blue-50 text-blue-700 border-blue-200', 'bar' => 'bg-blue-500', 'icon' => 'bg-blue-50 text-blue-700 border-blue-200'], LicensePlanResolver::PLAN_AGENCY => ['chip' => 'bg-purple-50 text-purple-700 border-purple-200', 'bar' => 'bg-purple-600', 'icon' => 'bg-purple-50 text-purple-700 border-purple-200'], ]; $hero_plan_class = $plan_classes[$current_plan] ?? $plan_classes[LicensePlanResolver::PLAN_NONE]; // Distinct categories present for the filter chips. $categories = []; foreach ($addons as $a) { $categories[$a['category']] = true; } $categories = array_keys($categories); ?>