<?php
require "../../controlador/clienteControlador.php";
require "../../modelo/clienteModelo.php";

$id = $_GET["id"];
$cliente = ControladorCliente::ctrInfoCliente($id);

?>
<div class="modal-header bg-dark">
  <h4 class="modal-title font-weight-light">Información de Cliente</h4>
  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>
<div class="modal-body">
  <div class="row">
    <div class="col-sm-12">
      <table class="table">
        <tr>
          <th>Nombre(s)</th>
          <td><?php echo $cliente["nombre_cliente"]; ?></td>
        </tr>

        <tr>
          <th>Apellido Paterno</th>
          <td><?php echo $cliente["ap_paterno_cli"]; ?></td>
        </tr>

        <tr>
          <th>Apellido Materno</th>
          <td><?php echo $cliente["ap_materno_cli"]; ?></td>
        </tr>

        <tr>
          <th>C.I./NIT</th>
          <td><?php echo $cliente["ci_cliente"]; ?></td>
        </tr>

        <tr>
          <th>Teléfono</th>
          <td><?php echo $cliente["telefono_cli"]; ?></td>
        </tr>

        <tr>
          <th>Dirección</th>
          <td><?php echo $cliente["direccion_cli"]; ?></td>
        </tr>

        <tr>
          <th>Estado Cliente</th>
          <?php
          if ($cliente["estado"] == 1) {
          ?>
          <td><span class="badge badge-success">Activo</span></td>
          <?php
          } else {
          ?>
          <td><span class="badge badge-danger">Inactivo</span></td>
          <?php
          }
          ?>
        </tr>

      </table>

    </div>
  </div>

</div>