<% if action_name == "show" %>

Current Price & Key Metrics

Current Price
<%= number_to_currency(stock.current_price) %>
Stock Exchange
<%= stock.stock_exchange %>
Industry
<%= stock.industry %>
Employees
<%= number_with_delimiter(stock.employees) if stock.employees.present? %>

Company Information

<% if stock.company_website.present? %>

<%= link_to( stock.company_website, safe_url(stock.company_website), target: "_blank", class: "text-black underline hover:text-[var(--sitf-secondary-chart2)]", rel: "noopener" ) %>

<% end %> <% if stock.description.present? %>

<%= stock.description %>

<% end %> <% if stock.management.present? %>

<%= stock.management %>

<% end %> <% if stock.competitor_names.present? %>

<%= stock.competitor_names %>

<% end %>

Financial Metrics

Company Performance

<% if stock.sales_growth.present? %>
Sales Growth <%= stock.sales_growth %>%
<% end %> <% if stock.profit_margin.present? %>
Profit Margin <%= stock.profit_margin %>%
<% end %> <% if stock.debt_to_equity.present? %>
Debt to Equity <%= stock.debt_to_equity %>
<% end %> <% if stock.cash_flow.present? %>
Cash Flow <%= number_to_currency(stock.cash_flow) %>
<% end %> <% if stock.debt.present? %>
Total Debt <%= number_to_currency(stock.debt) %>
<% end %>

Industry Averages

<% if stock.industry_avg_sales_growth.present? %>
Avg Sales Growth <%= stock.industry_avg_sales_growth %>%
<% end %> <% if stock.industry_avg_profit_margin.present? %>
Avg Profit Margin <%= stock.industry_avg_profit_margin %>%
<% end %> <% if stock.industry_avg_debt_to_equity.present? %>
Avg Debt to Equity <%= stock.industry_avg_debt_to_equity %>
<% end %>
<% else %>

<%= stock.ticker %> <% if stock.archived? %> ARCHIVED <% end %>

<%= stock.company_name %>

<%= stock.stock_exchange %> • <%= stock.industry %>

<%= number_to_currency(stock.current_price) %>
<%= link_to "View Details", stock, class: "tw-btn-secondary mt-2" %>
<% end %>