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