Commit 63dd8d25 authored by José Rômulo's avatar José Rômulo
Browse files

Correções tela de resultado

parent f0a74ad5
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
<thead> <thead>
<tr> <tr>
<th scope="col" style="width: 100%;">Nome do projeto</th> <th scope="col" style="width: 100%;">Nome do projeto</th>
<th scope="col">Autor</th> <th scope="col">Proponente</th>
<th scope="col">Área</th> <th scope="col">Área</th>
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Av. Externo</th> <th scope="col">Avaliador Externo</th>
<th scope="col">Status</th> <th scope="col">Status</th>
</tr> </tr>
</thead> </thead>
...@@ -61,16 +61,9 @@ ...@@ -61,16 +61,9 @@
{{$trabalho->avaliadors->first()->user->name}} {{$trabalho->avaliadors->first()->user->name}}
@endif @endif
</td> </td>
@if($trabalho->avaliadors->first()->pivot->recomendacao == 'RECOMENDADO') @if($trabalho->avaliadors->count() > 0)
<td style="color:rgb(6, 85, 6)">
APROVADO
</td>
@elseif($trabalho->avaliadors->first()->pivot->recomendacao == 'NAO-RECOMENDADO')
<td style="color: darkred">
REPROVADO
</td>
@else
<td> <td>
{{$trabalho->avaliadors->first()->pivot->recomendacao}}
</td> </td>
@endif @endif
</tr> </tr>
......
...@@ -50,6 +50,10 @@ ...@@ -50,6 +50,10 @@
<a href="{{route('admin.analisar', ['evento_id' => $evento->id])}}" class="dropdown-item text-center"> <a href="{{route('admin.analisar', ['evento_id' => $evento->id])}}" class="dropdown-item text-center">
Analisar projetos Analisar projetos
</a> </a>
<hr class="dropdown-hr">
<a href="{{route('admin.showResultados', ['evento_id' => $evento->id])}}" class="dropdown-item text-center">
Resultados
</a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" class="dropdown-item dropdown-item-delete text-center" data-toggle="modal" data-target="#exampleModal{{ $evento->id }}"> <button type="button" class="dropdown-item dropdown-item-delete text-center" data-toggle="modal" data-target="#exampleModal{{ $evento->id }}">
......
...@@ -197,13 +197,15 @@ ...@@ -197,13 +197,15 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
@if($projeto->avaliadors->count() > 0)
@if($projeto->avaliadors->first()->pivot->recomendacao == 'RECOMENDADO') @if($projeto->avaliadors->first()->pivot->recomendacao == 'RECOMENDADO')
<input type="text" class="form-control" value="APROVADO" disabled style="color:rgb(6, 85, 6)"> <input type="text" class="form-control" value="RECOMENDADO" disabled style="color:rgb(6, 85, 6)">
@elseif($projeto->avaliadors->first()->pivot->recomendacao == 'NAO-RECOMENDADO') @elseif($projeto->avaliadors->first()->pivot->recomendacao == 'NAO-RECOMENDADO')
<input type="text" class="form-control" value="REPROVADO" disabled style="color: darkred"> <input type="text" class="form-control" value="NAO-RECOMENDADO" disabled style="color: darkred">
@else @else
<input type="text" class="form-control" value="" disabled> <input type="text" class="form-control" value="" disabled>
@endif @endif
@endif
</div> </div>
</div> </div>
......
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