<?php $__env->startSection('title', 'Informe Cartera'); ?>
<?php $__env->startSection('content'); ?>
<div class="col-sm-12 col-md-9 col-lg-10 col-xl-10">
    <h3 class="text-center titulo">Informe Cartera Consolidado</h3>
    <div class="borde-forma">
        <form id="form" method="post" accept-charset="utf-8" action="" target="_blank">
            <p class="parrafo-forma">
                Los campos marcados con <strong class="requerido">*</strong> son obligatorios.
            </p>
            <?php echo e(csrf_field()); ?>

                <div class="form-group row">
                    <label for="sltTipoA" class="col-form-label col-sm-5 col-md-5 col-lg-5 col-xl-5 text-right"><strong class="requerido">*</strong>Cartera:</label>
                    <div class="col-sm-5 col-md-5 col-lg-5">
                        <select name="sltCartera" id="sltCartera" class="form-control select" required>
                            <?php
                            $html = "";
                            $html .= "<option value=''>Cartera</option>";
                            foreach ($carteras as $row){
                                $html .= "<option value='$row->normf'>$row->fecha</option>";
                            }
                            echo $html;
                            ?>
                        </select>
                    </div>
                   
                </div>
            <div class="form-group row">
                <label for="sltListado" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Informe:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <select name="sltListado" id="sltListado" class="form-control select">
                        <option value="">Informe</option>
                        <option value="1">Informe Cartera</option>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label for="btnGuardar" class="col-form-label col-md-5 col-lg-5 col-xl-5"></label>
                <div class="col-sm-2 col-md-1 col-lg-1 col-xl-1">
                    <button type="submit" class="btn btn-primary fa fa-download sombra"></button>
                </div>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
    $("#sltListado").chosen().change(function(){
        var lis = $("#sltListado").val();
        switch(lis){
            case '1':
                $("#form").attr("action", '<?php echo e(route("InformeCarteraT")); ?>');
                break;
        }
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>