Sindbad~EG File Manager
<div>
<?php
use Illuminate\Support\Facades\DB;
?>
<div class="row">
<div class="col-md-12">
<input wire:model="search" class="form-control" type="search" placeholder="Buscar usuario">
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<table class="table">
<thead>
<tr>
<th>Usuario</th>
<th>Equipo</th>
<th>Cursos</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $usuarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<?php echo e($usu->name); ?>
</td>
<td>
<?php echo e($usu->grupo); ?>
</td>
<td>
<?php $realizados = 0; ?>
<?php $__currentLoopData = $formularios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $for): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$countrespuesta = DB::table('formularios as fo')
->join('competencias as co','co.formulario_id','fo.id')
->join('interrogantes as in','in.competencia_id','co.id')
->join('respuestas as re','re.interrogante_id','in.id')
->join('users as us','re.usuario_id','us.id')
->where('fo.id',$for->id)->where('re.usuario_id',$usu->id)->count();
?>
<?php if($countrespuesta): ?>
<?php $realizados += 1; ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php echo e($realizados); ?> / <?php echo e(count($formularios)); ?>
</td>
<td>
<a href="/admin/reporteria/<?php echo e($usu->id); ?>"><button class="btn btn-success"><i class="fas fa-eye"></i></button></a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<div class="col-md-12">
<?php echo e($usuarios->links()); ?>
</div>
</div>
</div>
<?php /**PATH /var/www/html/eva.sumar.com.py/resources/views/livewire/reporterias.blade.php ENDPATH**/ ?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists