<div class="modal-header">
  <button class="close" type="button" data-dismiss="modal" aria-hidden="true">
    &times;
  </button>
  <h3>
    Dettagli Sessione #
    <?php echo htmlspecialchars($workPeriodID,ENT_QUOTES,'UTF-8'); ?>
  </h3>
</div>
<div class="modal-body">
  <p>
    Eventi Totali:
    <?php echo htmlspecialchars($repository->count,ENT_QUOTES,'UTF-8'); ?>
  </p>
  <?php if ($repository->count > 0) { ?>
    <?php $firstEvent = $repository->first; ?>
    <?php $lastEvent = $repository->last; ?>
    <p>
      Primo evento:
      <?php echo htmlspecialchars($firstEvent->StartTime->format(DateHelper::ISO9075_DATETIME),ENT_QUOTES,'UTF-8'); ?>
      <?php echo htmlspecialchars($firstEvent->id_run,ENT_QUOTES,'UTF-8'); ?>
    </p>
    <p>
      Ultimo evento:
      <?php echo htmlspecialchars($lastEvent->StartTime->format(DateHelper::ISO9075_DATETIME),ENT_QUOTES,'UTF-8'); ?>
    </p>
  <?php } ?>
</div>
