<?php $__env->startSection('content'); ?>
    <section class="container all-container">
        <div class="card mb-3">
            <div class="card-header titulo-eliminar">
                <div class="title">
                    <i class="fas fa-ruler"></i> Formulario
                </div>
                <div onclick="eliminarFormulario(<?php echo e($formulario->id); ?>)"class="eliminar-container">
                    <i class="far fa-trash-alt eliminar-icon"></i>
                </div>
            </div>
            <div class="card-body">
                <form action="/actualizarFormulario/<?php echo e($formulario->id); ?>" method="post"  id="form-datos">
                    <?php echo csrf_field(); ?>
                    <div class="form-group row">
                        <label for="inputEmail3" class="col-sm-2 col-form-label">Nombre</label>
                        <div class="col-sm-10">
                            <input type="text" id="nombre" value="<?php echo e($formulario->nombre); ?>" name="nombre"  class="form-control" placeholder="Nombre del formulario" disabled required>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="inputPassword3" class="col-sm-2 col-form-label">Modulo</label>
                        <div class="col-sm-10">
                            <select class="form-control col-md-4" name="modulo" disabled required>
                            <?php $__currentLoopData = $modulos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $modulos): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                             <option value="<?php echo e($modulos->id); ?>"><?php echo e($modulos->nombre); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div><hr>
                    <div class="form-group row">
                        <div class="col-sm-10">
                            <button type="button" onclick="editar()" id="button-editar" class="btn btn-info">Editar</button>
                            <button type="submit" class="btn btn-primary" id="button-guardar">Guardar</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </section>
	<link  media="all" rel="stylesheet" type="text/css" href="<?php echo e(asset('css/general.css')); ?>">
	<script src="<?php echo e(asset('js/sweetalert.min.js')); ?>"></script>
	<script  src="<?php echo e(asset('js/agregar.js')); ?>"></script>
	<script src="<?php echo e(asset('js/aplicacion.js')); ?>"></script>
	<script src="<?php echo e(asset('js/formulario.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>