<%= back_link_to budgets_path %>

<%= @budget.name %>

<%= @budget.description %>

<%= t('budgets.show.phase') %>

<%= t("budgets.phase.#{@budget.phase}") %>

<% if @budget.accepting? %> <% if current_user %> <% if current_user.level_two_or_three_verified? %> <%= link_to t("budgets.investments.index.sidebar.create"), new_budget_investment_path(@budget), class: "button margin-top expanded" %> <% else %>
<%= t("budgets.investments.index.sidebar.verified_only", verify: link_to(t("budgets.investments.index.sidebar.verify_account"), verification_path)).html_safe %>
<% end %> <% else %>
<%= t("budgets.investments.index.sidebar.not_logged_in", sign_in: link_to(t("budgets.investments.index.sidebar.sign_in"), new_user_session_path), sign_up: link_to(t("budgets.investments.index.sidebar.sign_up"), new_user_registration_path)).html_safe %>
<% end %> <% end %>
<% if params[:unfeasible] %>

<%= t("budgets.show.unfeasible_title") %>

<% end %> <% @budget.groups.each do |group| %> <% end %>
<%= t('budgets.show.group') %>
<% if group.headings.count == 1 %> <%= link_to group.name, budget_investments_path(@budget, heading_id: group.headings.first.id, unfeasible: params[:unfeasible]), data: { no_turbolink: true } %> <% else %> <%= link_to group.name, budget_group_path(@budget, group, unfeasible: params[:unfeasible]) %> <% end %>
<% unless params[:unfeasible] %>
<%= link_to t("budgets.show.unfeasible"), budget_path(@budget, unfeasible: 1) %>
<% end %>