<% if notice.present? %>

<%= notice %>

<% end %>

Expenses

<%= link_to new_expense_path, class: "rounded-lg py-2.5 px-4 sm:py-3 sm:px-5 bg-blue-600 hover:bg-blue-700 text-white font-medium transition-colors flex items-center" do %> New expense <% end %>
<% if @expenses.any? %>
<% @expenses.each do |expense| %>

<%= expense.description %>

<%= link_to expense, class: "text-blue-600 hover:text-blue-800" do %> <% end %> <%= link_to edit_expense_path(expense), class: "text-indigo-600 hover:text-indigo-800" do %> <% end %>

Payment

<%= number_to_currency(expense.payment) %>

Monthly

<%= number_to_currency(expense.monthly) %>

<%= expense.period.downcase %> <% if expense.credit_card %> credit card <% end %> <% if expense.estimated %> estimated <% end %>
<% end %>
<% else %>

No expenses

Get started by creating a new expense.

<%= link_to new_expense_path, class: "inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700" do %> New expense <% end %>
<% end %>