Unverified Commit 8aebe419 authored by José Rômulo's avatar José Rômulo Committed by GitHub
Browse files

Merge pull request #164 from J-Romulo/master

Correções visualizar parecer para avaliador
parents d4e489d3 ea8c0a0f
......@@ -80,7 +80,7 @@ class AvaliadorController extends Controller
}else{
$anexoParecer = $request->anexoParecer;
$path = 'anexoParecer/' . $avaliador->id . $trabalho->id . '/';
$nome = "parecer.pdf";
$nome = $anexoParecer->getClientOriginalName();
Storage::putFileAs($path, $anexoParecer, $nome);
$anexoParecer = $path . $nome;
......
......@@ -86,9 +86,15 @@
<form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST">
@csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" >
@if($trabalho->pivot->parecer == null)
<button type="submit" class="btn btn-primary mr-2 ml-2" >
Parecer
</button>
@else
<button type="submit" class="btn btn-secondary mr-2 ml-2" >
Enviado
</button>
@endif
</form>
</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