Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
4ecce3ff
Commit
4ecce3ff
authored
Jun 04, 2022
by
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
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
4ecce3ff
...
...
@@ -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
,
'
mytim
e'
=>
$
mytim
e
'
hoj
e'
=>
$
hoj
e
]);
}
...
...
@@ -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
,
'
mytim
e'
=>
$
mytim
e
'
hoj
e'
=>
$
hoj
e
]);
}
...
...
resources/views/evento/visualizarEvento.blade.php
View file @
4ecce3ff
...
...
@@ -110,8 +110,8 @@
<
div
class
=
"card-body"
>
<
div
class
=
"form-row"
>
@
if
(
$evento
->
inicioSubmissao
<=
$
mytim
e
)
@
if
(
$
mytim
e
<
$evento
->
fimSubmissao
)
@
if
(
$evento
->
inicioSubmissao
<=
$
hoj
e
)
@
if
(
$
hoj
e
<
=
$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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment