<div class="x-govuk-summary-card govuk-!-margin-bottom-6">
  <div class="x-govuk-summary-card__body">
    <%= govuk_summary_list do |summary_list| %>
      <% @duplicate_check_questions.each do |question| %>
        <% summary_list.row do |row| %>
          <% row.key { get_question_label(question) } %>

          <% row.value do %>
            <%= simple_format(
              get_answer_label(question, log),
              wrapper_tag: "span",
              class: "govuk-!-margin-right-4",
            ) %>

            <% extra_value = question.get_extra_check_answer_value(log) %>

            <% if extra_value && question.answer_label(log, current_user).present? %>
              <%= simple_format(
                extra_value,
                wrapper_tag: "span",
                class: "govuk-!-font-weight-regular app-!-colour-muted",
              ) %>
            <% end %>

            <% question.get_inferred_answers(log).each do |inferred_answer| %>
              <span class="govuk-!-font-weight-regular app-!-colour-muted"><%= inferred_answer %></span>
            <% end %>
          <% end %>
          <% if @all_duplicates.many? %>
            <% row.action(
                text: question.action_text(log),
                href: change_duplicate_logs_action_href(log, question.page.id, @all_duplicates, @original_log.id),
                visually_hidden_text: question.check_answer_label.to_s.downcase,
              ) %>
          <% else %>
            <% row.action(
              text: question.action_text(log),
              href: duplicate_logs_action_href(log, question.page.id, @original_log.id),
              visually_hidden_text: question.check_answer_label.to_s.downcase,
            ) %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  </div>
</div>