<%= expense.description %>

Payment Amount

<%= number_to_currency(expense.payment) %>

Monthly Amount

<%= number_to_currency(expense.monthly) %>

Details

<%= expense.period.downcase %> <% if expense.credit_card %> credit card <% else %> bank account <% end %> <% if expense.estimated %> estimated <% else %> actual <% end %>
<% if action_name != "show" %>
<%= link_to expense, class: "inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" do %> View details <% end %> <%= link_to edit_expense_path(expense), class: "inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" do %> Edit expense <% end %>
<% end %>