<?= $this->Form->create($fileupload, ['enctype' => 'multipart/form-data']) ?>
<div class="row form-area">
    <div class="container">

        <div class="mb-3 row">
            <label class="col-md-2 col-sm-3 col-form-label">old File</label>
            <div class="col-md-4 col-sm-2">
                <?php if (!empty($fileupload->file_path)): ?>
                    <span><?= h($fileupload->file_path); ?></span>
                <?php endif ?>
            </div>
        </div>


        <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">Select File</label>
            <div class="col-sm-10">
                <?= $this->Form->control('file1', [
                    'type' => 'file',
                    'id' => 'file1',
                    'label' => false,
                    'class' => 'form-control'
                ]) ?>
            </div>
        </div>

        <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">Title</label>
            <div class="col-sm-10">
                <?= $this->Form->control('title', [
                    'class' => 'form-control',
                    'label' => false
                ]); ?>
            </div>
        </div>

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

        <div class="row">
            <div class="col-md-12 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>
<?= $this->Form->end() ?>