<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <div class="container-fluid">

    </div><!-- /.container-fluid -->
  </section>

  <section class="content">
    <h5 class="table-title">
      Lista de Inscripciones
    </h5>

    <table id="DataTable" class="table table-bordered table-striped">
      <thead>
        <tr>
          <th>Cliente</th>
          <th>Membresia</th>
          <th>Estado</th>
          <td>
            <button class="btn btn-block btn-primary btn-sm" onclick="MNuevoInscripcion()"> <i class="fas fa-plus"></i> Nuevo</button>
          </td>
        </tr>
      </thead>
      <tbody>
        <?php 
        $inscripcion=ControladorInscripcion::ctrInfoInscripciones();

        foreach($inscripcion as $value){
        ?>
        <tr>
          <td><?php echo $value["nombre_cliente"]." ".$value["ap_paterno_cli"]." ".$value["ap_materno_cli"];?></td>
          <td><?php echo $value["descripcion"];?></td>
          <?php 
          if($value["estado"]==1){
          ?>
          <td><span class="badge badge-success">Vigente</span></td>
          <?php
          }else{
          ?>
          <td><span class="badge badge-danger">Caducado</span></td>
          <?php
          }
          ?>

          <td>
            <div class="btn-group">
              <button class="btn btn-sm btn-info" onclick="MVerInscripcion(<?php echo $value['id_inscripcion']; ?>)">
                <i class="fas fa-eye"></i>
              </button>
              <button class="btn btn-sm btn-secondary" onclick="MEditInscripcion(<?php echo $value["id_inscripcion"];?>)">
                <i class="fas fa-edit"></i>
              </button>
              <button class="btn btn-sm btn-danger" onclick="MEliInscripcion(<?php echo $value["id_inscripcion"];?>)">
                <i class="fas fa-trash"></i>
              </button>
            </div>
          </td>
        </tr>

        <?php
        }
        ?>

      </tbody>
    </table>

  </section>
</div>