<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $this->load->view('template/head.php'); ?>
<?php $this->load->view('template/header_admin.php'); ?>
<style>
body {background-color: #ffffff !important;}
</style>
<div class="row">
    <div class="col-lg-12 col-md-12">
        <a class="btn btn-danger btn-sm" href="<?= base_url('sincronizacion')?>">Regresar</a>
    </div>
</div>
<section class="row contenedor-titulo">
<h3 class="titulo"><?= $titulo ?></h3> 
</section>
<section class="row contenedor">
<div class="col-lg-10 col-md-10">
<?php // if (isset($permisos['sincronizacion']['sincronizacion_descargar'])): ?>
<?php if (isset($arr_log)):?>
<div class="row">
    <div class="col-lg-12 col-md-12">
    <table class="table table-bordered">
    <caption style="text-align: center;font-size: 18px;color: #d21515;">Código del proceso: <?= @$cod_proceso ?> ---- Total de registros sincronizados: <?= @$total_registros ?></caption>
        <thead>
            <th>Instancia</th>
            <th>Id candidato</th>
            <th>Identificación participante</th>
            <th>Fec voto</th>
            <th>Ip</th>
            <th>Estado</th>
        </thead>
        <tbody>
            <?php // echo '<pre>'; var_dump($arr_log); exit; ?>
            <?php foreach ($arr_log as $key => $log): ?>
            <tr>
                <td><?= $log['ID_INSTAN'] ?></td>
                <td><?= $log['ID_CANDID'] ?></td>
                <td><?= $log['NUM_IDETER'] ?></td>
                <td><?= $log['FEC_PROVOT'] ?></td>
                <td><?= $log['TEX_IPORIG'] ?></td>
                <td><?=  ($log['BOL_REGIS'])?'<b class="text-success">Registrado</b>':'<b class="text-danger">No registrado. El participante ya ha votado</b>' ?></td> 
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
</div>
</div>
<?php endif; ?>
<?php //endif; ?>

</div>    
</section>
<?php
$data_view['loajs'] = $load_js;
$this->load->view('template/footer.php', $data_view);
?>
