<table class="table table-sm">
  <?php $cnt = 1 ?>
  <?php foreach ($service['items'] as $item): ?>
    <tr>
      <td class="p-0 text-nowrap text-start" width="80%"><?= $cnt++ ?>. <?= $item['title'] ?></td>
      <td class="p-0 text-nowrap text-end"><?= number_format($item['amount']) ?>원</td>
    </tr>
  <?php endforeach; ?>
  <tr>
    <td class="p-0 text-nowrap text-end">총계</td>
    <td class="p-0 text-nowrap text-end"><?= number_format($service['amount']) ?>원</td>
  </tr>
</table>