<commit_before>.form-section
  %h3.heading-medium
    = t('external_users.claims.interim_fee.summary.header')
    - if local_assigns[:editable]
      = link_to 'Change', edit_polymorphic_path(claim, step: :interim_fees), class: 'link-change'

  - if claim.interim_fee.nil? || claim.interim_fee.is_disbursement?
    %p
      There is no interim fee for this claim
  - else
    - fee = present(claim.interim_fee)
      - unless fee.is_disbursement?
      %table{class:'table-summary', summary: t('.summary')}
        %caption
          %span.table-caption.visuallyhidden
            = t('.caption')
        %colgroup
          %col.summary-headings
          %col.summary-desc
        %tbody
          %tr
            %th{scope: 'row'}
              = t('shared.summary.fee_type')
            %td
              = fee.fee_type.description

          - unless fee.is_interim_warrant?
            %tr
              %th{scope: 'row'}
                = t('shared.summary.ppe_total')
              %td
                = fee.quantity

          - if fee.is_interim_warrant?
            %tr
              %th{scope: 'row'}
                = t('shared.summary.warrant_fee.date_issued')
              %td
                = fee.warrant_issued_date

            - if fee.warrant_executed_date.present?
              %tr
                %th{scope: 'row'}
                  = t('shared.summary.warrant_fee.date_executed')
                %td
                  = fee.warrant_executed_date

          - if fee.is_effective_pcmh?
            %tr
              %th{scope: 'row'}
                = t('shared.summary.effective_pcmh_date')
              %td
                = fee.effective_pcmh_date

          - if fee.is_trial_start?
            %tr
              %th{scope: 'row'}
                = t('shared.summary.trial_start')
              %td
                = fee.first_day_of_trial
            %tr
              %th{scope: 'row'}
                = t('shared.summary.estimated_trial_length')
              %td
                = fee.estimated_trial_length

          - if fee.is_retrial_start?
            %tr
              %th{scope: 'row'}
                = t('shared.summary.retrial_start')
              %td
                = fee.retrial_started_at
            %tr
              %th{scope: 'row'}
                = t('shared.summary.estimated_retrial_length')
              %td
                = fee.retrial_estimated_length

          - if fee.is_retrial_new_solicitor?
            %tr
              %th{scope: 'row'}
                = t('shared.summary.legal_aid_transfer_date')
              %td
                = fee.legal_aid_transfer_date
            %tr
              %th{scope: 'row'}
                = t('shared.summary.trial_concluded_at')
              %td
                = fee.trial_concluded_at

        %tfoot
          %tr
            %th
              = t('shared.summary.total')
            %td
              = fee.amount
<commit_msg>Re-styling of interim fee section in 'Check your claim' page<commit_after>.form-section
  %h3.heading-medium
    = t('external_users.claims.interim_fee.summary.header')
    - if local_assigns[:editable]
      = link_to 'Change', edit_polymorphic_path(claim, step: :interim_fees), class: 'link-change'

  - if claim.interim_fee.nil? || claim.interim_fee.is_disbursement?
    %p
      There is no interim fee for this claim
  - else
    - fee = present(claim.interim_fee)
      - unless fee.is_disbursement?
      %table{ class: 'summary', summary: t('.summary') }
        %caption
          %span.table-caption.visuallyhidden
            = t('.caption')
        %colgroup
          %col.summary-headings
          %col.summary-desc
        %tbody
          %tr
            %th{ scope: 'row', class: 'bold' }
              = t('shared.summary.fee_type')
            %td
              = fee.fee_type.description

          - unless fee.is_interim_warrant?
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.ppe_total')
              %td
                = fee.quantity

          - if fee.is_interim_warrant?
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.warrant_fee.date_issued')
              %td
                = fee.warrant_issued_date

            - if fee.warrant_executed_date.present?
              %tr
                %th{ scope: 'row', class: 'bold' }
                  = t('shared.summary.warrant_fee.date_executed')
                %td
                  = fee.warrant_executed_date

          - if fee.is_effective_pcmh?
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.effective_pcmh_date')
              %td
                = fee.effective_pcmh_date

          - if fee.is_trial_start?
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.trial_start')
              %td
                = fee.first_day_of_trial
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.estimated_trial_length')
              %td
                = fee.estimated_trial_length

          - if fee.is_retrial_start?
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.retrial_start')
              %td
                = fee.retrial_started_at
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.estimated_retrial_length')
              %td
                = fee.retrial_estimated_length

          - if fee.is_retrial_new_solicitor?
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.legal_aid_transfer_date')
              %td
                = fee.legal_aid_transfer_date
            %tr
              %th{ scope: 'row', class: 'bold' }
                = t('shared.summary.trial_concluded_at')
              %td
                = fee.trial_concluded_at

{'fraction_non_alphanumeric': 0.1097927807486631, 'fraction_numerical': 0.00033422459893048126, 'mean_word_length': 1.3152804642166345, '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': '1563333', 'n_tokens_mistral': 1850, 'n_tokens_neox': 1748, 'n_words': 288}