<?php
/**
 * @var \App\View\AppView $this
 * @var \App\Model\Entity\Product $product
 */
?>

<?= $this->Html->css(['product_add']) ?>

<div class="row">
    <div class="column column-80">
        <div class="products form content">
            <?= $this->Form->create($product, ['type' => 'file']) ?>
<!--            <fieldset>-->
<!--                <legend>--><?php //= __('Add Product') ?><!--</legend>-->
<!--                --><?php
//                echo $this->Form->control('name');
//                echo $this->Form->control('description');
//                echo $this->Form->control('img', [
//                    'type' => 'file',
//                    'label' => 'Upload Product Image'
//                ]);
//                echo $this->Form->control('price');
//                echo $this->Form->control('stock');
//                echo $this->Form->control('status');
//                echo $this->Form->control('sku');
//                echo $this->Form->control('brand');
//                ?>
<!--            </fieldset>-->

            <fieldset>
                <h1 class="heading"><?= __('Add Product') ?></h1>
<!--                <h4 class="heading">--><?php //= __('Actions') ?><!--</h4>-->
<!--                --><?php //= $this->Html->link(__(' List Products'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
                <div style="display: flex; flex-direction: column; gap: 15px;">
                    <?= $this->Form->control('name') ?>
                    <?= $this->Form->control('description', ['rows' => 3]) ?>
                    <?= $this->Form->control('img', [
                        'type' => 'file',
                        'label' => 'Upload Product Image'
                    ]) ?>
                    <?= $this->Form->control('price') ?>
                    <?= $this->Form->control('stock') ?>
                    <?= $this->Form->control('status') ?>
                    <?= $this->Form->control('sku') ?>
                    <?= $this->Form->control('brand') ?>
                </div>
            </fieldset>
            <?= $this->Form->button(__('Submit')) ?>
            <?= $this->Form->end() ?>
        </div>
    </div>
</div>

