- if claims.none?
  %p No claims found
- else
  %table
    %thead
      %th
        CMS Number
      %th
        Advocate
      %th
        Submission date
      %th
        Paid date
      %th
        Balance
      %th
    %tbody
    - claims.each do |claim|
      %tr{id: dom_id(claim)}
        %td

        %td
          = claim.advocate.name
        %td
          = claim.submitted_at.strftime('%d/%m/%Y') unless claim.submitted_at.nil?
        %td

        %td
          = link_to 'Edit', edit_advocates_claim_path(claim)

- if claims.none?
  %p No claims found
- else
  %table
    %thead
      - if current_user.persona.admin?
        %th
          Advocate name
      %th
        CMS Number
      %th
        Submission date
      %th
        Paid date
      %th
        Total
      %th
    %tbody
    - claims.each do |claim|
      %tr{id: dom_id(claim)}
        - if current_user.persona.admin?
          %td
            = claim.advocate.name
        %td

        %td
          = claim.submitted_at.strftime('%d/%m/%Y') unless claim.submitted_at.nil?
        %td

        %td
          = link_to 'Edit', edit_advocates_claim_path(claim)

Hide advocate name for non-admin advocate users
Hide advocate name for non-admin advocate users