    <div class="l-center">
      <div class="l-sort clearfix noselect">
            <div class="l-unit-toolbar__buttonstrip">
                <a class="ui-button cancel" id="btn-back" href="/list/server/"><i class="fas fa-arrow-left status-icon blue"></i> <?=__('Back')?></a>
                <? if($autoupdate == 'Enabled') {
                  echo '<a class="ui-button cancel" href="/delete/cron/autoupdate/?token='.$_SESSION['token'].'"><i class="fas fa-toggle-on status-icon green"></i>'.__('disable autoupdate').'</a>';
                } else {
                  echo '<a class="ui-button cancel" href="/add/cron/autoupdate/?token='.$_SESSION['token'].'"><i class="fas fa-toggle-off status-icon red"></i>'.__('enable autoupdate').'</a>';
                } ?>
             </div>
        <div class="l-sort-toolbar clearfix">
          <table>
            <tr>
              <td>
                <form action="/bulk/hestia/" method="post" id="objects">
                <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
                <div class="l-select">
                  <select name="action" id="">
                    <option value=""><?=__('apply to selected')?></option>
                    <option value="update"><?php print __('update') ?></option>
                  </select>
                </div>
                <button type="submit" class="l-sort-toolbar__filter-apply" value=""><i class="fas fa-arrow-right"></i></button>
              </td>
            </tr>
          </table>
        </div>
      </div>
    </div>

    <div class="l-separator"></div>

    <div class="l-center units animated fadeIn">
        <div class="header table-header">    
            <div class="l-unit__col l-unit__col--right">
              <div>
                  <div class="clearfix l-unit__stat-col--left super-compact">
                      <input id="toggle-all" type="checkbox" name="toggle-all" value="toggle-all" onChange="checkedAll('objects');">
                    </div>
                  <div class="clearfix l-unit__stat-col--left wide"><b><?php print __('Package');?></b></div>
                  <div class="clearfix l-unit__stat-col--left wide-5"><b><?php print __('Description');?></b></div>
                  <div class="clearfix l-unit__stat-col--left text-center wide"><b><?php print __('Version');?></b></div>
                  <div class="clearfix l-unit__stat-col--left text-center"><b><?php print __('Status');?></b></div>
              </div>
            </div>
          </div>
      <?php
        foreach ($data as $key => $value) {
          ++$i;

          if ($data[$key]['UPDATED'] == 'yes') {
            $status = 'active';
            $upd_status = 'updated';
          } else {
            $status = 'suspended';
            $upd_status = 'outdated';
          }

      ?>
      <div class="l-unit<? if($status == 'suspended') echo ' l-unit--outdated';?>">
        <div class="l-unit-toolbar clearfix">
          <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
          </div>
        </div>

        <div class="l-unit__col l-unit__col--right">
            <div>
                <div class="clearfix l-unit__stat-col--left super-compact">
                  <input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="pkg[]" value="<?php echo $key ?>">
                </div>
              <div class="clearfix l-unit__stat-col--left wide"><b><?=$key?></b></div>
              <div class="clearfix l-unit__stat-col--left wide-5"><?=__($data[$key]['DESCR'])?></div>
              <div class="clearfix l-unit__stat-col--left text-center wide"><?=$data[$key]['VERSION'] ?> (<?=$data[$key]['ARCH']?>)</div>
              <div class="clearfix l-unit__stat-col--left text-center">
                  <? if ($data[$key]['UPDATED'] == 'no') {
                    echo '
                    <i class="fas fa-exclamation-triangle" style="color: orange;"></i>
                    ';
                  }
                  ?>
                  <? if ($data[$key]['UPDATED'] == 'yes') {
                    echo '
                    <i class="fas fa-check-circle status-icon green"></i></i>
                    ';
                  }
                  ?>
            </div>
          </div>
        </div>
      </div>
     <?}?>

    </div>

    <div id="vstobjects">
        <div class="l-separator"></div>
  </div>
