<% if notice.present? %>

<%= notice %>

<% end %>

Credit Card Bills

Track and manage your credit card expenses and member burdens

<%= link_to new_credit_card_bill_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 inline-flex items-center justify-center sm:justify-start" do %> New credit card bill <% end %>
<% if @credit_card_bills.any? %>

Total Bills

<%= @credit_card_bills.count %>

Total Amount

<%= number_to_currency(@credit_card_bills.sum(:amount)) %>

Unbudgeted

<%= number_to_currency(@credit_card_bills.sum(&:unpaid)) %>

<% @credit_card_bills.each do |bill| %>

<%= bill.description %>

<%= link_to bill, class: "text-blue-600 hover:text-blue-800" do %> <% end %> <%= link_to edit_credit_card_bill_path(bill), class: "text-indigo-600 hover:text-indigo-800" do %> <% end %>
Total Amount <%= number_to_currency(bill.amount) %>
Unbudgeted <%= number_to_currency(bill.unpaid) %>
<% end %>
<% else %>

No credit card bills

Get started by creating a new credit card bill.

<%= link_to new_credit_card_bill_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 credit card bill <% end %>
<% end %>