<table class="table table-bordered table-striped">
  <?php foreach ($serverCellDatas['entities'] as $entity): ?>
    <?php $serverCellDatas['entity'] = $entity ?>
    <tr class="text-center">
      <th style="width: 150px">
        <?= $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>파트정보</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>
        <div>
          <?= $serverCellDatas['helper']->getFieldView('viewer', $serverCellDatas['entity']->getViewer(), $serverCellDatas) ?>
        </div>
      </td>
      <td>
        <?= view_cell("\App\Cells\Equipment\ServerPartCell::parttable", [
          'serverinfo_uid' => $entity->getPK(),
          'types' => SERVERPART['ALL_PARTTYPES']
        ]) ?>
      </td>
    </tr>
  <?php endforeach; ?>
</table>