<table class="table table-bordered table-striped">
  <?php foreach ($serverCellDatas['entities'] as $entity): ?>
    <?php $serverCellDatas['entity'] = $entity ?>
    <tr class="text-center">
      <th style="width: 250px">
        <?= $serverCellDatas['serviceEntity']->getServerInfoUID() == $entity->getPK() ? "📌" : "<a href=\"/admin/customer/service/changeServer/{$serverCellDatas['serviceEntity']->getPK()}?serverinfo_uid={$entity->getPK()}\">✔️</a>" ?>
        <?= $serverCellDatas['serverPartHelper']->getFieldView('SERVER', "", ['serverEntity' => $entity]) ?>
        <a href="/admin/customer/service/terminateServer/{$serverCellDatas['serviceEntity']->getPK()}?serverinfo_uid={$entity->getPK()}">❌</a>
      </th>
      <th style=" width: 250px">
        <?= $serverCellDatas['serverPartHelper']->getListButton('CPU', 'CPU', ['serverinfo_uid' => $entity->getPK()]) ?>
        / <?= $serverCellDatas['serverPartHelper']->getListButton('RAM', 'RAM', ['serverinfo_uid' => $entity->getPK()]) ?>
        / <?= $serverCellDatas['serverPartHelper']->getListButton('DISK', 'DISK', ['serverinfo_uid' => $entity->getPK()]) ?>
      </th>
      <th style="width: 200px"><?= $serverCellDatas['serverPartHelper']->getListButton('IP', '추가IP', ['serverinfo_uid' => $entity->getPK()]) ?></th>
      <th style="width: 200px"><?= $serverCellDatas['serverPartHelper']->getListButton('CS', 'CS', ['serverinfo_uid' => $entity->getPK()]) ?></th>
    </tr>
    <tr class="text-center">
      <td nowrap>
        <div><?= $serverCellDatas['helper']->getFieldView('switchinfo_uid', $entity->getSwitchInfoUID(), $serverCellDatas) ?></div>
        <div><?= $entity->getTitle() ?></div>
        <div><?= $entity->getIP() ?></div>
        <div><?= $entity->getOS() ?></div>
        <div>금액 : <span class="text-danger"><?= number_format($entity->getPrice()) ?></span>원</div>
      </td>
      <?= view_cell("\App\Cells\Equipment\ServerPartCell::parttable", [
        'serverinfo_uid' => $entity->getPK(),
        'types' => SERVERPART['ALL_PARTTYPES'],
        'template' => 'detail'
      ]) ?>
    </tr>
  <?php endforeach; ?>
</table>