<?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: #ffffff !important;}
</style>
<section class="row contenedor-titulo">
	<h3 class="titulo"><?= $titulo ?></h3> 
</section>
<section class="row contenedor">
	<div class="col-lg-12 col-md-12">
		<div class="grupo-botones-load">
			<?php if (isset($permisos['candidatos']['candidatos_crear'])): ?>
				<a href="<?php echo base_url('candidatos/create') ?>" class="btn btn-success">Crear Candidato</a>
			<?php endif; ?>
			<?php if (isset($permisos['candidatos']['candidatos_cargar'])): ?>
				<a href="<?php echo base_url('candidatos/upload_csv') ?>" class="btn btn-primary"><i class="fa fa-users"></i> Cargar Candidatos</a>
			<?php endif; ?>
		</div>
		<table id="listing" class="table compact display table-hover">
			<thead>
				<tr>
					<th>ID</th>
					<th>Nombre</th>
					<th>Instancia</th>
					<th>Ciudad</th>
					<th><?= $this->session->userdata('NOMBRE_SEGMENTO') ?></th>
					<th>Estado</th>
					<th>Acciones</th>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<th>ID</th>
					<th>Nombre</th>
					<th>Instancia</th>
					<th>Ciudad</th>
					<th><?= $this->session->userdata('NOMBRE_SEGMENTO')  ?></th>
					<th>Estado</th>
					<th>Acciones</th>
				</tr>  
			</tfoot>
		</table>
	</div>    
</section>
<?php
$data_view['loajs'] = $load_js;
$this->load->view('template/footer.php', $data_view);
?>