<?php $encodedViolationsCountByTimespanStatsGraphData = CJSON::encode($violationsCountByTimespanStatsGraphData);; ?>
<?php $encodedApprovedViolationsCountByTimespanStatsGraphData = CJSON::encode($approvedViolationsCountByTimespanStatsGraphData);; ?>
<?php $encodedInvalidViolationsCountByTimespanStatsGraphData = CJSON::encode($invalidViolationsCountByTimespanStatsGraphData);; ?>
<?php $encodedPendingViolationsCountByTimespanStatsGraphData = CJSON::encode($pendingViolationsCountByTimespanStatsGraphData);; ?>
<div id="stats-events-management-page">
  <div class="page-header">
    <h2>
      <i class="icon-bar-chart"></i>
      <?php echo htmlspecialchars(Yii::t("app", "Stats"),ENT_QUOTES,'UTF-8'); ?>
    </h2>
  </div>
  <div class="row stats-violations-management-overview">
    <div class="span12">
      <div id="violations-management-graph-container">
        <canvas id="violations-management-graph"></canvas>
      </div>
    </div>
  </div>
  <input <?php echo MtHaml\Runtime::renderAttributes(array(array('id', 'violations-count-by-timespan-graph-data'), array('type', ('hidden')), array('value', $encodedViolationsCountByTimespanStatsGraphData)), 'html5', 'UTF-8'); ?> />
  <input <?php echo MtHaml\Runtime::renderAttributes(array(array('id', 'approved-violations-count-by-timespan-graph-data'), array('type', ('hidden')), array('value', $encodedApprovedViolationsCountByTimespanStatsGraphData)), 'html5', 'UTF-8'); ?> />
  <input <?php echo MtHaml\Runtime::renderAttributes(array(array('id', 'invalid-violations-count-by-timespan-graph-data'), array('type', ('hidden')), array('value', $encodedInvalidViolationsCountByTimespanStatsGraphData)), 'html5', 'UTF-8'); ?> />
  <input <?php echo MtHaml\Runtime::renderAttributes(array(array('id', 'pending-violations-count-by-timespan-graph-data'), array('type', ('hidden')), array('value', $encodedPendingViolationsCountByTimespanStatsGraphData)), 'html5', 'UTF-8'); ?> />
</div>
