mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-12 15:55:24 +00:00
17 lines
591 B
Ruby
17 lines
591 B
Ruby
module SuperAdmin::FeaturesHelper
|
|
def self.available_features
|
|
YAML.load(ERB.new(Rails.root.join('enterprise/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
|