- 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)
    - $validatingUser = User::model()->findByPk($event->id_validate_user)
    %table.report-event{:cellpadding => "4"}(nobr="true")
      %tbody
        %tr
          %td{:colspan => "2"}
            Il giorno
            %b = DateHelper::formatISO9075Date($event->StartTime)
            alle ore
            %b = DateHelper::formatISO9075Time($event->StartTime)
            nella località
            %b = $event->GateDescription
            %span> ,
        %tr
          %td{:colspan => "2"}
            matricola impianto
            = $event->Gate
            %span> , 
            il conducente del veicolo targato
            = $event->Plate
            ha violato:
        - foreach ($event->violationCodes as $code)
          - $violationCode = ViolationCode::model()->byName($code)->find()
          %tr
            %td{:colspan => "2"}
              \-
              = $violationCode->description
          %tr
            %td{:colspan => "2"}
              Velocità consentita
              %b = $event->speed_limit
              %span> , 
              effettiva
              %b = $challengedSpeed
              già decurtata del 5% minimo di 5 Km/h come da disposizione di legge.
        %tr
          %td
            %b Accertamento d'Infrazione N°:
            %b = $event->ext_code
          %td
            Matricola:
            = $validatingUser->matriculation_number
        %tr
          %td
            Data e Ora controllo:
            %b = DateHelper::formatISO9075DateTime($event->ValidationTime)
          %td
            Verbalizzante:
            = $user->fullName
  
    %table.blank-space{:cellpadding => "3"}
      %tbody
        %tr
          %td{:colspan => "2"}