<table class="table table-bordered table-hover table-striped">
  <tr>
    <th class="text-center">항목</th>
    <th class="text-center text-nowrap" width="18%">사용</th>
    <th class="text-center text-nowrap" width="18%">가능</th>
    <th class="text-center text-nowrap" width="18%">총재고</th>
  </tr>
  <?php foreach (SERVER['CHASSISES'] as $key => $label): ?>
    <tr>
      <td class="text-end text-nowrap"><?= $label ?></td>
      <td class="text-center text-nowrap"><?= array_key_exists($key, $partCellDatas['rows']) ? $partCellDatas['rows'][$key] : 0 ?></td>
      <td class="text-center text-nowrap"><?= array_key_exists($key, $partCellDatas['rows']) ? SERVER['STOCKS'][$key] - $partCellDatas['rows'][$key] : SERVER['STOCKS'][$key] ?></td>
      <td class="text-center text-nowrap"><?= SERVER['STOCKS'][$key] ?></td>
    </tr>
  <?php endforeach ?>
</table>