<div class="table-responsive" id="table">
  <input type="hidden" id="token">
  <table class="table table-bordered table-hover table-striped" style="text-align:center;">
    <thead>
      <tr>
        <th style="text-align:center;">No</th>
        <th style="text-align:center;">서비스코드</th>
        <th style="text-align:center;">장비명</th>
        <th style="text-align:center;">서버IP</th>
        <th style="text-align:center;">서비스개시일</th>
        <th style="text-align:center;">회선종류</th>
        <th style="text-align:center;">쿠폰 누적수</th>
        <th style="text-align:center;">쿠폰 잔량수</th>
        <th style="text-align:center;">쿠폰 사용수</th>
      </tr>
    </thead>
    <tbody>
      <?php $i = 0; ?>
      <?php foreach ($this->services as $service) { ?>
        <?php $num = count($this->services) - $i; ?>
        <tr>
          <td><?= $num ?></td>
          <td><a href="/serviceDetailSolo.sev?client_code=<?= $service->getClientCode() ?>&service_code=<?= $service->getServiceCode() ?>"><?= $service->getServiceCode() ?></td>
          <td><?= $service->getServerCode() ?></td>
          <td><?= $service->service_ip ?></td>
          <td><?= $service->service_open_date ?></td>
          <td><?= $service->service_line ?></td>
          <td><?= $service->getCoupon() + $service->getUsedCoupon() ?></td>
          <td><?= $service->getCoupon() ?></td>
          <td><?= $service->getUsedCoupon() ?></td>
        </tr>
        <?php $i++; ?>
      <?php } ?>
    </tbody>
  </table>
</div>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcCouponListMK.cup", ['curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div>