<div class="bs-component main-pagination" ng-controller="certificadoCrtl">
	<div class="row">
		<div class="col-md-4">
			<form class="form-inline">
				<div class="form-group">
					<label >Buscar</label>
					<input type="text" ng-model="search" class="form-control" placeholder="Buscar">
				</div>
			</form>
		</div>
		<div class="col-md-8">
			<p>Total de Certificados Laborales registrados : <strong>{{totalItems}}</strong></p>
		</div>
	</div>
	<table class="table table-striped table-hover">
		<thead>
			<tr>
				<th colspan="2">
					<span></span>
				</th>
				<th ng-click="sort('nombre')"><i class="fas fa-sort"></i> Usuario
					<span class="fas fa-sort" ng-show="sortKey=='nombre'" ng-class="{'fas fa-sort-amount-up':reverse,'fas fa-sort-amount-down':!reverse}"></span>
				</th>
		
                <th ng-click="sort('fecha_expedicion')"><i class="fas fa-sort"></i> Fecha Expedición
					<span class="fas fa-sort" ng-show="sortKey=='estado'" ng-class="{'fas fa-sort-amount-up':reverse,'fas fa-sort-amount-down':!reverse}"></span>
				</th>

			</tr>

		</thead>

		<tbody>
			<tr dir-paginate="certificado in certificados|orderBy:sortKey:reverse|filter:search|itemsPerPage:5">
				<td class="acciones"><a class="a-edit" title="Editar" href="<?php echo base_url('certificado_laboral/edit')."/" ?>{{certificado.id}}"><i class="fas fa-edit c-edit"></i></a></td>

				<td class="acciones"><a class="a-del" title="Eliminar" ng-click="deleteCertificado(certificado.id)"><i class="fas fa-eraser c-del"></i></a></td>
				<td>{{certificado.n_usuario}}</td>
				<td>{{certificado.fecha_expedicion}}</td>
			</tr>
		</tbody>
	</table>
	<dir-pagination-controls
		max-size="5"
		direction-links="true"
		boundary-links="true" >
	</dir-pagination-controls>
</div>
