@if (empty($data))
<div class="col-md-12 text-center">---- No se encontraron resultados ----</div>
@else



	<table class="table table-hover table-condensed" id="tablaBusqueda">
	 	<thead>
	  	<tr class="btn-fidelitas">
	    	<th class="text-center">País</th>
	    	<th class="text-center">Nombre</th>
	    	<th class="text-center">Tipo</th>
	    	<th class="text-center">Identificación</th>
		</tr>
		</thead>
		<tbody>

			@foreach($data as $k => $persona)
			<tr class="prow" data-id-padron="{{ $persona->id_padron }}">
				<td class="text-center"><span class="flag-icon flag-icon-background flag-icon-{{ strtolower($persona->country_code) }}"></span></td>
				<td class="text-left">{{ $persona->nombre_persona }}</td>
				<td class="text-center">{{ $persona->abreviatura }}</td>
				<td class="text-center">{{ $persona->identificacion }}</td>
			</tr>
			@endforeach
		</tbody>
		<tfoot></tfoot>
	</table>
	<style>
		.prow { cursor:pointer; }
		.prow:hover { text-decoration: underline; }
	</style>
	<script language="javascript" type="text/javascript">
		$(document).ready(function() {

			$('#tablaBusqueda').DataTable({
															"pagingType": "full_numbers",
															"ordering": true,
															"info":  true,
															"lengthMenu": [ [5,10, 25, 50, 100, -1], [5,10, 25, 50, 100, "Todos"] ],
															"language": {
																"lengthMenu": "Mostrar _MENU_ registros por página",
																"zeroRecords": "No se encontraron  resultados para ésa búsqueda",
																"info": "Mostrando página _PAGE_ de _PAGES_",
																"infoEmpty": "No hay registros disponibles",
																"infoFiltered": "(filtrados de _MAX_ registros totales)",
																"sSearch":        "Buscar",
																"oPaginate": {
																	"sFirst":     "Primera",
																	"sPrevious":  "Anterior",
																	"sNext":      "Siguiente",
																	"sLast":      "Última"
																},
															}

			});

		});
	</script>


@endif