<div class="content-wrapper">

  <section class="content-header">

    <h1>

      Reporte de Recuperacion

    </h1>

    <ol class="breadcrumb">

      <li><a href="inicio"><i class="fa fa-dashboard"></i> Inicio</a></li>

      <li class="active">Reporte de Recuperacion</li>

    </ol>

  </section>

  <section class="content">

    <div class="box">

      <div class="box-header with-border">



        <div class="form-row">

                    <div class="form-group col-md-3">
                      <input type="hidden" id="perfilSession" value="<?php echo $_SESSION["perfil"]; ?>"  name="">
                      <label for="inputCity">Futuro Filtro:</label>
                      <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-audio-description"></i></span>
                        <select class="form-control" id="tipoServicio" name="tipoServicio" required>
                              <option value="">Seleccione</option>
                              <option value="2">Comercio</option>
                              <option value="1">Domiciliar</option>

                      </select>
                      </div>
                    </div>

                    <div class="form-group col-md-3">
                      <label for="inputCity">Diplomado:</label>
                      <div class="input-group">
                      <span class="input-group-addon"><i class="fa fa-flag-checkered"></i></span>
                      <select class="form-control" id="estadoServicio" name="estadoServicio" required>
                              <option value="">Seleccione</option>
                              <option value="0">Activo</option>
                              <option value="1">Suspendido</option>
                              <option value="2">Finalizado</option>

                      </select>
                      </div>
                    </div>

                    <div class="form-group col-md-3">
                      <label for="inputCity">Bloque:</label>
                      <div class="input-group">
                      <span class="input-group-addon"><i class="fa fa-flag-checkered"></i></span>
                      <?php
                        $zonas = ControladorDirecciones::ctrMostrarZona(); ?>
                      <select class="form-control" id="zonaDetallado" name="zonaServicio" required>
                              <option value="">Seleccione</option>
                              <?php foreach($zonas as $fila){ ?>
                              <option value="<?= $fila['nombre_zona'] ?>"><?= $fila['nombre_zona'] ?></option>
                              <?php } ?>

                            </select>
                      </div>
                    </div>

                    <div class="form-group col-md-3">
                      <label for="inputCity"><i class="fa fa-file-pdf-o"></i> </label>
                      <div class="input-group">


                      <button id="btnExportarExcelGral" class="btn btn-success">
                            <i class="fas fa-file-excel"></i> Exportar a Excel
                      </button>

                      </div>
                    </div>

                  </div>





      </div>

      <div class="box-body">

       <table class="table table-bordered table-striped dt-responsive tablas serviConti">

        <thead>

         <tr>

           <th style="width:10px">#</th>
           <th style="width: 50px;">ID</th>
           <th>ALUMNO</th>
           <th>DIPLOMADO</th>
           <th>INSCRIPCION</th>
           <th>PAGO 1</th>
           <th>PAGO 2</th>
           <th>PAGO 3</th>
           <th>PAGO 4</th>
           <th>PAGO 5</th>
           <th>PAGO 6</th>
           <th>PAGO 7</th>
           <th>PAGO 8</th>
           <th>PAGO 9</th>
           <th>PAGO 10</th>
           <th>PAGO 11</th>
           <th>PAGO 12</th>
           <th>PAGO 13</th>
           <th>PAGO 14</th>

         </tr>

        </thead>

        <tbody id="serviCont">

        <?php

        $item = null;
        $valor = null;

        $contratos = ControladorContratos::ctrDetallePagos($item, $valor);
        //Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\SisRecoleccion\vistas\modulos\contratos.php on line 111

       foreach ($contratos as $key => $value){

          echo ' <tr>
                  <td>'.($key+1).'</td>
                  <td>'.$value["BLOQUE"].'</td>';
                echo '<td>'.$value["NOMBRE DE ALUMNO"].'</td>';

                echo '<td>'.$value["DIPLOMADO"].'</td>';
                echo '<td>'.$value["Inscripcion"].'</td>';
                echo '<td>'.$value["Pago 1"].'</td>';
                echo '<td>'.$value["Pago 2"].'</td>';
                echo '<td>'.$value["Pago 3"].'</td>';
                echo '<td>'.$value["Pago 4"].'</td>';
                echo '<td>'.$value["Pago 5"].'</td>';
                echo '<td>'.$value["Pago 6"].'</td>';
                echo '<td>'.$value["Pago 7"].'</td>';
                echo '<td>'.$value["Pago 8"].'</td>';
                echo '<td>'.$value["Pago 9"].'</td>';
                echo '<td>'.$value["Pago 10"].'</td>';
                echo '<td>'.$value["Pago 11"].'</td>';
                echo '<td>'.$value["Pago 12"].'</td>';
                echo '<td>'.$value["Pago 13"].'</td>';
                echo '<td>'.$value["Pago 14"].'</td>';



                      echo '</div>

                    </td>



                </tr>';
        }


        ?>

        </tbody>

       </table>

      </div>

    </div>

  </section>

</div>



<div id="modalEditarContrato" class="modal fade" role="dialog">

<div class="modal-dialog modal-lg">
    <div class="modal-content">

      <form role="form" method="post">

        <!--=====================================
        CABEZA DEL MODAL
        ======================================-->

        <div class="modal-header" style="background:#3c8dbc; color:white">

          <button type="button" class="close" data-dismiss="modal">&times;</button>

          <h4 class="modal-title">Cronograma de Pagos</h4>

        </div>

        <!--=====================================
        CUERPO DEL MODAL
        ======================================-->

        <div class="modal-body">

          <div class="box-body">

            <table class="table table-bordered table-striped dt-responsive tablas tablaContratos" width="100%">


        <thead>

         <tr>

           <th style="width:10px">#</th>
           <th>Fechas de pagos</th>
           <th>Monto</th>
           <th>Estado</th>

         </tr>

        </thead>

        <tbody id="tablebody1">


        </tbody>

       </table>


          </div>

        </div>



        <!--=====================================
        PIE DEL MODAL
        ======================================-->

        <div class="modal-footer">

          <button type="button" class="btn btn-danger pull-right" data-dismiss="modal">Close</button>


        </div>

      </form>

      </div>

  </div>

</div>
