Sindbad~EG File Manager
<div>
<div class="card">
<div class="card-header">
<div class="col-12">
<div class="form-group">
<input wire:model="buscar" type="search" class="form-control" placeholder="Buscar" />
</div>
</div>
</div>
<div class="card-body">
<table class="table table-bordered">
<thead>
<tr>
<th>Evaluado</th>
<th>Promedio</th>
<th>Año</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
@foreach($historial as $value)
<tr>
<td>{{ $value->nombre_evaluado }}</td>
<td>{{ $value->promedio }}</td>
<td>{{ $value->anio }}</td>
<td>
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#exampleModal{{ $value->id }}"><i class="fas fa-eye"></i></button>
<!-- Modal -->
<div class="modal fade" id="exampleModal{{ $value->id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{{ $value->nombre_evaluado }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p><b>Año: </b>{{ $value->anio }}</p>
<p><b>Necesidades de capacitación: </b>{{ $value->necesidades_capacit }}</p>
<p><b>Opciones de mejora: </b>{{ $value->opciones_mejora }}</p>
<p><b>Promedio: </b>{{ $value->promedio }}</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
</div>
</div>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="col-12">
@if($historial->count())
{{ $historial->links() }}
@else
No hay resultados para la búsqueda "{{ $buscar }}"
@endif
</div>
</div>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists