mirror of
https://github.com/we-promise/sure.git
synced 2026-04-09 15:24:48 +00:00
* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT * [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT * Update stimulus controller references to use namespace * Fix remaining tests
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
<%# locals: (account:) %>
|
|
|
|
<div class="grid grid-cols-3 gap-2">
|
|
<%= summary_card title: t(".amount_owed") do %>
|
|
<%= format_money(account.balance_money) %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".available_credit") do %>
|
|
<%= format_money(account.credit_card.available_credit_money) || t(".unknown") %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".minimum_payment") do %>
|
|
<%= format_money(account.credit_card.minimum_payment_money || Money.new(0, account.currency)) %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".apr") do %>
|
|
<%= account.credit_card.apr ? number_to_percentage(account.credit_card.apr, precision: 2) : t(".unknown") %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".expiration_date") do %>
|
|
<%= account.credit_card.expiration_date ? l(account.credit_card.expiration_date, format: :long) : t(".unknown") %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".annual_fee") do %>
|
|
<%= format_money(account.credit_card.annual_fee_money || Money.new(0, account.currency)) %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="flex justify-center py-8">
|
|
<%= render DS::Link.new(
|
|
text: "Edit account details",
|
|
variant: "ghost",
|
|
href: edit_credit_card_path(account),
|
|
frame: :modal
|
|
) %>
|
|
</div>
|