Commit f4ded250 authored by Lucas Henrique's avatar Lucas Henrique
Browse files

Adicionando Plano de Trabalho em um projeto sem discentes na visão dos avaliadores

parent d5c7f4f2
...@@ -85,6 +85,14 @@ ...@@ -85,6 +85,14 @@
</a> </a>
</td> </td>
<td> <td>
@if ($evento->numParticipantes == 0)
@php
$planoTrabalho = $trabalho->proponente->planoTrabalho
@endphp
<a href="{{ route('baixar.plano', ['id' => $planoTrabalho->id]) }}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light">
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:15px">
</a>
@else
@foreach( $trabalho->participantes as $participante) @foreach( $trabalho->participantes as $participante)
@php @php
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){ if( App\Arquivo::where('participanteId', $participante->id)->first() != null){
...@@ -101,6 +109,7 @@ ...@@ -101,6 +109,7 @@
Não planos de trabalho. Não planos de trabalho.
@endif @endif
@endforeach @endforeach
@endif
</td> </td>
<td> <td>
<div class="row justify-content-center"> <div class="row justify-content-center">
...@@ -187,6 +196,14 @@ ...@@ -187,6 +196,14 @@
</a> </a>
</td> </td>
<td style="text-align: center"> <td style="text-align: center">
@if ($evento->numParticipantes == 0)
@php
$planoTrabalho = $trabalho->proponente->planoTrabalho
@endphp
<a href="{{ route('baixar.plano', ['id' => $planoTrabalho->id]) }}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light">
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:15px">
</a>
@else
@foreach( $trabalho->participantes as $participante) @foreach( $trabalho->participantes as $participante)
@php @php
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){ if( App\Arquivo::where('participanteId', $participante->id)->first() != null){
...@@ -203,6 +220,7 @@ ...@@ -203,6 +220,7 @@
Não planos de trabalho. Não planos de trabalho.
@endif @endif
@endforeach @endforeach
@endif
</td> </td>
<td style="text-align: center"> <td style="text-align: center">
@if($trabalho->pivot->recomendacao == 'RECOMENDADO') @if($trabalho->pivot->recomendacao == 'RECOMENDADO')
......
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