<?= $this->Form->create($menu, [
    'enctype' => 'multipart/form-data',
    'class' => 'form-horizontal row-fluid'
]) ?>
<?= $this->Form->hidden('status', [
    'value' => 2
]); ?>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Name *</label>
    <div class="col-sm-7">
        <?= $this->Form->control('name', [
            'class' => 'form-control',
            'label' => false,
            'required' => true
        ]); ?>
    </div>
</div>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Description *</label>
    <div class="col-sm-7">
        <?= $this->Form->control('description', [
            'class' => 'form-control',
            'label' => false,
            'disabled' => true
        ]); ?>
    </div>
</div>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Show on Home</label>
    <div class="col-sm-7">
        <?= $this->Form->control('show_on_home', [
            'class' => 'form-control',
            'type' => 'select',
            'options' => [1 => 'Yes', 0 => 'No'],
            'label' => false
        ]); ?>
    </div>
</div>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Content</label>
    <div class="col-sm-7">
        <?= $this->Form->textarea('content', [
            'class' => 'form-control',
            'label' => false
        ]); ?>
    </div>
</div>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Icon Class</label>
    <div class="col-sm-7">
        <?= $this->Form->control('fa_icon', [
            'class' => 'form-control',
            'label' => false
        ]); ?>
    </div>
</div>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Menu Link</label>
    <div class="col-sm-7">
        <?= $this->Form->control('menu_link', [
            'class' => 'form-control',
            'label' => false
        ]); ?>
    </div>
</div>

<div class="mb-3 row">
    <label class="col-sm-3 col-form-label">Image</label>
    <div class="col-sm-7">
        <?= $this->Form->control('image_path', [
            'class' => 'form-control',
            'label' => false,
            'type' => 'file'
        ]); ?>
    </div>
</div>

<div class="row">
    <div class="col-md-10 col-sm-12 d-flex justify-content-end align-items-end my-4">
        <?= $this->Form->button(__('Submit'), ['class' => 'btn btn-primary pull-right']) ?>
    </div>
</div>

<?= $this->Form->end() ?>