
<?php $__env->startSection('categorias','active'); ?>

<?php $__env->startSection('form'); ?>

<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <h2>Agregar categor&iacute;a para la secci&oacute;n <?= $seccion ?></h2>
        </div>
        <div class="col-12">
            <form method="POST" action="<?= route('createCategoria', $seccion) ?>" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="mb-3">
                    <label for="inputNombre" class="form-label">Nombre</label>
                    <input type="text" class="form-control" id="inputNombre" name="nombre" required>
                </div>
                <div class="mb-3">
                    <label for="inputOrden" class="form-label">Orden</label>
                    <input type="text" class="form-control" id="inputOrden" name="orden" required>
                </div>
                <?php if($seccion == 'productos'){ ?>
                    <div class="form-check">
                        <input class="form-check-input" name="destacado" type="checkbox" id="flexCheckDefault">
                        <label class="form-check-label" for="flexCheckDefault">
                            Destacar categoria
                        </label>
                    </div>
                    <div class="mb-3">
                        <label for="formFile" class="form-label">Imagen(Tama&ntilde;o recomendado: 1080 x 1080 px)</label>
                        <input class="form-control" type="file" id="formFile" name="foto" required>
                    </div>
                <?php } ?>
                <button type="submit" class="btn btn-primary">Crear categor&iacute;a</button>
            </form>
        </div>
    </div>
</div>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('adm.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/d11osolecom/public_html/grupohelmont/resources/views/adm/categorias/create.blade.php ENDPATH**/ ?>