@if($anuncios->isNotEmpty())

Anuncios del grupo

@foreach($anuncios as $anuncio)

{{ $anuncio->titulo }}

{{ $anuncio->mensaje }}

{{ $anuncio->publicado_at->diffForHumans() }}
@endforeach
@endif @if($encuestas->isNotEmpty())

Encuestas y evaluación docente

@foreach($encuestas as $encuesta)@php($answered=$encuesta->anonima ? $encuesta->respuestas->contains('token_anonimo',hash('sha256',$encuesta->id.'|'.auth()->id().'|'.config('app.key'))) : $encuesta->respuestas->contains('user_id',auth()->id()))

{{ $encuesta->titulo }}

{{ $encuesta->pregunta }}

@if($answered)

Respuesta registrada.

@else
@csrf
@endif
@endforeach
@endif