-#------BUG Event -> Report -> CITTA DI TORINO Task Id #12757013 06-02-2019. Ng
%h2
    POLIZIA LOCALE
%h2=paramdeep('event','report','text')
%h2=t('Validated Events - Report')
%p
    =t('This report compiled on')
    = DateHelper::formatDateTime($period->report_generation_date)
    =t('by')
    =$user->fullName
    =t('is composed of n°')
    = $pageCount
    =t('pages and lists')
    = $totalEvents
    =t('Violations Events')
    - if(count($validEvents)>0)
        =t('from code n°')
        = $firstEvent->ext_code
        =t('and code n°')
        = $lastEvent->ext_code
    - if(count($validEvents)>0)
        =t('from Day')
        = DateHelper::formatDate($firstEvent->StartTime) 
        =t('Hours')
        = DateHelper::formatTime($firstEvent->StartTime, 'medium') 
        =t('To Day')
        = DateHelper::formatDate($lastEvent->StartTime) 
        =t('Hours')
        = DateHelper::formatTime($lastEvent->StartTime,  'medium') 
    =t('detected in')
    =$gateGroup->name
    =t('composed of')
    = count($gates)
    =t('gates:')
    - $gggc = 0
    - foreach($gates as $g)
        - if($gggc>0)
            =','
        ="{$g->Gate} ({$g->Descrizione})"
        - $gggc++