<table class="table m-0 p-0">
  <tr>
    <th class="fw-bold" nowrap>결제일</th>
    <td nowrap><?= $serviceEntity->getBillingAT() ?></td>
  </tr>
  <tr>
    <th class="fw-bold" nowrap>결제금</th>
    <td class="amount-green" nowrap><?= number_format(intval($serviceEntity->getAmount())) ?>원</td>
  </tr>
  <tr>
    <th class="fw-bold" nowrap>미납금</th>
    <td class="amount-red" nowrap>
      <?php if (array_key_exists($serviceEntity->getPK(), $serviceCellDatas['unPaids'])): ?>
        <?=
        form_label(
          sprintf("총:%s건/%s원", $serviceCellDatas['unPaids'][$serviceEntity->getPK()]['cnt'], number_format($serviceCellDatas['unPaids'][$serviceEntity->getPK()]['amount'])),
          'payment_unpaid',
          [
            "data-src" => "/admin/customer/payment?clientinfo_uid={$serviceEntity->getClientInfoUID()}&serviceinfo_uid={$serviceEntity->getPK()}&status=unpaid&ActionTemplate=popup",
            "data-bs-toggle" => "modal",
            "data-bs-target" => "#modal_action_form",
            "class" => "text-primary form-label-sm",
          ]
        );
        ?>
      <?php endif ?>
    </td>
  </tr>
  <tr>
    <td colspan="2" class="text-center"><?= $serviceCellDatas['service']->getHelper()->getListButton('onetime', '일회성 입력', ['entity' => $serviceEntity], ['class' => 'btn btn-sm btn-primary']) ?></td>
  </tr>
</table>