diff --git a/app/Http/Controllers/ArquivoController.php b/app/Http/Controllers/ArquivoController.php index 0d70be06d8878804cce81a49e6b3c49e5ecb12ad..cbdcf188ac822252e60dddcd01618283fbdcf91e 100755 --- a/app/Http/Controllers/ArquivoController.php +++ b/app/Http/Controllers/ArquivoController.php @@ -128,7 +128,7 @@ class ArquivoController extends Controller } $hoje = Carbon::today('America/Recife'); $hoje = $hoje->toDateString(); - return view('planosTrabalho.listar')->with(['arquivos' => $arquivos, 'hoje' => $hoje]); + return view('planosTrabalho.listar')->with(['arquivos' => $arquivos, 'hoje' => $hoje, 'trabalho' => $trabalho]); } public function anexarRelatorio(Request $request){ diff --git a/app/Http/Controllers/EventoController.php b/app/Http/Controllers/EventoController.php index afe9be1c6d8d76a9b9058204efb01494a0479b6a..6ed85bd5d8eb0d83e47507f839d7ccca32826d03 100755 --- a/app/Http/Controllers/EventoController.php +++ b/app/Http/Controllers/EventoController.php @@ -323,7 +323,9 @@ class EventoController extends Controller $trabalhosId = Trabalho::where('evento_id', $evento->id)->select('id')->get(); - $mytime = Carbon::now('America/Recife'); + + $hoje = Carbon::today('America/Recife'); + $hoje = $hoje->toDateString(); // dd(false); return view('evento.visualizarEvento', [ 'evento' => $evento, @@ -332,7 +334,7 @@ class EventoController extends Controller 'hasTrabalho' => $hasTrabalho, // 'hasTrabalhoCoautor' => $hasTrabalhoCoautor, 'hasFile' => $hasFile, - 'mytime' => $mytime + 'hoje' => $hoje ]); } @@ -345,7 +347,8 @@ class EventoController extends Controller $trabalhos = null; $trabalhosCoautor = null; - $mytime = Carbon::now('America/Recife'); + $hoje = Carbon::today('America/Recife'); + $hoje = $hoje->toDateString(); // dd(false); return view('evento.visualizarEvento', [ 'evento' => $evento, @@ -354,7 +357,7 @@ class EventoController extends Controller 'hasTrabalho' => $hasTrabalho, 'hasTrabalhoCoautor' => $hasTrabalhoCoautor, 'hasFile' => $hasFile, - 'mytime' => $mytime + 'hoje' => $hoje ]); } diff --git a/resources/views/administrador/analisarProposta.blade.php b/resources/views/administrador/analisarProposta.blade.php index 46f4d6c31dcfbfa70206ea7aa9b9c3c8ea31f48c..f58cf7817bc5c4afc4a09c041488273581762ece 100644 --- a/resources/views/administrador/analisarProposta.blade.php +++ b/resources/views/administrador/analisarProposta.blade.php @@ -788,7 +788,7 @@
-
+
@@ -810,7 +810,7 @@
-
+ +
+ +
@@ -901,10 +905,10 @@ @if($parecerInterno == null) Pendente @else Avaliado @endif - {{--
+
Remover - --}} +
Reenviar convite @@ -940,10 +944,10 @@ href="{{ route('admin.visualizarParecerInterno', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id]) }}">Avaliado @endif @endif - {{--
+
Remover - --}} +
Reenviar convite @@ -1882,4 +1886,39 @@ } } + + @endsection diff --git a/resources/views/evento/visualizarEvento.blade.php b/resources/views/evento/visualizarEvento.blade.php index 0036b97077228e95d7cd45314a54418a64e7d6f3..e0ddb43489bf74d70c0249521e55f71fb41071bb 100755 --- a/resources/views/evento/visualizarEvento.blade.php +++ b/resources/views/evento/visualizarEvento.blade.php @@ -110,9 +110,9 @@
- @if($evento->inicioSubmissao <= $mytime) - @if($mytime < $evento->fimSubmissao) - + @if($evento->inicioSubmissao <= $hoje) + @if($hoje <= $evento->fimSubmissao) +
@if(false) {{-- Agendamento para o dia 01/07/2021 as 12:30:00--}} ... Submeter proposta @@ -286,7 +286,7 @@ - +--}} @endsection diff --git a/resources/views/planosTrabalho/listar.blade.php b/resources/views/planosTrabalho/listar.blade.php index a06e7920405877678f3a5aa72f53cc860a41ca99..c292884bed879fdc8be4319e1202d0158c8d9340 100644 --- a/resources/views/planosTrabalho/listar.blade.php +++ b/resources/views/planosTrabalho/listar.blade.php @@ -24,7 +24,7 @@ Relatório Final - + @foreach($arquivos as $arquivo) @@ -34,36 +34,49 @@ @if((Auth::user()->proponentes != null) && ($arquivo->relatorioParcial == null) && ($arquivo->trabalho->evento->dt_inicioRelatorioParcial <= $hoje) && ($hoje <= $arquivo->trabalho->evento->dt_fimRelatorioParcial)) - + @if($arquivo->arquivado) + + + @elseif($trabalho->status == "reprovado") + + @else + + @endif @else @if($arquivo->relatorioParcial != null) @elseif($arquivo->arquivado) + @elseif($trabalho->status == "reprovado") + @else @endif @endif - + @if((Auth::user()->proponentes != null) && ($arquivo->relatorioFinal == null) && ($arquivo->trabalho->evento->dt_inicioRelatorioFinal <= $hoje) && ($hoje <= $arquivo->trabalho->evento->dt_fimRelatorioFinal)) - + @if($arquivo->arquivado) + + @elseif($trabalho->status == "reprovado") + + @else + + @endif @else - @if($arquivo->relatorioParcial != null) - + @if($arquivo->relatorioFinal != null) + @elseif($arquivo->arquivado) - + + @elseif($trabalho->status == "reprovado") + @else - + @endif @endif @@ -125,7 +138,7 @@ @if((Auth::user()->proponentes != null) && ($arquivo->trabalho->evento->dt_inicioRelatorioParcial <= $hoje) && ($hoje <= $arquivo->trabalho->evento->dt_fimRelatorioParcial)) - + @endif