<?php
    $object = null;

    if (isset($this->service)) {
        $object = $this->service;
    } elseif (isset($this->host)) {
        $object = $this->host;
    }

    $flags = $this->monitoringFlags($object);
?>
<table class="table table-condensed">
<?php foreach ($flags as $name => $value): ?>
  <tr>
    <th><?= $name; ?></th>
    <td>
      <?php if ($value === true): ?>
          <span>{{ENABLED_ICON}} ENABLED</span>
      <?php else: ?>
          <span>{{DISABLED_ICON}} DISABLED</span>
      <?php endif; ?>
  </td>
  </tr>
<?php endforeach; ?>
</table>