- $nowISO = DateHelper::formatISO9075DateTime()
- $eventDate = $event->StartTime->format(DateHelper::ISO9075_DATE)
- $eventTime = $event->StartTime->format(DateHelper::ISO9075_TIME)
- $veichleClasses = VehicleTypes::localized()
- $nations = CountryList::localized();
- $challengedSpeed = number_format(CalculateChallengedSpeed::run($event->Speed, Yii::app()->params['spotSpeedViolation']['percentageTolerance'], Yii::app()->params['spotSpeedViolation']['fixedTolerance'], Yii::app()->params['spotSpeedViolation']['toleranceTable']), 2)

- $this->setPageTitle("Dettagli Evento #{$event->ID} del giorno {$eventDate} alle ore {$eventTime}")


%header.report
  -#------BUG Event -> Report -> CITTA DI TORINO Task Id #12757013 06-02-2019. Ng
  %img.torino(src="#{Yii::app()->baseUrl}/images/#{paramdeep('event','report','logo')}")
  %h2=paramdeep('event','report','text') 
  %h5
    STAMPA INFRAZIONE IN ACCERTAMENTO (velocità istantanea)
%section.reportcontent
  .vehicle-data
    %table.table.event-info
      %tbody
        %tr
          %td= Yii::t('app', 'Allowed Speed')
          %td= $event->speed_limit
        %tr
          %td= Yii::t('app', 'Contested Speed')
          %td= $challengedSpeed
        %tr
          %td= Yii::t('app', 'External Code')
          %td= $event->ext_code
        %tr
          %td= Yii::t('app', 'Event ID')
          %td= $event->ID
        %tr
          %td= Yii::t('app', 'Date')
          %td= $event->StartTime->format(DateHelper::ISO9075_DATE)
        %tr
          %td= Yii::t('app', 'Time')
          %td= $event->StartTime->format(DateHelper::ISO9075_TIME)
          
    %table.table.vehicle-info
      %tbody
        %tr        
          %td= Yii::t('app', 'License plate')
          %td= $event->Plate
        %tr
          %td= Yii::t('app', 'Vehicle type')
          %td= $veichleClasses[$event->custom_vehicle_type]
        %tr
          %td= Yii::t('app', 'Nationality')
          %td= $nations[$event->custom_nationality]
        %tr
          %td= Yii::t('app', 'License Plate Type')
          %td= $event->custom_plate_type
        %tr
          %td= Yii::t('app', 'Type')
          %td= $event->custom_property_type
        %tr
          %td= Yii::t('app', 'Kemler')
          %td= $event->Kemler
         
  .vehicle-image        
    %center
      .locality
        = $event->GateDescription
      %img(src="#{$photoReportUrl}")                   
 
  %p Sistema di misura della velocità T-EXSPEED v.2.0, omologa del Ministero delle Infrastrutture e dei Trasporti con D.M. n° 5298 del 27/10/2011
  
