<% content_for :title, t(".title") %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".title")) do %>
<%= icon "wallet", class: "text-primary" %> <%= t(".subtitle") %>
<% end %> <% dialog.with_body do %>
<% if @wise_accounts.empty? %>
<%= icon "check-circle", size: "lg", class: "text-success" %>

<%= t(".no_accounts_to_setup") %>

<%= t(".all_accounts_linked") %>

<%= render DS::Link.new(text: t(".done"), variant: "primary", href: accounts_path) %> <% else %>

<%= t(".description") %>

<% @wise_accounts.each do |wise_account| %>

<%= wise_account.name %>

<%= format_money(Money.new(wise_account.current_balance || 0, wise_account.currency)) %>  ยท  <%= wise_account.currency %>

<%= render DS::Button.new( text: t(".create_account"), icon: "plus", variant: :outline, size: :sm, href: complete_account_setup_wise_item_path(@wise_item), method: :post, params: { wise_account_id: wise_account.id }, frame: "_top" ) %>
<% end %>
<%= render DS::Link.new(text: t(".done"), variant: "secondary", href: accounts_path) %> <% end %>
<% end %> <% end %>