Unverified Commit 974081c6 authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #530 from GuilhermeGz/master

Correção de erros
parents 6111c77a 8ee140bf
......@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Arquivo;
use App\AvaliacaoRelatorio;
use App\Notificacao;
use App\Substituicao;
......@@ -114,7 +115,11 @@ class AdministradorController extends Controller
$AvalRelatParcial = [];
$AvalRelatFinal = [];
foreach($trabalho->participantes as $participante) {
$avals = AvaliacaoRelatorio::where('arquivo_id', $participante->planoTrabalho->id)->get();
if(isset($participante->planoTrabalho)){
$avals = AvaliacaoRelatorio::where('arquivo_id', $participante->planoTrabalho->id)->get();
}else{
$avals = [];
}
foreach($avals as $aval){
if($aval->tipo == "Parcial"){
array_push($AvalRelatParcial,$aval);
......@@ -123,7 +128,14 @@ class AdministradorController extends Controller
}
}
}
//
// Verficação de pendencia de substituição
$aux = count(Substituicao::where('status','Em Aguardo')->whereIn('participanteSubstituido_id',$trabalho->participantes->pluck('id'))->get());
$flagSubstituicao = 1;
if($aux != 0){
$flagSubstituicao = -1;
}
$grandeAreas = GrandeArea::orderBy('nome')->get();
$hoje = Carbon::today('America/Recife');
......@@ -138,7 +150,8 @@ class AdministradorController extends Controller
'grandeAreas' => $grandeAreas,
'AvalRelatParcial' => $AvalRelatParcial,
'AvalRelatFinal' => $AvalRelatFinal,
'hoje' => $hoje,]);
'hoje' => $hoje,
'flagSubstituicao' =>$flagSubstituicao,]);
}
......@@ -668,14 +681,14 @@ class AdministradorController extends Controller
$aval = Avaliador::where('id', $request->avaliador_id)->first();
$trabalho = Trabalho::where('id', $request->trabalho_id)->first();
if($request->flag == 0){
if($aval->tipo == "Interno" && $aval->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3){
if(($aval->tipo == "Interno" && $aval->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3) || ($aval->tipo == null && $aval->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3 && ($aval->user->instituicao == "UFAPE" || $aval->user->instituicao == "Universidade Federal do Agreste de Pernambuco"))){
$aval->trabalhos()
->updateExistingPivot($trabalho->id,['acesso'=>2]);
}else{
$aval->trabalhos()->detach($trabalho);
}
}else{
if($aval->tipo == "Interno" && $aval->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3){
if(($aval->tipo == "Interno" && $aval->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3) || ($aval->tipo == null && $aval->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3 && ($aval->user->instituicao == "UFAPE" || $aval->user->instituicao == "Universidade Federal do Agreste de Pernambuco"))){
$aval->trabalhos()
->updateExistingPivot($trabalho->id,['acesso'=>1]);
}else{
......@@ -725,11 +738,12 @@ class AdministradorController extends Controller
}
if($request->avaliadores_externos_id != null){
foreach ($request->avaliadores_externos_id as $avaliador) {
$aval = Avaliador::find($avaliador);
if(Avaliador::where('id',$avaliador)->where('tipo',"Interno")->count()>0){
if(Avaliador::where('id',$avaliador)->where('tipo',"Interno")->count()>0 || (Avaliador::where('id',$avaliador)->where('tipo',null)->count()>0 && (($aval->user->instituicao == "UFAPE" || $aval->user->instituicao == "Universidade Federal do Agreste de Pernambuco"))) ){
if($aval->trabalhos()->where("trabalho_id",$trabalho->id)->first() != null){
$aval->trabalhos()
->updateExistingPivot($trabalho->id,['acesso'=>3]);
......@@ -813,6 +827,8 @@ class AdministradorController extends Controller
$user->markEmailAsVerified();
}
$trabalho = Trabalho::where('id', $request->trabalho_id)->first();
if($user->avaliadors == null){
$avaliador = new Avaliador();
$avaliador->tipo = $externoInterno;
......@@ -829,10 +845,14 @@ class AdministradorController extends Controller
$avaliador->save();
}
$trabalho = Trabalho::where('id', $request->trabalho_id)->first();
if($request->instituicao == "ufape"){
$trabalho->avaliadors()->attach($avaliador,['acesso'=>2]);
$evento->avaliadors()->syncWithoutDetaching($avaliador);
}else{
$trabalho->avaliadors()->attach($avaliador,['acesso'=>1]);
$evento->avaliadors()->syncWithoutDetaching($avaliador);
}
$trabalho->avaliadors()->attach($avaliador);
$evento->avaliadors()->syncWithoutDetaching($avaliador);
$trabalho->save();
$notificacao = Notificacao::create([
......
......@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Arquivo;
use App\Notificacao;
use App\Substituicao;
use App\Trabalho;
use App\User;
use Auth;
......@@ -120,8 +121,16 @@ class ArquivoController extends Controller
}
public function listar($id){
$trabalho = Trabalho::where('id',$id)->first();
$participantes = $trabalho->participantes;
// Verficação de pendencia de substituição
$aux = count(Substituicao::where('status','Em Aguardo')->whereIn('participanteSubstituido_id',$trabalho->participantes->pluck('id'))->get());
if($aux != 0){
return redirect()->back()->withErrors("A proposta ".$trabalho->titulo." possui substituições pendentes");
}
$arquivos = [];
foreach ($participantes as $participante){
array_push($arquivos, $participante->planoTrabalho);
......
......@@ -9,6 +9,7 @@ use App\GrandeArea;
use App\ParecerInterno;
use App\Participante;
use App\SubArea;
use App\Substituicao;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Trabalho;
......@@ -84,21 +85,20 @@ class AvaliadorController extends Controller
$trabalhosIn = [];
$aval = $user->avaliadors->where('user_id',$user->id)->first();
foreach ($aval->trabalhos->where('evento_id',$evento->id) as $trab){
if($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->acesso == 2
|| $aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->acesso == 3 ||
($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->acesso == null && $aval->tipo == "Interno")){
if($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->orderBy('created_at','DESC')->first()->acesso == 2
|| $aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->orderBy('created_at','DESC')->first()->acesso == 3 ||
($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->orderBy('created_at','DESC')->first()->acesso == null && $aval->tipo == "Interno")){
array_push($trabalhosIn,$aval->trabalhos()->where("trabalho_id",$trab->id)->first());
}
if ($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->acesso == 1 ||
$aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->acesso == 3 ||
($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->acesso == null && $aval->tipo == "Externo")){
if ($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->orderBy('created_at','DESC')->first()->acesso == 1 ||
$aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->orderBy('created_at','DESC')->first()->acesso == 3 ||
($aval->trabalhos()->where("trabalho_id",$trab->id)->first()->pivot->orderBy('created_at','DESC')->first()->acesso == null && $aval->tipo == "Externo")){
array_push($trabalhosEx,$aval->trabalhos()->where("trabalho_id",$trab->id)->first());
}
}
//dd();
return view('avaliador.listarTrabalhos', ['trabalhosEx'=>$trabalhosEx,'trabalhosIn'=>$trabalhosIn, 'evento'=>$evento]);
return view('avaliador.listarTrabalhos', ['trabalhosEx'=>$trabalhosEx,'trabalhosIn'=>$trabalhosIn, 'evento'=>$evento]);
}
......@@ -108,6 +108,12 @@ class AvaliadorController extends Controller
$avaliador = $user->avaliadors->where('user_id',$user->id)->first();
$trabalho = $avaliador->trabalhos->find($request->trabalho_id);
$evento = Evento::find($request->evento);
// Verficação de pendencia de substituição
$aux = count(Substituicao::where('status','Em Aguardo')->whereIn('participanteSubstituido_id',$trabalho->participantes->pluck('id'))->get());
if($aux != 0){
return redirect()->back()->withErrors("A proposta ".$trabalho->titulo." possui substituições pendentes");
}
return view('avaliador.parecer', ['trabalho'=>$trabalho, 'evento'=>$evento]);
}
......
......@@ -394,6 +394,14 @@ class TrabalhoController extends Controller
$participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
$users = User::whereIn('id', $participantesUsersIds)->get();
$arquivos = Arquivo::where('trabalhoId', $id)->get();
// Verficação de pendencia de substituição
$aux = count(Substituicao::where('status','Em Aguardo')->whereIn('participanteSubstituido_id',$projeto->participantes->pluck('id'))->get());
$flagSubstituicao = 1;
if($aux != 0){
$flagSubstituicao = -1;
}
return view('projeto.visualizar')->with(['projeto' => $projeto,
'grandeAreas' => $grandeAreas,
'areas' => $areas,
......@@ -407,6 +415,7 @@ class TrabalhoController extends Controller
'visualizar' => true,
'enum_turno' => Participante::ENUM_TURNO,
'areasTematicas' => $areasTematicas,
'flagSubstituicao' =>$flagSubstituicao,
]);
}
......
......@@ -15,6 +15,11 @@
<strong>{{ session('sucesso') }}</strong>
</div>
@endif
@if($errors->any())
<div class="alert alert-danger mt-1" >
{{$errors->first()}}
</div>
@endif
<div class="card" style="border-radius: 5px">
<div class="card-body" style="padding-top: 0.2rem;">
<div class="container">
......@@ -178,24 +183,26 @@
<div class="modal-header" style="overflow-x:auto; padding-left: 31px">
<h5 class="modal-title" id="exampleModalLabel" style="color:#1492E6">
Informações Participante
@if($participante->planoTrabalho->arquivado == false)
<a title="Arquivar" href='javascript:arquivar1{{$participante->id}}.submit()' >
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ed1212" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line></svg> </a>
<form method="GET" name='arquivar1{{$participante->id}}' action='{{route('arquivo.arquivar')}}' >
@csrf
<input value='{{$participante->planoTrabalho->id}}' name='arquivo_id' type='hidden'/>
<input value='1' name='arquivar_tipo' type='hidden'/>
</form>
@else
<a @if($trabalho->arquivado == true) style="pointer-events: none" @endif title="Desarquivar" href='javascript:arquivar2{{$participante->id}}.submit()'>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#808080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h5l2 3h9a2 2 0 0 1 2 2v11zM9.9 16.1L14 12M9.9 11.9L14 16"/></svg>
</a>
<form method="GET" name='arquivar2{{$participante->id}}' action='{{route('arquivo.arquivar')}}' >
@csrf
<input value='{{$participante->planoTrabalho->id}}' name='arquivo_id' type='hidden'/>
<input value='0' name='arquivar_tipo' type='hidden'/>
</form>
@if(isset($participante->planoTrabalho))
@if($participante->planoTrabalho->arquivado == false)
<a title="Arquivar" href='javascript:arquivar1{{$participante->id}}.submit()' >
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ed1212" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line></svg> </a>
<form method="GET" name='arquivar1{{$participante->id}}' action='{{route('arquivo.arquivar')}}' >
@csrf
<input value='{{$participante->planoTrabalho->id}}' name='arquivo_id' type='hidden'/>
<input value='1' name='arquivar_tipo' type='hidden'/>
</form>
@else
<a @if($trabalho->arquivado == true) style="pointer-events: none" @endif title="Desarquivar" href='javascript:arquivar2{{$participante->id}}.submit()'>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#808080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h5l2 3h9a2 2 0 0 1 2 2v11zM9.9 16.1L14 12M9.9 11.9L14 16"/></svg>
</a>
<form method="GET" name='arquivar2{{$participante->id}}' action='{{route('arquivo.arquivar')}}' >
@csrf
<input value='{{$participante->planoTrabalho->id}}' name='arquivo_id' type='hidden'/>
<input value='0' name='arquivar_tipo' type='hidden'/>
</form>
@endif
@endif
</h5>
......@@ -496,8 +503,13 @@
<div class="form-row mt-3">
<div class="col-sm-9"><h5 style="color: #234B8B; font-weight: bold">Relatórios</h5></div>
<div class="col-sm-3 text-sm-right">
<a href="{{route('planos.listar', ['id' => $trabalho->id])}}" class="button">Listar
Relatórios</a>
@if($flagSubstituicao == 1)
<a href="{{route('planos.listar', ['id' => $trabalho->id])}}" class="button">Listar
Relatórios</a>
@else
<a href="{{route('planos.listar', ['id' => $trabalho->id])}}" class="button" title="Existe uma Substituição pendente" style="color: red">Listar
Relatórios</a>
@endif
</div>
</div>
<hr style="border-top: 1px solid#1492E6">
......@@ -570,7 +582,7 @@
<div class="modal-header modal-header-submeta">
<div class="col-md-8" style="padding-left: 0px">
<h5 class="modal-title titulo-table" id="avaliacaoModalLongTitle">
Seleciones o(s) avaliador(es)</h5>
@if(isset($participante->planoTrabalho)) Seleciones o(s) avaliador(es) @else Pendências de Substituição @endif</h5>
</div>
<div class="col-md-4" style="text-align: right">
<button type="button" class="close" aria-label="Close"
......@@ -580,6 +592,7 @@
</button>
</div>
</div>
@if(isset($participante->planoTrabalho))
<div class="modal-body">
@if (session('error'))
<div class="col-md-12">
......@@ -648,6 +661,11 @@
</form>
</div>
@else
<div class="modal-body">
<h4>Existem solicitações de substituição pendentes, por favor verifique-as antes de prosseguir</h4>
</div>
@endif
</div>
</div>
</div>
......@@ -849,7 +867,8 @@
style="height: 200px;font-size: 15px">
@foreach ($trabalho->avaliadors as $avaliador)
@if($avaliador->tipo == "Interno" && $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 1)
@if(($avaliador->tipo == "Interno" && $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 1) ||
(($avaliador->user->instituicao == "UFAPE" || $avaliador->user->instituicao == "Universidade Federal do Agreste de Pernambuco") && ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 1) ))
<option value="{{ $avaliador->id }}">{{ $avaliador->user->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
......@@ -857,7 +876,7 @@
@endif
@endforeach
@foreach ($trabalho->aval as $avaliador)
@if($avaliador->tipo == "Interno")
@if($avaliador->tipo == "Interno" || $avaliador->user->instituicao == "UFAPE" || $avaliador->user->instituicao == "Universidade Federal do Agreste de Pernambuco")
<option value="{{ $avaliador->id }}"> {{ $avaliador->user->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
......@@ -920,7 +939,8 @@
</div>
<div class="row justify-content-start" style="alignment: center">
@foreach($trabalho->avaliadors as $avaliador)
@if($avaliador->tipo == 'Interno' && ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 2 || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3))
@if(($avaliador->tipo == 'Interno' && ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 2 || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3))
|| (($avaliador->user->instituicao == "UFAPE" || $avaliador->user->instituicao == "Universidade Federal do Agreste de Pernambuco") && $avaliador->tipo == null && ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 2 || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3)))
<div class="col-sm-1">
<img src="{{asset('img/icons/usuario.svg')}}" style="width:60px" alt="">
</div>
......@@ -972,7 +992,8 @@
</div>
<div class="row justify-content-start" style="alignment: center">
@foreach($trabalho->avaliadors as $avaliador)
@if( ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null && $avaliador->tipo == "Externo") || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 1 || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3)
@if( ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null && $avaliador->tipo == "Externo") || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 1 || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3
|| (($avaliador->user->instituicao != "UFAPE" && $avaliador->user->instituicao != "Universidade Federal do Agreste de Pernambuco") && $avaliador->tipo == null && ($avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == null || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 1 || $avaliador->trabalhos()->where("trabalho_id",$trabalho->id)->first()->pivot->acesso == 3)))
<div class="col-sm-1">
<img src="{{asset('img/icons/usuario.svg')}}" style="width:60px" alt="">
</div>
......
......@@ -3,6 +3,15 @@
@section('content')
<div class="container">
@if($errors->any())
<div class="col-sm-12">
<br>
<div class="alert alert-danger">
<p> {{$errors->first()}}</p>
</div>
</div>
@endif
@if(isset($mensagem))
<div class="col-sm-12">
<br>
......
......@@ -22,7 +22,7 @@
</div>
<div class="col-sm-5 mt-4">
<h5 class="mb-0">Nome: {{$participante->user->name}}</h5>
<h5 class="mb-0">Plano: {{$participante->planoTrabalho->titulo}}</h5>
<h5 class="mb-0">Plano: @if(isset($participante->planoTrabalho)) {{$participante->planoTrabalho->titulo}} @else Plano Em Substituição @endif </h5>
<h6>
<a href="" data-toggle="modal" data-target="#modalVizuParticipante{{$participante->id}}" class="button">Informações</a>
</h6>
......
......@@ -6,7 +6,12 @@
<div class="form-row mt-3">
<div class="col-sm-9"><h5 style="color: #234B8B; font-weight: bold">Relatórios</h5></div>
<div class="col-sm-3 text-sm-right" >
<a href="{{route('planos.listar', ['id' => $projeto->id])}}" class="button">Listar Relatórios</a>
@if($flagSubstituicao == 1)
<a href="{{route('planos.listar', ['id' => $projeto->id])}}" class="button">Listar Relatórios</a>
@else
<a href="{{route('planos.listar', ['id' => $projeto->id])}}" class="button" title="Existe uma Substituição pendente" style="color: red">Listar Relatórios</a>
@endif
</div>
</div>
<hr style="border-top: 1px solid#1492E6">
......
......@@ -14,6 +14,11 @@
{{ session('mensagem') }}
</div>
@endif
@if($errors->any())
<div class="alert alert-danger mt-1" >
{{$errors->first()}}
</div>
@endif
<div class="row justify-content-center" style="margin-top: 4rem">
......@@ -30,7 +35,7 @@
@component('projeto.formularioVisualizar.participantes2', ['projeto' => $projeto, 'edital' => $edital])
@endcomponent
@component('projeto.formularioVisualizar.relatório',['edital' => $edital,'projeto' => $projeto])
@component('projeto.formularioVisualizar.relatorio',['edital' => $edital,'projeto' => $projeto,'flagSubstituicao' =>$flagSubstituicao])
@endcomponent
@component('projeto.formularioVisualizar.resultado2',
......
......@@ -3,6 +3,15 @@
@section('content')
<div class="container">
@if($errors->any())
<div class="col-sm-12">
<br>
<div class="alert alert-danger">
<p>{{$errors->first()}}</p>
</div>
</div>
@endif
@if(isset($mensagem))
<div class="col-sm-12">
<br>
......@@ -88,7 +97,7 @@
</a>
<div class="dropdown-menu">
@if($hoje <= $projeto->evento->inicioProjeto)
@if($hoje <= $projeto->evento->fimSubmissao)
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
Editar
</a>
......
......@@ -3,6 +3,14 @@
@section('content')
<div class="container">
@if($errors->any())
<div class="col-sm-12">
<br>
<div class="alert alert-danger">
<p>{{$errors->first()}}</p>
</div>
</div>
@endif
@if(isset($mensagem))
<div class="col-sm-12">
<br>
......@@ -109,7 +117,7 @@
</a>
<div class="dropdown-menu">
@if($hoje <= $edital->inicioProjeto)
@if($hoje <= $edital->fimSubmissao)
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
Editar
</a>
......
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