Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
442 B
Ruby
15 lines
442 B
Ruby
class ReportsController < ApplicationController
|
|
before_action :require_current_project!
|
|
|
|
def index
|
|
@page_title = "Report"
|
|
@reports = Reports::Builder.new(project: current_project)
|
|
@funnel = @reports.funnel
|
|
@lead_sources = @reports.lead_sources
|
|
@won_lost = @reports.won_lost_by_month
|
|
@lost_reasons = @reports.lost_reasons
|
|
@sales_owners = @reports.sales_owners
|
|
@revenue = @reports.revenue_by_month
|
|
end
|
|
end
|