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