<?= $this->extend('layouts/front') ?>
<?= $this->section('content') ?>
<link href="/css/front/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
	<div><?= html_entity_decode($viewDatas['currentCategory']->head) ?></div>
	<?= form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
	<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_DepositHelper($field, $viewDatas) ?></td>
				<td class="column">
					<?= getFieldForm_DepositHelper($field, old($field, DEFAULTS['EMPTY']), $viewDatas) ?>
					<?= validation_show_error($field); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		<tr>
			<td class="label"></td>
			<td class="column"><?= form_submit('', '무통장입금', array("class" => "btn btn-outline btn-primary")); ?></td>
		</tr>
	</table>
	<?= form_close(); ?>
	<div><?= html_entity_decode($viewDatas['currentCategory']->tail) ?></div>
</div>
<?= $this->endSection() ?>