<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
	<table class="form table table-bordered table-hover table-striped">
		<tr>
			<td class="label">주문정보</td>
			<td class="column">
				<ul class="orders">
					<?php foreach ($viewDatas['orders'] as $order) : ?>
						<li class="text-start"><?= $order->getTitle() ?> * <?= $order->quantity ?>개 = <?= number_format($order->price) ?>원</li>
					<?php endforeach ?>
				</ul>
			</td>
		</tr>
		<tr>
			<td class="label">결제금액</td>
			<td class="column"><?= number_format($viewDatas['entity']->price) ?>원</td>
		</tr>
		<tr>
			<td class="label">은행정보</td>
			<td class="column">
				<ul class="banks">
					<?php foreach (MALLS['banks'] as $bank) : ?>
						<li><?= $bank['name'] ?> , <?= $bank['account'] ?> , <?= $bank['holder'] ?></li>
					<?php endforeach ?>
				</ul>
			</td>
		</tr>
		<?php foreach ($viewDatas['fields'] as $field) : ?>
			<tr>
				<td class="label"><?= getFieldLabel_BillingHelper($field, $viewDatas) ?></td>
				<td class="column">
					<?= getFieldView_BillingHelper($field, $viewDatas['entity'], $viewDatas) ?>
				</td>
			</tr>
		<?php endforeach; ?>
	</table>
</div>
<?= $this->endSection() ?>