@if(!empty($temas) && count($temas) > 0)
    @foreach($temas as $tema)
        <div class="ForumTopic">
                            <span class="ForumTopic-type">
                                <a href="javascript:;" id="fav-{{ $tema->id }}" class="button-a" onclick="removeFavorito({{ $tema->id }})" tabindex="-1" title="Favorito">
                                    <i id="tema-{{ $tema->id }}" class="fa fa-star"></i>
                                </a>
                            </span>
            <a href="{{ 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="#">{{ $tema->created_at->diffForHumans() }}</span></span>
                                    <span class="ForumTopic-title">{{ $tema->nombre }}</span>
                                </span>
                            </span>
                <span class="ForumTopic-author">{{ $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>{{ count($tema->comentarios) }}</span></span>
                <span class="ForumTopic-timestamp">{{ $tema->created_at->diffForHumans() }}</span>
            </a>
        </div>
    @endforeach
    {{--<div class="text-right">--}}
    {{ $temas->links() }}
    {{--</div>--}}
@else
    <label class="no-existen">No existen temas creados</label>
@endif