<?= $this->extend('layouts/front') ?>
<?= $this->section('content') ?>
<div class="content">
  <div><?= html_entity_decode($viewDatas['category']->getHead()) ?></div>
  <table class="form table table-bordered table-hover table-striped">
    <?php foreach ($viewDatas['fields'] as $field) : ?>
      <tr>
        <td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td>
        <td class="column">
          <?= getFieldView_ProductHelper($field, $viewDatas['entity'], $viewDatas) ?>
          <?= validation_show_error($field); ?>
        </td>
      </tr>
    <?php endforeach; ?>
  </table>
  <div style="text-align:center">
    <?php if ($viewDatas['entity']->getStatus() == DEFAULTS['STATUS']) : ?>
      <?= $this->include('front/product/addCart'); ?>
    <?php else : ?>
      이제품은 현재[<?= lang('Product.STATUS.' . $viewDatas['entity']->getStatus()) ?>]입니다.
    <?php endif ?>
  </div>
  <div><?= html_entity_decode($viewDatas['category']->getTail()) ?></div>
</div>
<?= $this->endSection() ?>