%h2=t('Violation Document List Details')
%table.report-table
  %thead 
    %tr.report-table-header
      %td=t('Verbale')
      %td=t('Violation Date')
      %td=t('Violation Time')
      %td=t('License Plate N.')
      %td=t('Gate')
      %td=t('Violation Code') 
  %tbody
    - foreach($events as $event)
      - if ($event->ext_code != ExtCode::NULL_EXT_CODE)    
        
        - $challengedSpeed = CalculateChallengedSpeed::run($event->Speed, Yii::app()->params['spotSpeedViolation']['percentageTolerance'], Yii::app()->params['spotSpeedViolation']['fixedTolerance'], Yii::app()->params['spotSpeedViolation']['toleranceTable']);
        - $challengedSpeed = number_format($challengedSpeed,2)

        %tr
          %td= $event->ext_code
          %td= DateHelper::formatISO9075Date($event->StartTime)
          %td= DateHelper::formatISO9075Time($event->StartTime)
          %td= $event->Plate
          %td= $event->Gate
          %td= implode(';', $event->violationCodes)
