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
5250d353
Unverified
Commit
5250d353
authored
May 29, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
May 29, 2020
Browse files
Merge pull request #5 from lmts-ufape/submeter
Funcionalidades básicas
parents
5de5a599
96ffb16f
Changes
109
Hide whitespace changes
Inline
Side-by-side
resources/views/coordenador/home.blade.php
View file @
5250d353
...
@@ -8,15 +8,9 @@
...
@@ -8,15 +8,9 @@
<
div
class
=
"row justify-content-center titulo"
>
<
div
class
=
"row justify-content-center titulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-8"
>
<
h1
>
Eventos
</
h1
>
<
h3
>
Editais
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('comissoes')}
}
"
class
=
"btn btn-primary"
>
Comissões
</
a
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Novo
Evento
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -38,6 +32,7 @@
...
@@ -38,6 +32,7 @@
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
{{
$evento
->
nome
}}
{{
$evento
->
nome
}}
{{
--
@
if
(
Auth
::
user
()
->
tipo
==
"administrador"
||
Auth
::
user
()
->
tipo
==
"administradorResponsavel"
)
--
}}
@
can
(
'isCoordenador'
,
$evento
)
@
can
(
'isCoordenador'
,
$evento
)
<
div
class
=
"btn-group dropright dropdown-options"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
a
id
=
"options"
class
=
"dropdown-toggle"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
...
@@ -64,6 +59,7 @@
...
@@ -64,6 +59,7 @@
</
div
>
</
div
>
</
div
>
</
div
>
@
endcan
@
endcan
{{
--
@
endif
--
}}
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -72,20 +68,12 @@
...
@@ -72,20 +68,12 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
p
class
=
"card-text"
>
<
p
class
=
"card-text"
>
<
strong
>
Realização
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
<
br
>
<
strong
>
Submissão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
<
br
>
<
strong
>
Submissão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
<
strong
>
Resultado
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
resultado
))}}
<
br
>
</
p
>
</
p
>
<
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
img
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
style
=
"width:15px"
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
</
div
>
</
div
>
</
p
>
<
p
>
<
p
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
Visualizar
Evento
</
a
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
Visualizar
Evento
</
a
>
</
p
>
</
p
>
...
...
resources/views/coordenadorComissao/editais.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
10
/
05
/
2020
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
{{
--
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
--
}}
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('coord.detalhesEvento', ['eventoId' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"
{
{route('evento.editar',$evento->id)}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/coordenadorComissao/index.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
</
h2
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"{{ route('coordenador.editais') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Usuários
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
resources/views/coordenadorComissao/listarUsuarios.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Usuarios
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$usuarios
as
$usuario
)
<
tr
>
<
td
>
{{
$usuario
->
user
->
name
}}
</
td
>
<
td
>
{{
$usuario
->
user
->
email
}}
</
td
>
<
td
>
<
form
id
=
"form{{
$usuario->user
->id }}"
>
@
csrf
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
id
=
"button{{
$usuario->user
->id }}"
onclick
=
"permissao({{
$usuario->user
->id }});"
data
-
target
=
"#exampleModal{{
$usuario->user
->id }}"
>
Atribuir
Permissões
</
button
>
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"exampleModal{{
$usuario->user
->id }}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Mudar
Permissão
{{
$usuario
->
user
->
id
}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"custom-control custom-switch"
>
<
input
type
=
"checkbox"
name
=
"avaliador"
value
=
"{{
$usuario->user
->id }}"
checked
=
""
onclick
=
"myFunction({{
$usuario->user
->id }})"
class
=
"custom-control-input switch"
id
=
"{{
$usuario->user
->id }}"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"{{
$usuario->user
->id }}"
id
=
"usuario{{
$usuario->user
->id }}"
>
<
label
class
=
"custom-control-label"
for
=
"{{
$usuario->user
->id }}"
>
Avaliador
</
label
>
</
div
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Close
</
button
>
<
button
type
=
"submit"
id
=
"atribuir_id"
data
-
dismiss
=
"modal"
class
=
"btn btn-primary"
>
Save
changes
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
form
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
function
myFunction
(
id
)
{
var
checkBox
=
document
.
getElementById
(
id
);
let
dados
=
$
(
'#form'
+
id
)
.
serialize
()
// let dados = document.getElementById("usuario"+id).value;
console
.
log
(
dados
)
//ajax
$
.
ajax
({
type
:
'post'
,
url
:
'http://submeta.test/adminResp/atribuir'
,
data
:
dados
,
//x-www-form-urlencoded
dataType
:
'json'
,
success
:
dados
=>
{
console
.
log
(
dados
)
},
error
:
erro
=>
{
console
.
log
(
erro
)
}
})
}
function
permissao
(
id
)
{
var
checkBox
=
document
.
getElementById
(
id
);
// console.log('#atribuir_id'+id);
// console.log($('#'+id).attr('checked'))
let
dados
=
$
(
'#form'
+
id
)
.
serialize
()
//let dados = $('form').serialize()
$
.
ajax
({
type
:
'post'
,
url
:
'http://submeta.test/adminResp/verPermissao'
,
data
:
dados
,
//x-www-form-urlencoded
dataType
:
'json'
,
success
:
dados
=>
{
checkBox
.
checked
=
dados
[
0
];
console
.
log
(
checkBox
.
checked
)
},
error
:
erro
=>
{
console
.
log
(
erro
)
}
})
}
$
(
document
)
.
ready
(()
=>
{
})
</
script
>
@
endsection
resources/views/coordenadorComissao/usuarios.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
</
h2
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.coord') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Coordenador
de
Comitê
de
Avaliação
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.avaliador') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Avaliador
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.proponente') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Proponente
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.participante') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Participante
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
resources/views/evento/criarEvento.blade.php
View file @
5250d353
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
<
div
class
=
"row titulo"
>
<
h1
>
Novo
E
vento
</
h1
>
<
h1
>
Novo
E
dital
</
h1
>
</
div
>
</
div
>
<
form
action
=
"
{
{route('evento.criar')}
}
"
method
=
"POST"
enctype
=
"multipart/form-data"
>
<
form
action
=
"
{
{route('evento.criar')}
}
"
method
=
"POST"
enctype
=
"multipart/form-data"
>
...
@@ -25,34 +25,13 @@
...
@@ -25,34 +25,13 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
{{
--
<
div
class
=
"col-sm-3"
>
<
label
for
=
"numeroParticipantes"
class
=
"col-form-label"
>
{{
__
(
'N° de Participantes'
)
}}
</
label
>
<
input
id
=
"numeroParticipantes"
type
=
"number"
class
=
"form-control @error('numeroParticipantes') is-invalid @enderror"
name
=
"numeroParticipantes"
value
=
"{{ old('numeroParticipantes') }}"
required
autocomplete
=
"numeroParticipantes"
autofocus
>
@
error
(
'numeroParticipantes'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
--
}}
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
select
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
value
=
"{{ old('tipo') }}"
required
>
<
select
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
value
=
"{{ old('tipo') }}"
required
>
<
option
value
=
"Congresso"
>
Congresso
</
option
>
<
option
value
=
"PIBIC"
>
PIBIC
</
option
>
<
option
value
=
"Encontro"
>
Encontro
</
option
>
<
option
value
=
"PIBIC-EM"
>
PIBIC
-
EM
</
option
>
<
option
value
=
"Seminário"
>
Seminário
</
option
>
<
option
value
=
"PIBITI"
>
PIBITI
</
option
>
<
option
value
=
"Mesa-redonda"
>
Mesa
-
redonda
</
option
>
<
option
value
=
"Simpósio"
>
Simpósio
</
option
>
<
option
value
=
"Painel"
>
Painel
</
option
>
<
option
value
=
"Fórum"
>
Fórum
</
option
>
<
option
value
=
"Conferência"
>
Conferência
</
option
>
<
option
value
=
"Jornada"
>
Jornada
</
option
>
<
option
value
=
"Cursos"
>
Cursos
</
option
>
<
option
value
=
"Colóquio"
>
Colóquio
</
option
>
<
option
value
=
"Semana"
>
Semana
</
option
>
<
option
value
=
"Workshop"
>
Workshop
</
option
>
</
select
>
</
select
>
@
error
(
'tipo'
)
@
error
(
'tipo'
)
...
@@ -63,7 +42,7 @@
...
@@ -63,7 +42,7 @@
</
div
>
</
div
>
</
div
>
{{
--
end
nome
|
Participantes
|
Tipo
--
}}
</
div
>
{{
--
end
nome
|
Participantes
|
Tipo
--
}}
{{
--
Descricao
E
vento
--
}}
{{
--
Descricao
E
dital
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
...
@@ -77,52 +56,23 @@
...
@@ -77,52 +56,23 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Inicio
e
fim
do
evento
-->
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"dataInicio"
class
=
"col-form-label"
>
{{
__
(
'Início'
)
}}
</
label
>
<
label
for
=
"coordenador_id"
class
=
"col-form-label"
>
{{
__
(
'Coordenador:'
)
}}
</
label
>
<
input
id
=
"dataInicio"
type
=
"date"
class
=
"form-control @error('dataInicio') is-invalid @enderror"
name
=
"dataInicio"
value
=
"{{ old('dataInicio') }}"
required
autocomplete
=
"dataInicio"
autofocus
>
<
select
class
=
"form-control @error('funcaoParticipante') is-invalid @enderror"
id
=
"coordenador_id"
name
=
"coordenador_id"
>
<
option
value
=
""
disabled
selected
hidden
>--
Coordenador
da
Comissão
Avaliadora
--</
option
>
@
error
(
'dataInicio'
)
@
foreach
(
$coordenadors
as
$coordenador
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
option
value
=
"
{
{$coordenador->id}}">{{$coordenador->user->name}
}
</option>
<
strong
>
{{
$message
}}
</
strong
>
@endforeach
</
span
>
</select>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"dataFim"
class
=
"col-form-label"
>
{{
__
(
'Fim'
)
}}
</
label
>
<
input
id
=
"dataFim"
type
=
"date"
class
=
"form-control @error('dataFim') is-invalid @enderror"
name
=
"dataFim"
value
=
"{{ old('dataFim') }}"
required
autocomplete
=
"dataFim"
autofocus
>
@
error
(
'dataFim'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</div>
</div>
</
div
><!--
end
Inicio
e
fim
do
evento
-->
{{
--
Foto
Evento
--
}}
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"fotoEvento"
>
Logo
</
label
>
<
input
type
=
"file"
class
=
"form-control-file @error('fotoEvento') is-invalid @enderror"
name
=
"fotoEvento"
value
=
"{{ old('fotoEvento') }}"
id
=
"fotoEvento"
>
@
error
(
'fotoEvento'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</div>
</div>
<div class="
row
subtitulo
">
<div class="
row
subtitulo
">
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
<
p
>
Trabalh
os
</
p
>
<p>
Projet
os</p>
</div>
</div>
</div>
</div>
{{-- dataInicio | dataFim | inicioSubmissao | fimSubmissao --}}
{{-- dataInicio | dataFim | inicioSubmissao | fimSubmissao --}}
<div class="
row
justify
-
content
-
center
">
<div class="
row
justify
-
content
-
center
">
...
@@ -150,7 +100,7 @@
...
@@ -150,7 +100,7 @@
<div class="
row
justify
-
content
-
center
">
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<
label
for
=
"inicioRevisao"
class
=
"col-form-label"
>
{{
__
(
'Início da
Revis
ão'
)
}}
</
label
>
<label for="
inicioRevisao
" class="
col
-
form
-
label
">{{ __('Início da
Avaliaç
ão') }}</label>
<input id="
inicioRevisao
" type="
date
" class="
form
-
control
@
error
(
'inicioRevisao'
)
is
-
invalid
@
enderror
" name="
inicioRevisao
" value="
{{
old
(
'inicioRevisao'
)
}}
" required autocomplete="
inicioRevisao
" autofocus>
<input id="
inicioRevisao
" type="
date
" class="
form
-
control
@
error
(
'inicioRevisao'
)
is
-
invalid
@
enderror
" name="
inicioRevisao
" value="
{{
old
(
'inicioRevisao'
)
}}
" required autocomplete="
inicioRevisao
" autofocus>
@error('inicioRevisao')
@error('inicioRevisao')
...
@@ -160,7 +110,7 @@
...
@@ -160,7 +110,7 @@
@enderror
@enderror
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<
label
for
=
"fimRevisao"
class
=
"col-form-label"
>
{{
__
(
'Fim da
Revis
ão'
)
}}
</
label
>
<label for="
fimRevisao
" class="
col
-
form
-
label
">{{ __('Fim da
Avaliaç
ão') }}</label>
<input id="
fimRevisao
" type="
date
" class="
form
-
control
@
error
(
'fimRevisao'
)
is
-
invalid
@
enderror
" name="
fimRevisao
" value="
{{
old
(
'fimRevisao'
)
}}
" required autocomplete="
fimRevisao
" autofocus>
<input id="
fimRevisao
" type="
date
" class="
form
-
control
@
error
(
'fimRevisao'
)
is
-
invalid
@
enderror
" name="
fimRevisao
" value="
{{
old
(
'fimRevisao'
)
}}
" required autocomplete="
fimRevisao
" autofocus>
@error('fimRevisao')
@error('fimRevisao')
...
@@ -171,144 +121,62 @@
...
@@ -171,144 +121,62 @@
</div>
</div>
</div>
</div>
{{
--
inicioRevisao
|
fimRevisao
|
inicioResultado
|
fimResultado
--
}}
<div class="
row
justify
-
content
-
left
">
<
div
class
=
"row justify-content-center"
>
<div class="
col
-
sm
-
6
">
<label for="
resultado
" class="
col
-
form
-
label
">{{ __('Data do Resultado') }}</label>
<
div
class
=
"col-sm-6"
>
<input id="
resultado
" type="
date
" class="
form
-
control
@
error
(
'resultado'
)
is
-
invalid
@
enderror
" name="
resultado
" value="
{{
old
(
'resultado'
)
}}
" required autocomplete="
resultado
" autofocus>
<
label
for
=
"inicioResultado"
class
=
"col-form-label"
>
{{
__
(
'Início do Resultado'
)
}}
</
label
>
<
input
id
=
"inicioResultado"
type
=
"date"
class
=
"form-control @error('inicioResultado') is-invalid @enderror"
name
=
"inicioResultado"
value
=
"{{ old('inicioResultado') }}"
required
autocomplete
=
"inicioResultado"
autofocus
>
@
error
(
'inicioResultado'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"fimResultado"
class
=
"col-form-label"
>
{{
__
(
'Fim do Resultado'
)
}}
</
label
>
<
input
id
=
"fimResultado"
type
=
"date"
class
=
"form-control @error('fimResultado') is-invalid @enderror"
name
=
"fimResultado"
value
=
"{{ old('fimResultado') }}"
required
autocomplete
=
"fimResultado"
autofocus
>
@
error
(
'
fimR
esultado'
)
@error('
r
esultado')
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<span class="
invalid
-
feedback
" role="
alert
">
<
strong
>
{{
$message
}}
</
strong
>
<strong>{{
$message
}}</strong>
</
span
>
</span>
@
enderror
@enderror
</
div
>
</div>
</
div
>
{{
--
end
inicioRevisao
|
fimRevisao
|
inicioResultado
|
fimResultado
--
}}
</div>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<div class="
row
subtitulo
">
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
<
p
>
Endereço
</
p
>
<p>
Documentos
</p>
</div>
</div>
</div>
</div>
{{
--
Rua
|
Número
|
Bairro
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
id
=
"cep"
type
=
"text"
class
=
"form-control @error('cep') is-invalid @enderror"
name
=
"cep"
value
=
"{{ old('cep') }}"
required
autocomplete
=
"cep"
autofocus
>
@
error
(
'cep'
)
{{-- Pdf Edital --}}
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<div class="
row
justify
-
content
-
center
" style="
margin
-
top
:
10
px
">
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<
label
for
=
"rua"
class
=
"col-form-label"
>
{{
__
(
'Rua'
)
}}
</
label
>
<div class="
form
-
group
">
<
input
id
=
"rua"
type
=
"text"
class
=
"form-control @error('rua') is-invalid @enderror"
name
=
"rua"
value
=
"{{ old('rua') }}"
required
autocomplete
=
"rua"
autofocus
>
<label for="
pdfEdital
">PDF do Edital</label>
<input type="
file
" class="
form
-
control
-
file
@
error
(
'pdfEdital'
)
is
-
invalid
@
enderror
" name="
pdfEdital
" value="
{{
old
(
'pdfEdital'
)
}}
" id="
pdfEdital
">
@
error
(
'rua'
)
<small>O arquivo selecionado deve ser no formato PDF de até xmb.</small>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
@error('pdfEdital')
<
strong
>
{{
$message
}}
</
strong
>
<span class="
invalid
-
feedback
" role="
alert
">
</
span
>
<strong>{{
$message
}}</strong>
@
enderror
</span>
</
div
>
@enderror
<
div
class
=
"col-sm-2"
>
</div>
<
label
for
=
"numero"
class
=
"col-form-label"
>
{{
__
(
'Número'
)
}}
</
label
>
<
input
id
=
"numero"
type
=
"text"
class
=
"form-control @error('numero') is-invalid @enderror"
name
=
"numero"
value
=
"{{ old('numero') }}"
required
autocomplete
=
"numero"
autofocus
>
@
error
(
'numero'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
{{
--
end
Rua
|
Número
|
Bairro
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"bairro"
class
=
"col-form-label"
>
{{
__
(
'Bairro'
)
}}
</
label
>
<
input
id
=
"bairro"
type
=
"text"
class
=
"form-control @error('bairro') is-invalid @enderror"
name
=
"bairro"
value
=
"{{ old('bairro') }}"
required
autocomplete
=
"bairro"
autofocus
>
@
error
(
'bairro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"cidade"
class
=
"col-form-label"
>
{{
__
(
'Cidade'
)
}}
</
label
>
<
input
id
=
"cidade"
type
=
"text"
class
=
"form-control @error('cidade') is-invalid @enderror"
name
=
"cidade"
value
=
"{{ old('cidade') }}"
required
autocomplete
=
"cidade"
autofocus
>
@
error
(
'cidade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</div>
</div>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
<div class="
col
-
sm
-
6
">
{{
--
<
input
id
=
"uf"
type
=
"text"
class
=
"form-control @error('uf') is-invalid @enderror"
name
=
"uf"
value
=
"{{ old('uf') }}"
required
autocomplete
=
"uf"
autofocus
>
--
}}
<div class="
form
-
group
">
<
select
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<label for="
modeloDocumento
">Arquivo com os modelos de documentos do edital</label>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<input type="
file
" class="
form
-
control
-
file
@
error
(
'modeloDocumento'
)
is
-
invalid
@
enderror
" name="
modeloDocumento
" value="
{{
old
(
'modeloDocumento'
)
}}
" id="
modeloDocumento
">
<
option
value
=
"AC"
>
Acre
</
option
>
<small>O arquivo selecionado deve ter até xmb.</small>
<
option
value
=
"AL"
>
Alagoas
</
option
>
@error('modeloDocumento')
<
option
value
=
"AP"
>
Amapá
</
option
>
<span class="
invalid
-
feedback
" role="
alert
">
<
option
value
=
"AM"
>
Amazonas
</
option
>
<strong>{{
$message
}}</strong>
<
option
value
=
"BA"
>
Bahia
</
option
>
</span>
<
option
value
=
"CE"
>
Ceará
</
option
>
@enderror
<
option
value
=
"DF"
>
Distrito
Federal
</
option
>
</div>
<
option
value
=
"ES"
>
Espírito
Santo
</
option
>
<
option
value
=
"GO"
>
Goiás
</
option
>
<
option
value
=
"MA"
>
Maranhão
</
option
>
<
option
value
=
"MT"
>
Mato
Grosso
</
option
>
<
option
value
=
"MS"
>
Mato
Grosso
do
Sul
</
option
>
<
option
value
=
"MG"
>
Minas
Gerais
</
option
>
<
option
value
=
"PA"
>
Pará
</
option
>
<
option
value
=
"PB"
>
Paraíba
</
option
>
<
option
value
=
"PR"
>
Paraná
</
option
>
<
option
value
=
"PE"
>
Pernambuco
</
option
>
<
option
value
=
"PI"
>
Piauí
</
option
>
<
option
value
=
"RJ"
>
Rio
de
Janeiro
</
option
>
<
option
value
=
"RN"
>
Rio
Grande
do
Norte
</
option
>
<
option
value
=
"RS"
>
Rio
Grande
do
Sul
</
option
>
<
option
value
=
"RO"
>
Rondônia
</
option
>
<
option
value
=
"RR"
>
Roraima
</
option
>
<
option
value
=
"SC"
>
Santa
Catarina
</
option
>
<
option
value
=
"SP"
>
São
Paulo
</
option
>
<
option
value
=
"SE"
>
Sergipe
</
option
>
<
option
value
=
"TO"
>
Tocantins
</
option
>
</
select
>
@
error
(
'uf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</div>
</div>
</div>
</
div
>
<div class="
row
justify
-
content
-
center
" style="
margin
:
20
px
0
20
px
0
">
<div class="
row
justify
-
content
-
center
" style="
margin
:
20
px
0
20
px
0
">
<div class="
col
-
md
-
6
" style="
padding
-
left
:
0
">
<div class="
col
-
md
-
6
" style="
padding
-
left
:
0
">
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
{
{route('
coord.home
')}
}
"
style
=
"width:100%"
>
Cancelar
</
a
>
<a class="
btn
btn
-
secondary
botao
-
form
" href="
{{
route
(
'
evento.listar
'
)}}
" style="
width
:
100
%
">Cancelar</a>
</div>
</div>
<div class="
col
-
md
-
6
" style="
padding
-
right
:
0
">
<div class="
col
-
md
-
6
" style="
padding
-
right
:
0
">
<button type="
submit
" class="
btn
btn
-
primary
botao
-
form
" style="
width
:
100
%
">
<button type="
submit
" class="
btn
btn
-
primary
botao
-
form
" style="
width
:
100
%
">
{{
__
(
'Criar E
vento
'
)
}}
{{ __('Criar E
dital
') }}
</button>
</button>
</div>
</div>
</div>
</div>
...
...
resources/views/evento/editarEvento.blade.php
View file @
5250d353
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<
h1
>
{{
$evento
->
nome
}}
</
h1
>
<
h1
>
{{
$evento
->
nome
}}
</
h1
>
</
div
>
</
div
>
<
form
action
=
"
{
{route('evento.update',$evento->id)}
}
"
method
=
"POST"
>
<
form
action
=
"
{
{route('evento.update',$evento->id)}
}
"
method
=
"POST"
enctype
=
"multipart/form-data"
>
@
csrf
@
csrf
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
...
@@ -25,35 +25,15 @@
...
@@ -25,35 +25,15 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
{{
--
End
Nome
do
evento
--
}}
</
div
>
{{
--
End
Nome
do
evento
--
}}
{{
--
Número
de
Participantes
--
}}
{{
--
<
div
class
=
"col-sm-3"
>
<
label
for
=
"numeroParticipantes"
class
=
"col-form-label"
>
{{
__
(
'N° de Participantes'
)
}}
</
label
>
<
input
value
=
"
{
{$evento->numeroParticipantes}
}
"
id
=
"numeroParticipantes"
type
=
"number"
class
=
"form-control @error('numeroParticipantes') is-invalid @enderror"
name
=
"numeroParticipantes"
value
=
"{{ old('numeroParticipantes') }}"
required
autocomplete
=
"numeroParticipantes"
autofocus
>
@
error
(
'numeroParticipantes'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
--
}}
{{
--
Tipo
do
evento
--
}}
{{
--
Tipo
do
evento
--
}}
<
div
class
=
"col-sm-3"
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<!--
<
input
value
=
"
{
{$evento->tipo}
}
"
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
value
=
"{{ old('tipo') }}"
required
autocomplete
=
"tipo"
autofocus
>
-->
<!--
<
input
value
=
"
{
{$evento->tipo}
}
"
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
value
=
"{{ old('tipo') }}"
required
autocomplete
=
"tipo"
autofocus
>
-->
<
select
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
value
=
"{{ old('tipo') }}"
required
>
<
select
id
=
"tipo"
type
=
"text"
class
=
"form-control @error('tipo') is-invalid @enderror"
name
=
"tipo"
required
>
<
option
value
=
"Congresso"
>
Congresso
</
option
>
<
option
value
=
"PIBIC"
{{
$evento
->
tipo
==
"PIBIC"
?
'selected'
:
''
}}
>
PIBIC
</
option
>
<
option
value
=
"Encontro"
>
Encontro
</
option
>
<
option
value
=
"PIBIC-EM"
{{
$evento
->
tipo
==
"PIBIC-EM"
?
'selected'
:
''
}}
>
PIBIC
-
EM
</
option
>
<
option
value
=
"Seminário"
>
Seminário
</
option
>
<
option
value
=
"PIBITI"
{{
$evento
->
tipo
==
"PIBITI"
?
'selected'
:
''
}}
>
PIBITI
</
option
>
<
option
value
=
"Mesa-redonda"
>
Mesa
-
redonda
</
option
>
<
option
value
=
"Simpósio"
>
Simpósio
</
option
>
<
option
value
=
"Painel"
>
Painel
</
option
>
<
option
value
=
"Fórum"
>
Fórum
</
option
>
<
option
value
=
"Conferência"
>
Conferência
</
option
>
<
option
value
=
"Jornada"
>
Jornada
</
option
>
<
option
value
=
"Cursos"
>
Cursos
</
option
>
<
option
value
=
"Colóquio"
>
Colóquio
</
option
>
<
option
value
=
"Semana"
>
Semana
</
option
>
<
option
value
=
"Workshop"
>
Workshop
</
option
>
</
select
>
</
select
>
@
error
(
'tipo'
)
@
error
(
'tipo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -68,7 +48,7 @@
...
@@ -68,7 +48,7 @@
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Descrição
</
label
>
<
label
for
=
"exampleFormControlTextarea1"
>
Descrição
</
label
>
<
textarea
value
=
"
{
{$evento->descricao}
}
"
class
=
"form-control @error('descricao') is-invalid @enderror"
value
=
"{{
old('
descricao
')
}}"
id
=
"descricao"
name
=
"descricao"
rows
=
"3"
></
textarea
>
<
textarea
class
=
"form-control @error('descricao') is-invalid @enderror"
value
=
"{{
$evento->
descricao
}}"
id
=
"descricao"
name
=
"descricao"
rows
=
"3"
>
{{
$evento
->
descricao
}}
</
textarea
>
@
error
(
'descricao'
)
@
error
(
'descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
@@ -78,49 +58,9 @@
...
@@ -78,49 +58,9 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
>
{{
--
Início
do
Evento
--
}}
<
div
class
=
"col-sm-6"
>
<
label
for
=
"dataInicio"
class
=
"col-form-label"
>
{{
__
(
'Início'
)
}}
</
label
>
<
input
value
=
"
{
{$evento->dataInicio}
}
"
id
=
"dataInicio"
type
=
"date"
class
=
"form-control @error('dataInicio') is-invalid @enderror"
name
=
"dataInicio"
value
=
"{{ old('dataInicio') }}"
required
autocomplete
=
"dataInicio"
autofocus
>
@
error
(
'dataInicio'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
{{
--
End
Início
do
Evento
--
}}
{{
--
Fim
do
Evento
--
}}
<
div
class
=
"col-sm-6"
>
<
label
for
=
"dataFim"
class
=
"col-form-label"
>
{{
__
(
'Fim'
)
}}
</
label
>
<
input
value
=
"
{
{$evento->dataFim}
}
"
id
=
"dataFim"
type
=
"date"
class
=
"form-control @error('dataFim') is-invalid @enderror"
name
=
"dataFim"
value
=
"{{ old('dataFim') }}"
required
autocomplete
=
"dataFim"
autofocus
>
@
error
(
'dataFim'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
{{
--
end
Fim
do
Evento
--
}}
</
div
>
{{
--
Foto
Evento
--
}}
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"fotoEvento"
>
Logo
</
label
>
<
input
type
=
"file"
class
=
"form-control-file @error('isCoordenador') is-invalid @enderror"
name
=
"isCoordenador"
value
=
"{{ old('isCoordenador') }}"
id
=
"fotoEvento"
>
@
error
(
'fotoEvento'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Trabalh
os
</
p
>
<
p
>
Projet
os
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
dataInicio
|
dataFim
|
inicioSubmissao
|
fimSubmissao
--
}}
{{
--
dataInicio
|
dataFim
|
inicioSubmissao
|
fimSubmissao
--
}}
...
@@ -171,24 +111,15 @@
...
@@ -171,24 +111,15 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
inicioRevisao
|
fimRevisao
|
inicioResultado
|
fimResultado
--
}}
{{
--
inicioRevisao
|
fimRevisao
|
inicioResultado
|
fimResultado
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-left"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"inicioResultado"
class
=
"col-form-label"
>
{{
__
(
'Início do Resultado'
)
}}
</
label
>
<
input
value
=
"
{
{$evento->inicioResultado}
}
"
id
=
"inicioResultado"
type
=
"date"
class
=
"form-control @error('inicioResultado') is-invalid @enderror"
name
=
"inicioResultado"
value
=
"{{ old('inicioResultado') }}"
required
autocomplete
=
"inicioResultado"
autofocus
>
@
error
(
'inicioResultado'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"
fimR
esultado"
class
=
"col-form-label"
>
{{
__
(
'
Fim
do Resultado'
)
}}
</
label
>
<
label
for
=
"
r
esultado"
class
=
"col-form-label"
>
{{
__
(
'
Data
do Resultado'
)
}}
</
label
>
<
input
value
=
"
{
{$evento->
fimR
esultado}
}
"
id
=
"
fimR
esultado"
type
=
"date"
class
=
"form-control @error('
fimR
esultado') is-invalid @enderror"
name
=
"
fimR
esultado"
value
=
"{{ old('
fimR
esultado') }}"
required
autocomplete
=
"
fimR
esultado"
autofocus
>
<
input
value
=
"
{
{$evento->
r
esultado}
}
"
id
=
"
r
esultado"
type
=
"date"
class
=
"form-control @error('
r
esultado') is-invalid @enderror"
name
=
"
r
esultado"
value
=
"{{ old('
r
esultado') }}"
required
autocomplete
=
"
r
esultado"
autofocus
>
@
error
(
'
fimR
esultado'
)
@
error
(
'
r
esultado'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
...
@@ -196,112 +127,47 @@
...
@@ -196,112 +127,47 @@
</
div
>
</
div
>
</
div
>
{{
--
end
inicioRevisao
|
fimRevisao
|
inicioResultado
|
fimResultado
--
}}
</
div
>
{{
--
end
inicioRevisao
|
fimRevisao
|
inicioResultado
|
fimResultado
--
}}
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
<
p
>
Documentos
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
Rua
|
Número
|
Bairro
--
}}
{{
--
Pdf
Edital
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
value
=
"
{
{$endereco->cep}
}
"
id
=
"cep"
type
=
"text"
class
=
"form-control @error('cep') is-invalid @enderror"
name
=
"cep"
value
=
"{{ old('cep') }}"
required
autocomplete
=
"cep"
autofocus
>
@
error
(
'cep'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"rua"
class
=
"col-form-label"
>
{{
__
(
'Rua'
)
}}
</
label
>
<
div
class
=
"form-group"
>
<
input
value
=
"
{
{$endereco->rua}
}
"
id
=
"rua"
type
=
"text"
class
=
"form-control @error('rua') is-invalid @enderror"
name
=
"rua"
value
=
"{{ old('rua') }}"
required
autocomplete
=
"rua"
autofocus
>
<
label
for
=
"pdfEdital"
>
PDF
do
Edital
</
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->pdfEdital
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
@
error
(
'rua'
)
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
</
a
>
<
strong
>
{{
$message
}}
</
strong
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfEdital') is-invalid @enderror"
name
=
"pdfEdital"
value
=
"{{ old('pdfEdital') }}"
id
=
"pdfEdital"
>
</
span
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
xmb
.
</
small
>
@
enderror
@
error
(
'pdfEdital'
)
</
div
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
div
class
=
"col-sm-2"
>
<
strong
>
{{
$message
}}
</
strong
>
<
label
for
=
"numero"
class
=
"col-form-label"
>
{{
__
(
'Número'
)
}}
</
label
>
</
span
>
<
input
value
=
"
{
{$endereco->numero}
}
"
id
=
"numero"
type
=
"text"
class
=
"form-control @error('numero') is-invalid @enderror"
name
=
"numero"
value
=
"{{ old('numero') }}"
required
autocomplete
=
"numero"
autofocus
>
@
enderror
</
div
>
@
error
(
'numero'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
{{
--
end
Rua
|
Número
|
Bairro
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"bairro"
class
=
"col-form-label"
>
{{
__
(
'Bairro'
)
}}
</
label
>
<
input
value
=
"
{
{$endereco->bairro}
}
"
id
=
"bairro"
type
=
"text"
class
=
"form-control @error('bairro') is-invalid @enderror"
name
=
"bairro"
value
=
"{{ old('bairro') }}"
required
autocomplete
=
"bairro"
autofocus
>
@
error
(
'bairro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"cidade"
class
=
"col-form-label"
>
{{
__
(
'Cidade'
)
}}
</
label
>
<
input
value
=
"
{
{$endereco->cidade}
}
"
id
=
"cidade"
type
=
"text"
class
=
"form-control @error('cidade') is-invalid @enderror"
name
=
"cidade"
value
=
"{{ old('cidade') }}"
required
autocomplete
=
"cidade"
autofocus
>
@
error
(
'cidade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
<
div
class
=
"col-sm-6"
>
{{
--
<
input
id
=
"uf"
type
=
"text"
class
=
"form-control @error('uf') is-invalid @enderror"
name
=
"uf"
value
=
"{{ old('uf') }}"
required
autocomplete
=
"uf"
autofocus
>
--
}}
<
div
class
=
"form-group"
>
<
select
value
=
"
{
{$endereco->uf}
}
"
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<
label
for
=
"modeloDocumento"
>
Arquivo
com
os
modelos
de
documentos
do
edital
</
label
>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<
a
href
=
"{{route('download', ['file' =>
$evento->modeloDocumento
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
option
@
if
(
$endereco
->
uf
==
'AC'
)
selected
@
endif
value
=
"AC"
>
Acre
</
option
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
<
option
@
if
(
$endereco
->
uf
==
'AL'
)
selected
@
endif
value
=
"AL"
>
Alagoas
</
option
>
</
a
>
<
option
@
if
(
$endereco
->
uf
==
'AP'
)
selected
@
endif
value
=
"AP"
>
Amapá
</
option
>
<
input
type
=
"file"
class
=
"form-control-file @error('modeloDocumento') is-invalid @enderror"
name
=
"modeloDocumento"
value
=
"{{ old('modeloDocumento') }}"
id
=
"modeloDocumento"
>
<
option
@
if
(
$endereco
->
uf
==
'AM'
)
selected
@
endif
value
=
"AM"
>
Amazonas
</
option
>
<
small
>
O
arquivo
selecionado
deve
ter
até
xmb
.
</
small
>
<
option
@
if
(
$endereco
->
uf
==
'BA'
)
selected
@
endif
value
=
"BA"
>
Bahia
</
option
>
@
error
(
'modeloDocumento'
)
<
option
@
if
(
$endereco
->
uf
==
'CE'
)
selected
@
endif
value
=
"CE"
>
Ceará
</
option
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
option
@
if
(
$endereco
->
uf
==
'DF'
)
selected
@
endif
value
=
"DF"
>
Distrito
Federal
</
option
>
<
strong
>
{{
$message
}}
</
strong
>
<
option
@
if
(
$endereco
->
uf
==
'ES'
)
selected
@
endif
value
=
"ES"
>
Espírito
Santo
</
option
>
</
span
>
<
option
@
if
(
$endereco
->
uf
==
'GO'
)
selected
@
endif
value
=
"GO"
>
Goiás
</
option
>
@
enderror
<
option
@
if
(
$endereco
->
uf
==
'MA'
)
selected
@
endif
value
=
"MA"
>
Maranhão
</
option
>
</
div
>
<
option
@
if
(
$endereco
->
uf
==
'MT'
)
selected
@
endif
value
=
"MT"
>
Mato
Grosso
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'MS'
)
selected
@
endif
value
=
"MS"
>
Mato
Grosso
do
Sul
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'MG'
)
selected
@
endif
value
=
"MG"
>
Minas
Gerais
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'PA'
)
selected
@
endif
value
=
"PA"
>
Pará
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'PB'
)
selected
@
endif
value
=
"PB"
>
Paraíba
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'PR'
)
selected
@
endif
value
=
"PR"
>
Paraná
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'PE'
)
selected
@
endif
value
=
"PE"
>
Pernambuco
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'PI'
)
selected
@
endif
value
=
"PI"
>
Piauí
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'RJ'
)
selected
@
endif
value
=
"RJ"
>
Rio
de
Janeiro
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'RN'
)
selected
@
endif
value
=
"RN"
>
Rio
Grande
do
Norte
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'RS'
)
selected
@
endif
value
=
"RS"
>
Rio
Grande
do
Sul
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'RO'
)
selected
@
endif
value
=
"RO"
>
Rondônia
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'RR'
)
selected
@
endif
value
=
"RR"
>
Roraima
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'SC'
)
selected
@
endif
value
=
"SC"
>
Santa
Catarina
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'SP'
)
selected
@
endif
value
=
"SP"
>
São
Paulo
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'SE'
)
selected
@
endif
value
=
"SE"
>
Sergipe
</
option
>
<
option
@
if
(
$endereco
->
uf
==
'TO'
)
selected
@
endif
value
=
"TO"
>
Tocantins
</
option
>
</
select
>
@
error
(
'uf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
...
@@ -309,7 +175,7 @@
...
@@ -309,7 +175,7 @@
</
div
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"padding-ridht:0"
>
<
div
class
=
"col-md-6"
style
=
"padding-ridht:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
>
{{
__
(
'Salvar E
vento
'
)
}}
{{
__
(
'Salvar E
dital
'
)
}}
</
button
>
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/evento/listarEvento.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
10
/
05
/
2020
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
{{
--
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
--
}}
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('coord.detalhesEvento', ['eventoId' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"
{
{route('evento.editar',$evento->id)}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/evento/submeterTrabalho.blade.php
View file @
5250d353
...
@@ -4,25 +4,20 @@
...
@@ -4,25 +4,20 @@
<
div
class
=
"container content"
>
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-
8
"
>
<
div
class
=
"col-sm-
12
"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
div
class
=
"card-body"
>
<
h5
class
=
"card-title"
>
Enviar
Trabalh
o
</
h5
>
<
h5
class
=
"card-title"
>
Enviar
Projet
o
</
h5
>
<
p
class
=
"card-text"
>
<
p
class
=
"card-text"
>
<
form
method
=
"POST"
action
=
"
{
{route('trabalho.store')}
}
"
enctype
=
"multipart/form-data"
>
<
form
method
=
"POST"
action
=
"
{
{route('trabalho.store')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"eventoId"
value
=
"
{
{$evento->id}
}
"
>
<
input
type
=
"hidden"
name
=
"editalId"
value
=
"
{
{$edital->id}
}
"
>
<
div
>
@
error
(
'numeroMax'
)
{{
--
Nome
do
Projeto
--
}}
@
include
(
'componentes.mensagens'
)
@
enderror
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
{{
--
Nome
Trabalho
--
}}
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'
Títul
o:'
)
}}
</
label
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'
Nome do Projet
o:'
)
}}
</
label
>
<
input
id
=
"nomeTrabalho"
type
=
"text"
class
=
"form-control @error('nomeTrabalho') is-invalid @enderror"
name
=
"nome
Trabalh
o"
value
=
"{{ old('nomeTrabalho') }}"
required
autocomplete
=
"nomeTrabalho"
autofocus
>
<
input
id
=
"nomeTrabalho"
type
=
"text"
class
=
"form-control @error('nomeTrabalho') is-invalid @enderror"
name
=
"nome
Projet
o"
value
=
"{{ old('nomeTrabalho') }}"
required
autocomplete
=
"nomeTrabalho"
autofocus
>
@
error
(
'nomeTrabalho'
)
@
error
(
'nomeTrabalho'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -31,48 +26,29 @@
...
@@ -31,48 +26,29 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
Grande
Area
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
{{
--
Nome
Trabalho
--
}}
<
div
class
=
"col-sm-4"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área:'
)
}}
</
label
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Autor:'
)
}}
</
label
>
<
select
class
=
"form-control @error('grandeArea') is-invalid @enderror"
id
=
"grandeArea"
name
=
"grandeAreaId"
>
<
input
class
=
"form-control"
type
=
"text"
disabled
value
=
"
{
{Auth::user()->name}
}
"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
</
div
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
</
div
>
<
option
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
<
div
class
=
"row"
style
=
"margin-top:20px"
>
</select>
<
div
class
=
"col-sm-12"
>
<
div
id
=
"coautores"
>
@error('grandeAreaId')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<
a
href
=
"#"
class
=
"btn btn-primary"
id
=
"addCoautor"
style
=
"width:100%;margin-top:10px"
>
Coautor
+</
a
>
<div class="
col
-
sm
-
4
">
</
div
>
</
div
>
@
if
(
$evento
->
hasResumo
)
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"resumo"
class
=
"col-form-label"
>
{{
__
(
'Resumo:'
)
}}
</
label
>
<
textarea
id
=
"resumo"
class
=
"form-control @error('resumo') is-invalid @enderror"
name
=
"resumo"
value
=
"{{ old('resumo') }}"
autocomplete
=
"resumo"
autofocusrows
=
"5"
></
textarea
>
@
error
(
'resumo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
@
endif
<!--
Areas
-->
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área:') }}</label>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área:') }}</label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
areaId
">
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
areaId
">
<option value="" disabled selected hidden>-- Área --</option>
<option value="" disabled selected hidden>-- Área --</option>
@
foreach
(
$areas
Enomes
as
$area
)
@foreach(
$areas
as
$area
)
<option value="
{{
$area
->
id
}}
">
{
{$area->nome}
}
</option>
<option value="
{{
$area
->
id
}}
">
{
{$area->nome}
}
</option>
@endforeach
@endforeach
</select>
</select>
...
@@ -83,32 +59,146 @@
...
@@ -83,32 +59,146 @@
</span>
</span>
@enderror
@enderror
</div>
</div>
</div>
<div class="
col
-
sm
-
4
">
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área:') }}</label>
<!-- Modalidades -->
<select class="
form
-
control
@
error
(
'subArea'
)
is
-
invalid
@
enderror
" id="
subArea
" name="
subAreaId
">
<div class="
row
justify
-
content
-
center
">
<option value="" disabled selected hidden>-- Sub Área --</option>
<div class="
col
-
sm
-
12
">
@foreach(
$subAreas
as
$subArea
)
<label for="
areaModalidadeId
" class="
col
-
form
-
label
">{{ __('Modalidade:') }}</label>
<option value="
{{
$subArea
->
id
}}
">
{
{$subArea->nome}
}
</option>
<select class="
form
-
control
@
error
(
'modalidade'
)
is
-
invalid
@
enderror
" id="
modalidade
" name="
modalidadeId
">
@endforeach
<option value="" disabled selected hidden>-- Modalidade --</option>
</select>
</select>
@error('
modalidade
Id')
@error('
subArea
Id')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
</div>
</div>
<hr>
<h3>Coordenador</h3>
{{-- Coordenador --}}
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
6
">
<label for="
nomeCoordenador
" class="
col
-
form
-
label
">{{ __('Coordenador:') }}</label>
<input class="
form
-
control
" type="
text
" id="
nomeCoordenador
" name="
nomeCoordenador
" disabled="
disabled
" value="
{{
Auth
()
->
user
()
->
name
}}
">
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Pontuação da Planilha de Pontuação :') }}</label>
<input class="
form
-
control
" type="
text
" name="
pontuacaoPlanilha
">
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Link do grupo de pesquisa:') }}</label>
<input class="
form
-
control
" type="
text
" name="
linkGrupo
">
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">Link Lattes do Estudante</label>
<input class="
form
-
control
" type="
text
" name="
linkLattesEstudante
">
</div>
</div>
{{-- Pontuação da Planilha de Pontuação --}}
<div class="
row
justify
-
content
-
center
mt
-
2
">
{{-- Nome Trabalho --}}
</div>
{{-- Link do grupo de pesquisa --}}
<div class="
row
justify
-
content
-
center
mb
-
3
">
</div>
{{-- Link do grupo de pesquisa --}}
<div class="
row
justify
-
content
-
center
mb
-
3
">
</div>
<hr>
<h3>Anexos</h3>
{{-- Anexo do Projeto --}}
<div class="
row
justify
-
content
-
center
">
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" style="
margin
-
top
:
20
px
;
"
>
<div class="
col
-
sm
-
6
"
>
<label for="
nomeTrabalh
o
" class="
col
-
form
-
label
">{{ __('A
rquiv
o:') }}</label>
<label for="
anexoProjet
o
" class="
col
-
form
-
label
">{{ __('A
nexo Projet
o:') }}</label>
<div class="
custom
-
file
">
<div class="
input
-
group
">
<input type="
file
" class="
filestyle
" data-placeholder="
Nenhum
arquivo
" data-text="
Selecionar
" data-btnClass="
btn
-
primary
-
lmts
" name="
arquivo
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoProjeto
"
aria-describedby="
inputGroupFileAddon01
" name="
anexoProjeto
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoProjeto
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('anexoProjeto')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
6
" >
<label for="
anexoLatterCoordenador
" class="
col
-
form
-
label
">{{ __('Anexo do Lattes do Coordenador:') }}</label>
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
inputGroupFile01
"
aria-describedby="
anexoLatterCoordenador
" name="
anexoLatterCoordenador
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
6
" >
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Autorização do Comitê de Ética:') }}</label>
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
inputGroupFile01
"
aria-describedby="
inputGroupFileAddon01
" name="
anexoComiteEtica
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
6
" >
<label for="
anexoPlanilha
" class="
col
-
form
-
label
">{{ __('Anexo do Planilha de Pontuação :') }}</label>
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoPlanilha
"
aria-describedby="
anexoPlanilhaDescribe
" name="
anexoPlanilha
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoPlanilha
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
</div>
<small>O arquivo Selecionado deve ser no formato PDF de até 2mb.</small>
@error('arquivo')
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
...
@@ -117,12 +207,142 @@
...
@@ -117,12 +207,142 @@
</div>
</div>
</div>
</div>
@if(
$edital->tipo
== 'PIBIC' ||
$edital->tipo
== 'PIBIC-EM')
{{-- Decisão do CONSU --}}
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" >
<label for="
anexoCONSU
" class="
col
-
form
-
label
">{{ __('Decisão do CONSU:') }}</label>
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoCONSU
"
aria-describedby="
inputGroupFileAddon01
" name="
anexoCONSU
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
@endif
<hr>
<h4>Participantes</h4>
{{-- Participantes --}}
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
col
-
sm
-
12
">
<div id="
participantes
">
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
</div>
<div class="
col
-
sm
-
2
">
<label for="
funcaoParticipante
" class="
col
-
form
-
label
">{{ __('Função:') }}</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
[]
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
</div>
<div class="
col
-
sm
-
2
">
<label for="
funcaoParticipante
" class="
col
-
form
-
label
">{{ __('Função:') }}</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
[]
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
</div>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
</
div
>
</
div
>
{{
--
Plano
de
Trabalho
--
}}
<
h4
class
=
"mt-3"
>
Plano
de
Trabalho
</
h4
>
<
div
class
=
"row"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
id
=
"planoTrabalho"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-4"
>
<
label
>
Titulo
</
label
>
<
input
type
=
"text"
style
=
"margin-bottom:10px"
class
=
"form-control emailCoautor"
name
=
"nomePlanoTrabalho[]"
placeholder
=
"Nome"
required
>
</
div
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-7"
>
<
label
for
=
"nomeTrabalho"
>
Anexo
</
label
>
<
div
class
=
"input-group"
>
<
div
class
=
"input-group-prepend"
>
<
span
class
=
"input-group-text"
id
=
"anexoPlanoTrabalho"
>
Selecione
um
arquivo
:</
span
>
</
div
>
<
div
class
=
"custom-file"
>
<
input
type
=
"file"
class
=
"custom-file-input"
id
=
"anexoPlanoTrabalho"
aria
-
describedby
=
"anexoPlanoTrabalho"
name
=
"anexoPlanoTrabalho[]"
>
<
label
class
=
"custom-file-label"
id
=
"custom-file-label"
for
=
"inputGroupFile01"
>
O
arquivo
deve
ser
no
formato
PDF
de
até
2
mb
.
</
label
>
</
div
>
</
div
>
@
error
(
'anexoPlanoTrabalho'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-1"
>
<
a
class
=
"deletePlano"
>
<
img
src
=
"/img/icons/user-times-solid.svg"
style
=
"width:25px;margin-top:35px"
>
</
a
>
</
div
>
</
div
>
</
div
>
<
a
href
=
"#"
class
=
"btn btn-primary"
id
=
"addPlanoTrabalho"
style
=
"width:100%;margin-top:10px"
>
Plano
de
Trabalho
+</
a
>
</
div
>
</
div
>
</
p
>
</
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<a href="
{{
route
(
'evento.visualizar'
,[
'id'
=>
$e
vento
->
id
])}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
<
a
href
=
"
{
{route('evento.visualizar',['id'=>$e
dital
->id])}
}
"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"width:100%"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"width:100%"
>
...
@@ -142,12 +362,30 @@
...
@@ -142,12 +362,30 @@
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
var modalidades = JSON.parse('<?php echo json_encode(
$modalidadesIDeNome
) ?>');
$
(
function
(){
$
(
function
(){
var
qtdLinhas
=
1
;
var
qtdParticipantes
=
2
;
// Coautores
// Coautores
$('#addCoautor').click(function(){
$
(
'#addCoautor'
)
.
click
(
function
(
e
){
linha = montarLinhaInput();
$('#coautores').append(linha);
if
(
qtdParticipantes
<
100
){
e
.
preventDefault
();
linha
=
montarLinhaInput
();
$
(
'#participantes'
)
.
append
(
linha
);
qtdParticipantes
++
}
});
$
(
'#addPlanoTrabalho'
)
.
click
(
function
(
e
){
e
.
preventDefault
();
if
(
qtdLinhas
<
4
){
linha
=
montarLinhaInputPlanoTrabalho
();
$
(
'#planoTrabalho'
)
.
append
(
linha
);
qtdLinhas
++
;
}
});
});
// Exibir modalidade de acordo com a área
// Exibir modalidade de acordo com a área
...
@@ -155,14 +393,31 @@
...
@@ -155,14 +393,31 @@
console
.
log
(
$
(
this
)
.
val
());
console
.
log
(
$
(
this
)
.
val
());
addModalidade
(
$
(
this
)
.
val
());
addModalidade
(
$
(
this
)
.
val
());
});
});
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
(){
if
(
qtdParticipantes
>
2
){
qtdParticipantes
--
;
$
(
this
)
.
closest
(
'.row'
)
.
remove
();
return
false
;
}
});
$
(
document
)
.
on
(
'click'
,
'.deletePlano'
,
function
(){
if
(
qtdLinhas
>
1
){
qtdLinhas
--
;
$
(
"#planoTrabalho div.row:last"
)
.
remove
();
return
false
;
}
});
$
(
'#anexoProjeto'
)
.
on
(
'change'
,
function
(){
//get the file name
var
fileName
=
$
(
this
)
.
val
();
//replace the "Choose a file" label
$
(
this
)
.
next
(
'#custom-file-label'
)
.
html
(
fileName
);
})
});
});
// Remover Coautor
// Remover Coautor
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
(){
$
(
this
)
.
closest
(
'.row'
)
.
remove
();
return
false
;
});
function
addModalidade
(
areaId
){
function
addModalidade
(
areaId
){
console
.
log
(
modalidades
)
console
.
log
(
modalidades
)
...
@@ -177,20 +432,63 @@
...
@@ -177,20 +432,63 @@
function
montarLinhaInput
(){
function
montarLinhaInput
(){
return
"<div class="
+
"row"
+
">"
+
return
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-
6
"
+
">"
+
"<div class="
+
"col-sm-
5
"
+
">"
+
"<label>Nome Completo</label>"
+
"<label>Nome Completo</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nome
Coautor
[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nome
Participante
[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"</div>"
+
"</div>"
+
"<div class="
+
"col-sm-
5
"
+
">"
+
"<div class="
+
"col-sm-
4
"
+
">"
+
"<label>E-mail</label>"
+
"<label>E-mail</label>"
+
"<input"
+
" type="
+
'email'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'emailCoautor[]'
+
" placeholder="
+
"E-mail"
+
" required>"
+
"<input"
+
" type="
+
'email'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'emailParticipante[]'
+
" placeholder="
+
"E-mail"
+
" required>"
+
"</div>"
+
"<div class='col-sm-2'>"
+
"<label for='funcaoParticipante' class='col-form-label'>Função:</label>"
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
" id="
+
"funcaoParticipante"
+
"name="
+
"funcaoParticipante[]"
+
">"
+
"<option value='' disabled selected hidden> Função </option>"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
"<option value='
{
{$funcaoParticipante->id}}'>{{$funcaoParticipante->nome}
}
</option>"
+
"@endforeach"
+
"</select>"
+
"</div>"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a
href="
+
"#"
+
"
class="
+
"delete"
+
">"
+
"<a class="
+
"delete"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</a>"
+
"</div>"
+
"</div>"
+
"</div>"
;
"</div>"
;
}
}
function
montarLinhaInputPlanoTrabalho
(){
return
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Nome Completo</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"</div>"
+
"<div class="
+
"col-sm-7"
+
">"
+
"<label for="
+
"nomeTrabalho"
+
">Anexo </label>"
+
"<div class="
+
"input-group"
+
">"
+
"<div class='input-group-prepend'>"
+
"<span class='input-group-text' id='inputGroupFileAddon01'>Selecione um arquivo:</span>"
+
"</div>"
+
"<div class='custom-file'>"
+
"<input type='file' class='custom-file-input' id='inputGroupFile01'"
+
"aria-describedby='inputGroupFileAddon01' name='anexoPlanoTrabalho[]'>"
+
"<label class='custom-file-label' id='custom-file-label' for='inputGroupFile01'>O arquivo deve ser no formato PDF de até 2mb.</label>"
+
"</div>"
+
"</div>"
+
"@error('arquivo')"
+
"<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a class="
+
"deletePlano"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</div>"
+
"</div>"
;
}
</
script
>
</
script
>
@
endsection
@
endsection
resources/views/evento/visualizarEvento.blade.php
View file @
5250d353
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<
div
class
=
"container"
style
=
"margin-top:20px"
>
<
div
class
=
"container"
style
=
"margin-top:20px"
>
@
if
(
!
Auth
::
check
())
@
if
(
!
Auth
::
check
())
<
div
class
=
"alert alert-warning alert-dismissible fade show"
role
=
"alert"
>
<
div
class
=
"alert alert-warning alert-dismissible fade show"
role
=
"alert"
>
<
strong
>
A
submissão
de
um
trabalh
o
é
possível
apenas
quando
cadastrado
no
sistema
.
</
strong
>
<
strong
>
A
submissão
de
um
projet
o
é
possível
apenas
quando
cadastrado
no
sistema
.
</
strong
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"alert"
aria
-
label
=
"Close"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"alert"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
...
@@ -100,16 +100,7 @@
...
@@ -100,16 +100,7 @@
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Realização
do
Evento
</
h4
>
<
h4
>
Submissão
de
Projetos
</
h4
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
</
p
>
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Submissão
de
Trabalhos
</
h4
>
<
p
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
...
@@ -118,35 +109,38 @@
...
@@ -118,35 +109,38 @@
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Revisão
de
Trabalhos
</
h4
>
<
h4
>
Revisão
de
Projetos
</
h4
>
<
p
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
</
p
>
</
p
>
--
}}
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Endereço
</
h4
>
<
h4
>
Data
do
resultado
</
h4
>
<
p
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/
map-marker-alt-solid
.svg')}
}
"
alt
=
""
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/
calendar-evento
.svg')}
}
"
alt
=
""
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
resultado
))
}}
</
p
>
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
@
if
(
$hasFile
==
true
)
@
if
(
$hasFile
==
true
)
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h1
>
<
h1
>
Meus
Trabalh
os
Meus
Projet
os
</
h1
>
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
@
if
(
$hasTrabalho
)
@
if
(
$hasTrabalho
)
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Como
Autor
</
h4
>
<
h4
>
Como
Proponente
</
h4
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -197,7 +191,7 @@
...
@@ -197,7 +191,7 @@
</
div
>
</
div
>
@
endif
@
endif
@
if
(
$hasTrabalhoCoautor
)
{{
--
@
if
(
$hasTrabalhoCoautor
)
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Como
Coautor
</
h4
>
<
h4
>
Como
Coautor
</
h4
>
...
@@ -237,19 +231,19 @@
...
@@ -237,19 +231,19 @@
</
table
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
--
}}
@
endif
@
endif
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
{
{route('cancelarCadastro')}
}
"
style
=
"width:100%"
>
Voltar
</
a
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
/
"
style
=
"width:100%"
>
Voltar
</
a
>
</
div
>
</
div
>
@
if
(
$evento
->
inicioSubmissao
<=
$mytime
)
@
if
(
$evento
->
inicioSubmissao
<=
$mytime
)
@
if
(
$mytime
<
$evento
->
fimSubmissao
)
@
if
(
$mytime
<
$evento
->
fimSubmissao
)
<
div
class
=
"col-md-6 botao-form-right"
style
=
""
>
<
div
class
=
"col-md-6 botao-form-right"
style
=
""
>
<
a
class
=
"btn btn-primary botao-form"
href
=
"
{
{route('trabalho.index',['id'=>$evento->id])}
}
"
style
=
"width:100%"
>
Submeter
Trabalh
o
</
a
>
<
a
class
=
"btn btn-primary botao-form"
href
=
"
{
{route('trabalho.index',['id'=>$evento->id])}
}
"
style
=
"width:100%"
>
Submeter
Projet
o
</
a
>
</
div
>
</
div
>
@
endif
@
endif
@
endif
@
endif
...
...
resources/views/index.blade.php
View file @
5250d353
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"row titulo"
style
=
"margin-top:0"
>
<
div
class
=
"row titulo"
style
=
"margin-top:0"
>
<
h1
>
E
vento
s
em
curso
</
h1
>
<
h1
>
E
ditai
s
em
curso
</
h1
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -156,21 +156,22 @@
...
@@ -156,21 +156,22 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
p
class
=
"card-text"
>
<
p
class
=
"card-text"
>
<
strong
>
Realização
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
<
br
>
<
strong
>
Submissão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
<
br
>
<
strong
>
Submissão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
<
strong
>
Resultado
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
resultado
))}}
<
br
>
</
p
>
</
p
>
<!--
<
p
>
<
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
img
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
style
=
"width:15px"
>
<
img
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
style
=
"width:15px"
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
</
div
>
</
div
>
</
div
>
</
div
>
</
p
>
</
p
>
-->
<
p
>
<
p
>
<
a
href
=
"{{ route('evento.visualizarNaoLogado',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
Visualizar
E
vento
</
a
>
<
a
href
=
"{{ route('evento.visualizarNaoLogado',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
Visualizar
E
dital
</
a
>
</
p
>
</
p
>
</
div
>
</
div
>
...
@@ -180,7 +181,7 @@
...
@@ -180,7 +181,7 @@
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
a
class
=
"btn btn-outline-secondary btn-lg"
href
=
"
{
{route('home')}
}
"
<
a
class
=
"btn btn-outline-secondary btn-lg"
href
=
"
{
{route('home')}
}
"
style
=
"margin-bottom:10px;"
role
=
"button"
>
Mais
E
vento
s
</
a
>
style
=
"margin-bottom:10px;"
role
=
"button"
>
Mais
E
ditai
s
</
a
>
</
div
>
</
div
>
...
...
resources/views/layouts/app.blade.php
View file @
5250d353
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
{{-- Navbar --}}
{{-- Navbar --}}
<nav
class=
"navbar navbar-expand-md navbar-dark shadow-sm"
>
<nav
class=
"navbar navbar-expand-md navbar-dark shadow-sm"
>
<div
class=
"container"
>
<div
class=
"container"
>
<a
class=
"navbar-brand"
href=
"{{route('
cancelarCadastr
o')}}"
>
<a
class=
"navbar-brand"
href=
"{{route('
visualizarEvent
o')}}"
>
{{ config('app.name', 'Laravel') }}
{{ config('app.name', 'Laravel') }}
</a>
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-toggle=
"collapse"
data-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"{{ __('Toggle navigation') }}"
>
<button
class=
"navbar-toggler"
type=
"button"
data-toggle=
"collapse"
data-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"{{ __('Toggle navigation') }}"
>
...
@@ -55,51 +55,237 @@
...
@@ -55,51 +55,237 @@
{{--
<a
class=
"nav-link"
data-toggle=
"modal"
data-target=
"#modalCadastro"
>
{{ __('Cadastro') }}
</a>
--}}
{{--
<a
class=
"nav-link"
data-toggle=
"modal"
data-target=
"#modalCadastro"
>
{{ __('Cadastro') }}
</a>
--}}
</li>
</li>
@endif
@endif
@else
@else
<li
class=
"nav-item dropdown"
>
<!-- Se o usuário for um aluno -->
@if(Auth::user()->tipo == 'administrador')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ route('grandearea.index') }}"
>
Naturezas
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('admin.editais')}}"
>
Editais
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ route('admin.usuarios') }}"
>
Usuários
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<a
class=
"dropdown-item"
href=
"{{ route('user.perfil') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
</a>
{{--
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
</a>
--}}
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
</form>
</div>
</li>
@endif
{{-- Pro-reitor --}}
@if(Auth::user()->tipo == 'administradorResponsavel')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('adminResp.editais')}}"
>
Editais
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ route('admin.usuarios') }}"
>
Usuários
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<a
class=
"dropdown-item"
href=
"{{ route('user.perfil') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
{{--
</a>
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
</a>
--}}
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
</form>
</div>
</li>
@endif
@if(Auth::user()->tipo == 'coordenador')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('coordenador.editais')}}"
>
Meus Editais
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('coordenador.usuarios')}}"
>
Usuários
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<a
class=
"dropdown-item"
href=
"{{ route('user.perfil') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
</form>
</div>
</li>
@endif
@if(Auth::user()->tipo == 'proponente')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('user.meusTrabalhos')}}"
>
Meus Trabalhos
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<a
class=
"dropdown-item"
href=
"{{ route('user.perfil') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
</form>
</div>
</li>
@endif
@if(Auth::user()->tipo == 'participante')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<a
class=
"dropdown-item"
href=
"{{ route('user.perfil') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
</form>
</div>
</li>
@endif
{{--
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
{{-- Link Perfil --}}
<a
class=
"dropdown-item"
href=
"{{ route('perfil') }}"
>
<a
class=
"dropdown-item"
href=
"{{ route('perfil') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
{{ __('Minha Conta') }}
</a>
</a>
{{-- Link Trabalhos --}}
{{--
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
--}}
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
{{ __('Participante') }}
</a>
</a>
{{-- Comissão --}}
{{-- @foreach ($comissaoEvento as $comissao)
@if($comissaoEvento->userId == Auth()->user()->id)
<a
class=
"dropdown-item"
href=
"{{ route('area.comissao') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Comissão') }}
</a>
@endif
@endforeach --}}
{{-- Link Logout --}}
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
document.getElementById('logout-form').submit();"
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
{{ __('Sair') }}
</a>
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
@csrf
</form>
</form>
</div>
</div>
</li>
</li>
--}}
@endguest
@endguest
</ul>
</ul>
</div>
</div>
...
@@ -121,4 +307,4 @@
...
@@ -121,4 +307,4 @@
@endif
@endif
</body>
</body>
</html>
</html>
\ No newline at end of file
resources/views/naturezas/area/detalhes.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top: 100px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Subáreas de '
)
.
$area
->
nome
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
"{{ route('subarea.criar', ['id' =>
$area->id
]) }}"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Criar subárea'
)
}}
</
a
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$subAreas
as
$subArea
)
<
tr
>
<
td
>
{{
$subArea
->
nome
}}
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/area/editar_area.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('area.atualizar', ['id' =>
$area->id
])}}"
>
@
csrf
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$area->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/area/index.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
{{
__
(
'Áreas'
)
}}
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$areas
as
$area
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('area.show', ['id' =>
$area->id
]) }}"
class
=
"visualizarEvento"
>
{{
$area
->
nome
}}
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('area.show', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"{{ route('area.editar', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"{{ route('area.deletar', ['id' =>
$area->id
]) }}"
>
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/area/nova_area.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Criar uma nova área'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('area.salvar', ['id' =>
$grandeAreaId
])}}"
>
@
csrf
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/grandeArea/detalhes.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top: 100px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Áreas de '
)
.
$grandeArea
->
nome
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
"{{route('area.criar', ['id' =>
$grandeArea->id
] )}}"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Criar Área'
)
}}
</
a
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$areas
as
$area
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('area.show', ['id' =>
$area->id
]) }}"
class
=
"visualizarEvento"
>
{{
$area
->
nome
}}
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('area.show', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"{{ route('area.editar', ['id' =>
$area->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"{{ route('area.deletar', ['id' =>
$area->id
]) }}"
>
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/grandeArea/editar_grande_area.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.atualizar', ['id' =>
$grandeArea->id
])}}"
>
@
csrf
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$grandeArea->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/grandeArea/index.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top: 100px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Grandes áreas'
)
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
"
{
{route('grandearea.criar')}
}
"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Criar grande área'
)
}}
</
a
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$grandesAreas
as
$grandeArea
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$grandeArea->id
]) }}"
class
=
"visualizarEvento"
>
{{
$grandeArea
->
nome
}}
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$grandeArea->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"{{ route('grandearea.editar', ['id' =>
$grandeArea->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.deletar', ['id' =>
$grandeArea->id
]) }}"
>
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/grandeArea/nova_grande_area.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Criar uma nova área'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.salvar')}}"
>
@
csrf
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
Prev
1
2
3
4
5
6
Next
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