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
47872756
Commit
47872756
authored
May 29, 2021
by
Carlos André
Browse files
Merge branch 'modificacoes_layout_5' of
https://github.com/lmts-ufape/submeta
into mod_Lay_5
parents
1a0b5c70
af4a2bb4
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
47872756
...
...
@@ -29,16 +29,22 @@ use Illuminate\Support\Facades\Mail;
class
EventoController
extends
Controller
{
public
function
index
()
public
function
index
(
Request
$request
)
{
//
if
(
$request
->
buscar
==
null
){
$eventos
=
Evento
::
all
();
// $comissaoEvento = ComissaoEvento::all();
// $eventos = Evento::where('coordenadorId', Auth::user()->id)->get();
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'coordenador.home'
,[
'eventos'
=>
$eventos
,
'hoje'
=>
$hoje
]);
return
view
(
'coordenador.home'
,[
'eventos'
=>
$eventos
,
'hoje'
=>
$hoje
,
'palavra'
=>
''
,
'flag'
=>
'false'
]);
}
else
{
$eventos
=
Evento
::
where
(
'nome'
,
'ilike'
,
'%'
.
$request
->
buscar
.
'%'
)
->
get
();
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'coordenador.home'
,[
'eventos'
=>
$eventos
,
'hoje'
=>
$hoje
,
'palavra'
=>
$request
->
buscar
,
'flag'
=>
'true'
]);
}
}
...
...
resources/views/coordenador/home.blade.php
View file @
47872756
...
...
@@ -6,13 +6,33 @@
{{
--
titulo
da
página
--
}}
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 3rem; text-align:center"
>
<
div
class
=
"col-md-12"
style
=
"margin-bottom: -0.5rem"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"row justify-content-between"
>
<
div
class
=
"col-sm"
></
div
>
<
div
class
=
"col-sm"
style
=
"margin-bottom: 10px"
>
@
if
(
$flag
==
'false'
)
@
if
(
count
(
$eventos
)
>
0
)
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Editais
</
h5
>
@
else
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Edital
</
h5
>
@
endif
@
else
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Resultado
da
busca
por
:
<
span
style
=
"font-style: italic; font-weight:bold"
>
{{
$palavra
}}
</
span
></
h5
>
@
endif
</
div
>
<
div
class
=
"col-sm"
>
<
form
action
=
"
{
{route('coord.home')}
}
"
method
=
"get"
>
@
csrf
<
div
class
=
"btn-group"
>
<
input
type
=
"text"
class
=
"form-control shadow-sm"
name
=
"buscar"
placeholder
=
"Digite o nome do edital"
value
=
"
{
{$palavra}
}
"
style
=
"margin-right: 5px;border-radius:8px; border-color:#fff;"
>
<
button
type
=
"submit"
class
=
"btn btn-light shadow-sm"
style
=
"border-radius: 8px"
><
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
width
=
"20px"
></
button
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-12"
>
<
hr
>
</
div
>
...
...
@@ -147,7 +167,14 @@
<
div
class
=
"col-md-12"
>
<
img
src
=
"
{
{asset('img/icons/logo_projeto.png')}
}
"
alt
=
"..."
width
=
"190px"
>
</
div
>
@
if
(
$flag
==
'true'
)
<
div
class
=
"col-md-5"
style
=
"text-align: center;margin-top:1rem"
>
<
h5
>
Nenhum
edital
encontrado
!</
h5
>
<
a
href
=
"
{
{route('coord.home')}
}
"
>
Clique
aqui
para
ver
todos
os
editais
</
a
>
</
div
>
@
else
<
div
class
=
"col-md-5"
style
=
"text-align: center;margin-top:1rem"
><
h5
>
Nenhum
edital
cadastrado
!</
h5
></
div
>
@
endif
</
div
>
@
endif
</
div
>
...
...
resources/views/evento/visualizarEvento.blade.php
View file @
47872756
...
...
@@ -233,7 +233,7 @@
</
div
>
<
div
class
=
"form-group"
style
=
"width: 100%"
>
<
div
class
=
"d-flex justify-content-between"
style
=
"width: 100%"
>
<
div
><
h5
style
=
" font-size:19px; margin-top:9px"
>
Outros
documentos
</
h5
></
div
>
<
div
><
h5
style
=
" font-size:19px; margin-top:9px"
>
Outros
<
br
>
documentos
</
h5
></
div
>
<
div
>
<
a
class
=
"btn btn-light"
href
=
"{{route('baixar.modelos', ['id' =>
$evento->id
])}}"
target
=
"_new"
style
=
""
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
><
br
>
...
...
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