<%= t("dashboard.recommended_actions.#{status}_title") %>

<% if actions.any? %>
<% actions.first(4).each do |proposed_action| %> <%= render "proposed_action", proposed_action: proposed_action %> <% end %> <% if actions.count > 4 %> <% end %>
<% if toggle == true %> <% if actions.count > 4 %>
<%= render partial: "proposed_action", collection: actions - actions.first(4) %>
<%= t("dashboard.recommended_actions.hide_proposed_actions") %>
<% end %> <% end %> <% else %> <%= t("dashboard.recommended_actions.without_#{status}_actions") %> <% end %>