- $totalEventsPerUser    = 0;
- $totalNewPerUser       = 0;
- $totalExaminedPerUser  = 0;
- $totalValidatedPerUser = 0;
- $totalQueuedPerUser    = 0;
- $totalExportedPerUser  = 0;

- foreach($user->services as $service) 
  - $totalEventsPerUser    += $service->eventsCount
  - $totalNewPerUser       += $service->eventsNewCount
  - $totalExaminedPerUser  += $service->eventsExaminedCount
  - $totalValidatedPerUser += $service->eventsValidatedCount
  - $totalQueuedPerUser    += $service->eventsQueuedForExportCount
  - $totalExportedPerUser  += $service->eventsExportedCount

.row
  .span8
    %h3= Yii::t("app", "Current Status")
    .row
      .span4
        %table.table.widget
          %tr
            %td= Yii::t("app", "In charge")
            %td(colspan="2")
              %span.badge.badge-info
                = $user->servicesCount
          %tr
            %td= Yii::t("app", "Examined")
            %td
              .progress(data-dividend=$totalExaminedPerUser data-divisor=$totalNewPerUser)
                .bar
            %td
              = $totalExaminedPerUser
              \/
              = $totalNewPerUser
                    
            %tr
              %td= Yii::t("app", "Validated")
              %td
                .progress(data-dividend=$totalValidatedPerUser data-divisor=$totalExaminedPerUser)
                  .bar
              %td
                = $totalValidatedPerUser
                \/
                = $totalExaminedPerUser


      .span4
        %table.table.widget
          %tr
            %td= Yii::t("app", "Suspended (globally)")
            %td(colspan="2")
              %span.badge.badge-important
                = Event::model()->pending()->count()
          %tr
            %td= Yii::t("app", "Queue to CSI")
            %td
              .progress(data-dividend=$totalQueuedPerUser data-divisor=$totalValidatedPerUser)
                .bar
            %td
              = $totalQueuedPerUser
              \/
              = $totalValidatedPerUser
          %tr
            %td= Yii::t("app", "Sent to CSI")
            %td
              .progress(data-divident=$totalExportedPerUser data-divisor=$totalQueuedPerUser)
                .bar
            %td
              = $totalExportedPerUser
              \/
              = $totalQueuedPerUser
