<?php if(!empty($temas) && count($temas) > 0): ?>
    <?php $__currentLoopData = $temas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tema): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="ForumTopic">
                            <span class="ForumTopic-type">
                                <a href="javascript:;" id="fav-<?php echo e($tema->id); ?>" class="button-a" onclick="removeFavorito(<?php echo e($tema->id); ?>)" tabindex="-1" title="Favorito">
                                    <i id="tema-<?php echo e($tema->id); ?>" class="fa fa-star"></i>
                                </a>
                            </span>
            <a href="<?php echo e(url('foro/tema',['id' => $tema->id])); ?>" class="ForumTopic-details">
                            <span class="ForumTopic-heading">
                                <span class="ForumTopic-title--wrapper">
                                    <span class="ForumTopic-timestamp on-mobile"><span class="ForumTopic-timestamp--lastPost" href="#"><?php echo e($tema->created_at->diffForHumans()); ?></span></span>
                                    <span class="ForumTopic-title"><?php echo e($tema->nombre); ?></span>
                                </span>
                            </span>
                <span class="ForumTopic-author"><?php echo e($tema->usuario->nombres . ' ' . $tema->usuario->apellido_paterno . ' ' . $tema->usuario->apellido_materno); ?></span>
                <span class="ForumTopic-replies"><i class="icon-bubbles" style="margin-right: .25rem;"></i><span><?php echo e(count($tema->comentarios)); ?></span></span>
                <span class="ForumTopic-timestamp"><?php echo e($tema->created_at->diffForHumans()); ?></span>
            </a>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    
    <?php echo e($temas->links()); ?>

    
<?php else: ?>
    <label class="no-existen">No existen temas creados</label>
<?php endif; ?>