Commit 4ecce3ff authored by unknown's avatar unknown
Browse files

Correção de erro no botão submeter proposta(O botão não era mostrado no ultimo dia de submissão)

parent 5f4cfcb8
......@@ -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
]);
}
......
......@@ -110,8 +110,8 @@
<div class="card-body">
<div class="form-row">
@if($evento->inicioSubmissao <= $mytime)
@if($mytime < $evento->fimSubmissao)
@if($evento->inicioSubmissao <= $hoje)
@if($hoje <= $evento->fimSubmissao)
<div class="col-md-12" style="margin-bottom:18px">
@if(false) {{-- Agendamento para o dia 01/07/2021 as 12:30:00--}}
......@@ -286,7 +286,7 @@
<!--
{{--
<div class="row justify-content-center" style="margin: 20px 0 20px 0">
<div class="col-md-6 botao-form-left" style="">
......@@ -314,7 +314,7 @@
</div>
-->
--}}
@endsection
......
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