%= content_for :page_title, @statement.filename %> <%= settings_section title: t(".title") do %>
<%= t(".linked_to", account: @statement.account.name) %>
<% if @can_manage_statement %> <%= button_to unlink_account_statement_path(@statement), method: :patch, class: "inline-flex items-center gap-2 text-sm font-medium text-primary" do %> <%= icon("unlink", size: "sm") %> <%= t(".unlink") %> <% end %> <% end %> <% elsif @statement.suggested_account.present? %><%= t(".suggested_account", account: @statement.suggested_account.name, confidence: number_to_percentage(@statement.match_confidence.to_d * 100, precision: 0)) %>
<% if @can_manage_statement %><%= t(".no_suggestion") %>
<% end %><%= account_statement_reconciliation_label(check) %>
<% if check[:status] == "matched" %> <%= render "shared/badge", color: "success" do %><%= t("account_statements.reconciliation.matched") %><% end %> <% else %> <%= render "shared/badge", color: "error" do %><%= t("account_statements.reconciliation.mismatched") %><% end %> <% end %><%= t(".reconciliation_unavailable") %>
<% end %>