Class: Crm::Reports::LeadReportController

Inherits:
CrmController
  • Object
show all
Includes:
Controllers::ReportCommandFlashable
Defined in:
app/controllers/crm/reports/lead_report_controller.rb

Overview

Controller: lead report.

Instance Method Summary collapse

Instance Method Details

#showObject



8
9
10
11
12
13
14
15
16
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 8

def show
  authorize! :read, LedgerCompanyAccount
  @report_command = ::Report::LeadReport::LeadReportCommand.new(lead_report_command_params)
  flash_report_command_errors
  respond_to do |format|
    format.html
    format.turbo_stream
  end
end

#tab_calls_in_outObject



58
59
60
61
62
63
64
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 58

def tab_calls_in_out
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_calls_in_out", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_communicationsObject



66
67
68
69
70
71
72
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 66

def tab_communications
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_communications", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_customers_createdObject



18
19
20
21
22
23
24
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 18

def tab_customers_created
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_customers_created", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_opportunitiesObject



26
27
28
29
30
31
32
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 26

def tab_opportunities
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_opportunities", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_ordersObject



34
35
36
37
38
39
40
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 34

def tab_orders
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_orders", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_rooms_createdObject



50
51
52
53
54
55
56
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 50

def tab_rooms_created
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_rooms_created", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_servicesObject



42
43
44
45
46
47
48
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 42

def tab_services
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_services", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_smsObject



74
75
76
77
78
79
80
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 74

def tab_sms
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_sms", layout: should_render_layout? }
    format.turbo_stream
  end
end

#tab_website_visitsObject



82
83
84
85
86
87
88
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 82

def tab_website_visits
  initialize_command_params
  respond_to do |format|
    format.html { render "tab_website_visits", layout: should_render_layout? }
    format.turbo_stream
  end
end