<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<div class="box">
    <div class="box-header">
        <h2 class="blue"><i class="fa fa-file-text"></i><span class="break"></span> Conexiones con Certificador</h2>
    </div>
    <div class="box-content">
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Sucursal</th>
                        <th>Certificador</th>
                        <th>NIT</th>
                        <th>Usuario</th>
                        <th>Contraseña</th>
                        <th>Activo</th>
                        <th>Fecha Creación</th>
                    </tr>
                </thead>
                <tbody>
                    <?php if (!empty($registros)): ?>
                        <?php foreach ($registros as $r): ?>
                            <tr>
                                <td><?= $r->id; ?></td>
                                <td><?= $r->sucursal; ?></td>
                                <td><?= $r->certificador; ?></td>
                                <td><?= $r->nit; ?></td>
                                <td><?= $r->usuario; ?></td>
                                <td><?= $r->contrasena; ?></td>
                                <td><?= $r->activo ? 'Sí' : 'No'; ?></td>
                                <td><?= $r->fecha_creacion; ?></td>
                            </tr>
                        <?php endforeach; ?>
                    <?php else: ?>
                        <tr><td colspan="8" class="text-center">No hay registros</td></tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
