<?= $this->Form->create($menu, ['enctype' => 'multipart/form-data', 'class' => 'form-horizontal row-fluid']) ?>
<div class="row form-area">
	<div class="col-sm-12">

		<div class="row form-group" id="parent_sections">
			<div class="col-sm-3 col-xs-12 field-label">
				Category
			</div>
			<div class="col-sm-7 col-xs-12 select-input">
				<?= $this->Form->control('parent_menu_id', ['class' => 'form-control', 'options' => $parentMenus, 'label' => false, 'empty' => '-- Select --', 'required']); ?>
			</div>
		</div>

		<?= $this->element('menus/form') ?>

		<div class="row form-group">

		<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>
		</div>
	</div>
</div>
<?= $this->Form->end() ?>