<?php $__env->startSection('content'); ?>
    <section class="container all-container">
        <div class="card mb-3">
            <div class="card-header ver-aplicacion">
                <div class="title">
                    <i class="fas fa-ruler"></i> Requerimiento
                </div>
            </div>
            <div class="card-body padding-10">
                <form action="<?php echo e(route('AgregarRequerimiento')); ?>" method="post"  id="form-datos">
                    <?php echo csrf_field(); ?>
                    <div class="form-group row">
                        <div class="col-sm-2">titulo</div>
                        <div class="col-sm-10">
                            <input class="form-control" name="titulo" required>
                        </div>
                    </div>
                    <input type="hidden" name="creador" value="<?php echo e(Auth::user()->id); ?>">
                    <div class="form-group row">
                        <div class="col-sm-2">Aplicacion</div>
                        <div class="col-sm-10 col-md-2">
                            <select class="form-control " name="aplicacion" onchange="filtrarModulos(this.value)" required>
                                <option value=''>-Aplicaciones</option>
                                <?php $__currentLoopData = $aplicaciones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $aplicacion): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($aplicacion->app_id); ?>"><?php echo e($aplicacion->app_name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                            </select>
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <select class="form-control " name="modulo" url="<?php echo e(route('obtenerModulos')); ?>" onchange="filtrarFormularios(this.value)" id="modulos"required>
                                <option value=''>-Modulos</option>
                            </select>
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <select class="form-control" url="<?php echo e(route('obtenerFormularios')); ?>" name="formulario" id="formularios">
                                <option value=''>-Formularios</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-sm-2">Prioridad</div>
                        <div class="col-sm-10 col-md-2">
                            <select class="form-control" name="prioridad" required>
                                <option value="Normal">Normal</option>
                                <option value="Importante">Importante</option>
                                <option value="Urgente">Urgente</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-sm-2">Tipo</div>
                        <div class="col-sm-10 col-md-2">
                            <select class="form-control" name="tipo" required>
                                <option value="Mejora">Mejora</option>
                                <option value="Correccion">Correccion</option>
                            </select>
                        </div>
                    </div>
                    <fieldset class="form-group">
                        <div class="row">
                            <legend class="col-form-label col-sm-2 pt-0">Descripcion</legend>
                            <div class="col-sm-10">
                            <textarea  style="resize: none;" rows="5" id="textarea" name="descripcion" class="form-control" required></textarea>
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-group row">
                        <div class="col-sm-10">
                            <button type="submit" class="btn btn-light light2">Guardar</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="card-footer small text-muted">
            </div>
        </div>
    </section>
	<script src="<?php echo e(asset('js/sweetalert.min.js')); ?>"></script>
	<link  media="all" rel="stylesheet" type="text/css" href="<?php echo e(asset('css/general.css')); ?>">
	<script src="<?php echo e(asset('js/aplicacion.js')); ?>"></script>
	<script src="<?php echo e(asset('js/requerimientos.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>