<commit_before>= render partial: 'layouts/header', locals: { page_heading: t('.heading') }

%p
  Check all the information below is correct before submitting your claim at the bottom of the page.

%h2
  Claim and case type

%h2
  Defendants

%h2
  Fees

%h2
  Supporting evidence checklist

%h2
  Additional information

%p
  = link_to 'Continue', new_external_users_claim_certification_path(@claim), class: 'button left'
  = link_to 'Save a draft', external_users_claims_path, class: 'button button-secondary left'
<commit_msg>WIP - claim summary view markup<commit_after>= render partial: 'layouts/header', locals: { page_heading: t('.heading') }

- present(@claim) do |claim|

  .claim-summary-content

    %p.form-hint
      Check all the information below is correct before submitting your claim at the bottom of the page.

    %h2.visuallyhidden
      Claim and case type
    = render partial: 'external_users/claims/case_details/summary', locals: { claim: claim }

    %h2.visuallyhidden
      Defendants
    = render partial: 'external_users/claims/defendants/summary', locals: { claim: claim }

    %h2
      Fees

    %h2
      Supporting evidence checklist

    = render partial: 'external_users/claims/supporting_evidence_checklist/summary', locals: { claim: claim }


    %h2
      = t('external_users.claims.additional_information.fields.additional_information')
    = render partial: 'external_users/claims/additional_information/summary', locals: { claim: claim}

  .claim-summary-sidebar
    .claim-summary-hgroup.js-stick-at-top-when-scrolling
      %h2
        Summary total
      %h3
        = 'Fees total '
        %span.numeric
          - if @claim.fees_total == 0
            = "No fees for this claim"
          - else
            = claim.fees_total
      %h3
        = 'Expenses total'
        %span.numeric
          - if @claim.expenses.empty?
            = "No expenses for this claim"
          - else
            = claim.expenses_total
      %h3
        VAT total
        %span.numeric
          = claim.vat_amount
      %h3.total
        = "Total "
        %span.numeric
          = claim.total_inc_vat

      = link_to 'Continue', new_external_users_claim_certification_path(@claim), class: 'button'
      = link_to 'Save a draft', external_users_claims_path, class: 'button button-secondary'

{'fraction_non_alphanumeric': 0.09587274290627687, 'fraction_numerical': 0.006878761822871883, 'mean_word_length': 2.7291666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6432804', 'n_tokens_mistral': 724, 'n_tokens_neox': 681, 'n_words': 183}