<%= notice %>

<% content_for :title, "Incomes" %>

Incomes

<%= link_to "📊 Income Report", income_report_path, class: "btn btn-outline-primary" %>
<% if ["Admin"].include?current_user.type %> <%= link_to "New income", new_income_path, class:"btn-income" %> <% end %>
<% @incomes.each do |income| %>
<%= number_to_currency(income.amount) %>
<%= income.created_at.strftime("%d %b %Y") %>
<%= link_to "Show this income", income, class: "show-link" %>
<% end %>