mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	- Improve how settings are rendered in Chatwoot Super admin panel - Add google settings support - show setting for community edition ## Settings page - community edition <img width="1702" alt="Screenshot 2025-07-08 at 9 08 03 PM" src="https://github.com/user-attachments/assets/0434f56f-ea74-44a8-a7b0-8e26fab88093" /> ## Expanded settings <img width="1675" alt="Screenshot 2025-07-03 at 2 17 16 AM" src="https://github.com/user-attachments/assets/3aa1f888-c54a-4b58-896a-0d3e828fa176" /> --------- Co-authored-by: Sojan Jose <sojan@Sojans-MacBook-Pro.local> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			580 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			580 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
module SuperAdmin::FeaturesHelper
 | 
						|
  def self.available_features
 | 
						|
    YAML.load(ERB.new(Rails.root.join('app/helpers/super_admin/features.yml').read).result).with_indifferent_access
 | 
						|
  end
 | 
						|
 | 
						|
  def self.plan_details
 | 
						|
    plan = ChatwootHub.pricing_plan
 | 
						|
    quantity = ChatwootHub.pricing_plan_quantity
 | 
						|
 | 
						|
    if plan == 'premium'
 | 
						|
      "You are currently on the <span class='font-semibold'>#{plan}</span> plan with <span class='font-semibold'>#{quantity} agents</span>."
 | 
						|
    else
 | 
						|
      "You are currently on the <span class='font-semibold'>#{plan}</span> edition plan."
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |