<?php $__env->startSection('content'); ?>
<div class="panel-heading" style="margin-top:16px;">
    <p>Bienvenido <?php echo e(Auth::user()->name); ?></p>
    <p>Seleccione uno o varios perfiles para ver los candidatos inscritos.   </p>
</div>

<div class="panel-body">
    <div class="form-group">
        <div class="col-md-8">
          <a href="<?php echo e(env('APP_URL')); ?>admin/candidatos"> <button class="btn btn-warning">
              Atrás
          </button></a>
        </div>

		<div class="col-md-3">
            <form method="get" action="<?php echo e(env('APP_URL')); ?>auth/logout">
                <?php echo csrf_field(); ?>

                <button type="submit" class="btn btn-danger">
                    Cerrar sesión
                </button>

            </form>
        </div>
    </div>
</div>

<div class="panel-heading">
    <strong>Resumen de correos fallidos</strong>
</div>
<div class="panel-body">
    <table id="candidates" class="datatable table table-striped">
        <thead>
            <tr>
                <th style="text-align: center">#id</th>
                <th style="text-align: center">Tipo</th>
                <th style="text-align: center">Usuario</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($correos as $correo): ?>
            <tr data-id="<?php echo e($correo->id); ?>" class="candidate_row">
                <td style="text-align: center">
                    <?php echo e($correo->id); ?>

                </td>
                <td style="text-align: center">
                    <?php echo e($correo->tipo); ?>

                </td>
                <td style="text-align: center">
                    <?php echo e($correo->usuario); ?>

                </td>
                <td style="text-align: center">
                    <form method="post" action="<?php echo e(env('APP_URL')); ?>admin/candidatos/emails/resend/<?php echo e($correo->id); ?>" style="margin:20px 0">
                        <?php echo csrf_field(); ?>

                        <button type="submit" data-id="<?php echo e($correo->id); ?>" class="btn btn-primary btn-sm">
                            <i class="fa fa-refresh" aria-hidden="true"> Reenviar</i>
                        </button>
                    </form>
                </td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>

<script type="text/javascript">
    (function () {
        // Script vacío - sin dependencias de jQuery
    })();

</script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('unal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>