registrados.blade.php 2.19 KB
<!doctype html>
<html lang="es">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Registrados</title>
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
	<style type="text/css">
#contenido{
	margin: 3em 5em;
}
	</style>
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
	<script src='//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js'></script>
	<script src='js/asistencia.js'></script>
</head>
<body>
	<nav class="navbar navbar-default" role="navigation">
	  <div class="container-fluid">
	    <!-- Collect the nav links, forms, and other content for toggling -->
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      <ul class="nav navbar-nav navbar-right">
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Imprimir Listados<b class="caret"></b></a>
	          <ul class="dropdown-menu">
	            <li><a href="{{ route('impresion', array('id'=>1,'curso'=>'acti')) }}">Actividades</a></li>
	            <li><a href="{{ route('impresion', array('id'=>1,'curso'=>'estra')) }}">Estrategias</a></li>
	            <li><a href="{{ route('impresion', array('id'=>1,'curso'=>'fund')) }}">Fundamentos</a></li>
	            <li><a href="{{ route('registrados', array('id'=>2)) }}">2 Diplomas</a></li>
	            <li><a href="{{ route('registrados', array('id'=>3)) }}">3 Diplomas</a></li>
	          </ul>
	        </li>
	      </ul>
	    </div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
	<section id="contenido">
		<table class="table table-striped">
			<tr>
				<th>Número de Diplomas</th>
				<th>Cursos</th> 
				<th>Documento</th> 
				<th>Apellidos</th> 
				<th>Nombres</th> 
				<th>Correo</th>
			</tr>
		@foreach($asistentes as $asistente)
			<tr>
				<td>{{$asistente->diplomas}} </td>
				<td>{{ str_replace(',','<br />', $asistente->cursos ); }} </td> 
				<td>{{$asistente->documento}}</td> 
				<td>{{$asistente->apellidos}}</td> 
				<td>{{$asistente->nombre}}</td>
				<td>{{$asistente->correo}}</td>
			</tr>
		@endforeach
		</table>
	</section>
</body>
</html>