dbms/app/Views/admin/payment/invoice.php
2025-06-16 17:10:59 +09:00

58 lines
2.0 KiB
PHP

<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
<?= $this->section('content') ?>
<div id="container" class="content">
<link href="/css/<?= $viewDatas['layout'] ?>/form.css" media="screen" rel="stylesheet" type="text/css" />
<div class="action_form" style="width:1024px;">
<!-- 청구서 정보 -->
<table class=" table table-bordered">
<tbody>
<tr>
<th>메일 제목</th>
<td colspan="3">서비스 요금 청구서 </td>
</tr>
<tr>
<th>발신자</th>
<td>support@priem-idc.jp</td>
<th>발행일</th>
<td><?= date("Y-m-d") ?></td>
</tr>
</tbody>
</table>
<!-- 서비스 테이블 -->
<?php foreach ($viewDatas['entities'] as $entity): ?>
<table class="table table-bordered text-center">
<tr>
<th>관리자명</th>
<th>총 결제 금액</th>
</tr>
<tr>
<td><?= $entity['name'] ?></td>
<td><?= number_format($entity['total_amount']) ?>원</td>
</tr>
<tr>
<td colspan="2">
<table class="table table-bordered text-center">
<?php foreach ($entity['services'] as $service): ?>
<tr>
<th>서비스: <?= $service['serial'] ?></th>
<th class="text-end">지급기한: <?= $service['billing_at'] ?></th>
</tr>
<tr>
<td>항목</td>
<td>
<ol>
<?php foreach ($service['items'] as $item): ?>
<li class="text-start"><?= $item['item_type'] ?> :<?= $item['item_uid'] ?> [<?= number_format($item['amount']) ?>원]<\ /li>
<?php endforeach; ?>
</ol>
</td>
</tr>
<?php endforeach; ?>
</table>
</td>
</tr>
</table>
<?php endforeach; ?>
</div>
</div>
<?= $this->endSection() ?>