.row
  .small-12.medium-6.columns
    .row
      .small-12.columns.statistics-title
        - if session[:archived_mode]
            = link_to t('dunlop.statistics.archived_title', model: workflow_instance_class.model_name.human, count:  workflow_instance_class.scope_for(current_user, archived: true).size), workflow_instance_class
        - else
            = link_to t('dunlop.statistics.title', model: workflow_instance_class.model_name.human, count: workflow_instance_class.scope_for(current_user).size), workflow_instance_class
    .row
      .small-12.columns.state= workflow_instance_state_badges_for(workflow_instance_class)
  .small-12.medium-6.columns
    - workflow_instance_class.workflow_step_classes.each do |workflow_step_class|
      - if can? :read, workflow_step_class
        .row
          .small-12.columns.statistics-title= t 'dunlop.statistics.workflow_step_title', model: workflow_step_class.model_name.human
        .row
          .small-12.columns.state= workflow_step_state_badges_for(workflow_step_class)
br
