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