Commit d2312c7f authored by unknown's avatar unknown
Browse files

Adição de info. na listagem de projetos, para que o Coordenador possa...

Adição de info. na listagem de projetos, para que o Coordenador possa visualizar quando um relatorio final foi enviado (PIBEX)
parent 66556b90
......@@ -112,15 +112,15 @@ class AdministradorController extends Controller
$trabalhosRelatorioFinal = [];
if($evento->tipo == "PIBEX"){
if($evento->tipo == "PIBEX") {
foreach($trabalhos->get() as $trabalho) {
$arquivos_id = Arquivo::where("trabalhoId", $trabalho->id)->get()->pluck('id');
$avaliacaoRelatorio = AvaliacaoRelatorio::whereIn("arquivo_id", $arquivos_id)->where("arquivoAvaliacao", "!=", null)->first();
if(!empty($avaliacaoRelatorio)){
foreach($trabalho->participantes as $participante) {
if(isset($participante->planoTrabalho) && $participante->planoTrabalho->relatorioFinal != null) {
array_push($trabalhosRelatorioFinal, $trabalho->id);
}
}
}
}
// $participantes = Participante::where('trabalho_id', $id)->get();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
......
......@@ -31,6 +31,7 @@
</tr>
</thead>
@foreach($arquivos as $arquivo)
@if(isset($arquivo))
<tbody>
<td style="text-align: center;" title="{{$arquivo->trabalho->titulo}}">{{$arquivo->trabalho->titulo}}</td>
<td style="text-align: center;" title="{{$arquivo->trabalho->proponente->user->name}}">{{$arquivo->trabalho->proponente->user->name}}</td>
......@@ -221,6 +222,7 @@
</div>
</div>
</tbody>
@endif
@endforeach
</table>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment