<%= turbo_frame_tag dom_id(account) do %>
"> <%= account.name[0].upcase %>
<%= link_to account.name, account, class: [(account.is_active ? "text-gray-900" : "text-gray-400"), "text-sm font-medium hover:underline"], data: { turbo_frame: "_top" } %> <%= link_to edit_account_path(account), data: { turbo_frame: :modal }, class: "group-hover/account:flex hidden hover:opacity-80 items-center justify-center" do %> <%= lucide_icon "pencil-line", class: "w-4 h-4 text-gray-500" %> <% end %>

"> <%= format_money account.balance_money %>

<%= form_with model: account, namespace: account.id, data: { controller: "auto-submit-form", turbo_frame: "_top" } do |form| %>
<%= form.check_box :is_active, { class: "sr-only peer", data: { "auto-submit-form-target": "auto" } } %> <%= form.label :is_active, " ".html_safe, class: "maybe-switch" %>
<% end %>
<% end %>