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
Show whitespace changes
Inline
Side-by-side
resources/views/naturezas/index.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
Administrador
</
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('grandearea.index') }}"
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"
>
Grande
Area
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('area.index') }}"
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"
>
Area
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('subarea.index') }}"
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"
>
Subárea
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/naturezas/subArea/editar_subarea.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 subárea'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.atualizar', ['id' =>
$subarea->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
=
"{{
$subarea->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/subArea/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; "
>
{{
__
(
'Subáreas'
)
}}
</
h2
>
</
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/subArea/nova_subarea.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 subárea'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.salvar', ['id' =>
$areaId
])}}"
>
@
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/participante/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
=
"#"
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
>
</
div
>
@
endsection
resources/views/proponente/index.blade.php
0 → 100644
View file @
5250d353
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px;"
>
Proponente
</
h2
>
</
div
>
@
endsection
resources/views/user/meusTrabalhos.blade.php
View file @
5250d353
...
...
@@ -54,16 +54,14 @@
<
div
class
=
"col-sm-10"
>
<
h1
>
Meus
Trabalhos
</
h1
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('home')}
}
"
class
=
"btn btn-primary"
>
Eventos
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Como
Autor
</
h4
>
<
h4
>
Como
Proponente
</
h4
>
</
div
>
</
div
>
...
...
@@ -82,7 +80,7 @@
</
tr
>
</
thead
>
<
tbody
>
{{
--
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align:center"
>
...
...
@@ -104,7 +102,7 @@
</
a
>
</
td
>
</
tr
>
@
endforeach
--
}}
@
endforeach
</
tbody
>
</
table
>
</
div
>
...
...
resources/views/user/perfilUser.blade.php
View file @
5250d353
...
...
@@ -67,14 +67,123 @@
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
label
for
=
"instituicao"
class
=
"col-form-label"
>
{{
__
(
'E-mail'
)
}}
</
label
>
<
input
value
=
"
{
{$user->email}
}
"
id
=
"email"
type
=
"text"
class
=
"form-control @error('email') is-invalid @enderror"
name
=
"instituicao"
value
=
"{{ old('email') }}"
autocomplete
=
"email"
autofocus
>
@
error
(
'instituicao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
<
p
>
Permissões
</
p
>
</
div
>
</
div
>
{{
--
Endereço
--
}}
@
if
(
!
(
is_null
(
$adminResp
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
Administrador
Responsável
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
Administrador
Responsável
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$avaliador
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
Aváliador
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
Aváliador
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$proponente
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
proponente
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Dados
de
proponente
</
p
>
</
div
>
</
div
>
<
label
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->SIAPE}
}
"
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
autocomplete
=
"SIAPE"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Vinculo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->titulacaoMaxima}
}
"
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Nivel'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->linkLattes}
}
"
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
autocomplete
=
"linkLattes"
>
<
br
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
proponente
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$participante
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
participante
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
participante
</
div
>
</
div
>
@
endif
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
</
div
>
</
div
>
--
}}
{{
--
Endereço
--
}}
{{
--
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
onblur
=
"pesquisacep(this.value);"
value
=
"
{
{$end->cep}
}
"
id
=
"cep"
type
=
"text"
class
=
"form-control @error('cep') is-invalid @enderror"
name
=
"cep"
required
autocomplete
=
"cep"
>
...
...
@@ -133,7 +242,7 @@
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
{{
--
<
input
id
=
"uf"
type
=
"text"
class
=
"form-control @error('uf') is-invalid @enderror"
name
=
"uf"
value
=
"{{ old('uf') }}"
required
autocomplete
=
"uf"
autofocus
>
--
}}
<
select
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<
option
@
if
(
$end
->
uf
==
'AC'
)
selected
@
endif
value
=
"AC"
>
Acre
</
option
>
...
...
@@ -183,7 +292,7 @@
{{
__
(
'Concluir'
)
}}
</
button
>
</
div
>
</
div
>
</
div
>
--
}}
</
form
>
</
div
>
...
...
@@ -256,12 +365,108 @@
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
<
p
>
Permissões
</
p
>
</
div
>
</
div
>
{{
--
Endereço
--
}}
@
if
(
!
(
is_null
(
$adminResp
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
Administrador
Responsável
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
Administrador
Responsável
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$avaliador
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
Aváliador
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
Aváliador
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$proponente
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
proponente
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Dados
de
proponente
</
p
>
</
div
>
</
div
>
<
label
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->SIAPE}
}
"
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
autocomplete
=
"SIAPE"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Vinculo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->titulacaoMaxima}
}
"
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Nivel'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->linkLattes}
}
"
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
autocomplete
=
"linkLattes"
>
<
br
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
proponente
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$participante
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
pemissão
de
participante
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
pemissão
de
participante
</
div
>
</
div
>
@
endif
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
</
div
>
</
div
>
--
}}
{{
--
Endereço
--
}}
{{
--
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
onblur
=
"pesquisacep(this.value);"
value
=
"
{
{old('cep')}
}
"
id
=
"cep"
type
=
"text"
class
=
"form-control @error('cep') is-invalid @enderror"
name
=
"cep"
required
autocomplete
=
"cep"
>
...
...
@@ -320,7 +525,6 @@
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
{{
--
<
input
id
=
"uf"
type
=
"text"
class
=
"form-control @error('uf') is-invalid @enderror"
name
=
"uf"
value
=
"{{ old('uf') }}"
required
autocomplete
=
"uf"
autofocus
>
--
}}
<
select
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<
option
value
=
"AC"
>
Acre
</
option
>
...
...
@@ -370,7 +574,7 @@
{{
__
(
'Concluir'
)
}}
</
button
>
</
div
>
</
div
>
</
div
>
--
}}
</
form
>
</
div
>
...
...
routes/web.php
View file @
5250d353
...
...
@@ -11,35 +11,94 @@
|
*/
use
App\Evento
;
Route
::
get
(
'/'
,
function
()
{
if
(
Auth
::
check
()){
return
redirect
()
->
route
(
'home'
);
}
$eventos
=
Evento
::
all
();
return
view
(
'index'
,[
'eventos'
=>
$eventos
]);
});
Route
::
get
(
'/#'
,
function
()
{
if
(
Auth
::
check
()){
return
redirect
()
->
route
(
'home'
);
}
// Route::get('/', function () {
// if(Auth::check()){
// return redirect()->route('home');
// }
// $eventos = Evento::all();
// return view('index',['eventos'=>$eventos]);
// });
$eventos
=
Evento
::
all
();
return
view
(
'index'
,[
'eventos'
=>
$eventos
]);
})
->
name
(
'cancelarCadastro'
);
Route
::
get
(
'/'
,
'UserController@index'
)
->
name
(
'home-user'
);
//Route::get('/visualizarEvento', 'UserController@index')->name('visualizarEvento');
// Route::get('/#', function () {
// if(Auth::check()){
// return redirect()->route('home');
// }
Route
::
get
(
'/evento/visualizar/naologado/{id}'
,
'EventoController@showNaoLogado'
)
->
name
(
'evento.visualizarNaoLogado'
);
// $eventos = Evento::all();
// return view('index',['eventos'=>$eventos]);
// })->name('cancelarCadastro');
Route
::
get
(
'/evento/visualizar/naologado/{id}'
,
'EventoController@showNaoLogado'
)
->
name
(
'evento.visualizarNaoLogado'
);
Auth
::
routes
([
'verify'
=>
true
]);
Route
::
get
(
'/perfil'
,
'UserController@perfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
post
(
'/perfil'
,
'UserController@editarPerfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
// Rotas Administrador
Route
::
get
(
'/home-admin'
,
'AdministradorController@index'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.index'
);
Route
::
get
(
'/usuarios'
,
'AdministradorController@usuarios'
)
->
middleware
(
'checkAdminResp'
)
->
name
(
'admin.usuarios'
);
Route
::
get
(
'/perfil-usuario'
,
'UserController@minhaConta'
)
->
middleware
(
'auth'
)
->
name
(
'user.perfil'
);
//Rotas da administração dos usuários
Route
::
get
(
'/usuarios/novo'
,
'AdministradorController@create'
)
->
middleware
(
'checkAdminResp'
)
->
name
(
'admin.user.create'
);
Route
::
post
(
'/usuarios/salvar-novo'
,
'AdministradorController@salvar'
)
->
middleware
(
'checkAdminResp'
)
->
name
(
'admin.user.store'
);
Route
::
get
(
'/usuarios/editar/{id}'
,
'AdministradorController@edit'
)
->
middleware
(
'checkAdminResp'
)
->
name
(
'admin.user.edit'
);
Route
::
post
(
'/usuarios/editar/atualizar/{id}'
,
'AdministradorController@update'
)
->
middleware
(
'checkAdminResp'
)
->
name
(
'admin.user.update'
);
Route
::
post
(
'/usuarios/editar/deletar/{id}'
,
'AdministradorController@destroy'
)
->
middleware
(
'checkAdminResp'
)
->
name
(
'admin.user.destroy'
);
Route
::
get
(
'admin/editais'
,
'AdministradorController@editais'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.editais'
);
// Rotas de administrador responsavel (Reitor ou pro-reitor)
Route
::
get
(
'adminResp/editais'
,
'AdministradorResponsavelController@editais'
)
->
name
(
'adminResp.editais'
);
Route
::
get
(
'adminResp/usuarios'
,
'AdministradorResponsavelController@usuarios'
)
->
name
(
'adminResp.usuarios'
);
Route
::
get
(
'adminResp/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'adminResp.atribuir'
);
Route
::
post
(
'adminResp/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'adminResp.atribuir'
);
Route
::
post
(
'adminResp/verPermissao'
,
'AdministradorResponsavelController@verPermissao'
)
->
name
(
'adminResp.verPermissao'
);
//Rotas das naturezas
//Rotas das grandes areas
Route
::
get
(
'/naturezas'
,
'AdministradorController@naturezas'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.naturezas'
);
Route
::
get
(
'/naturezas/grande-area'
,
'GrandeAreaController@index'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.index'
);
Route
::
get
(
'/naturezas/grande-area/nova'
,
'GrandeAreaController@create'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.criar'
);
Route
::
post
(
'/naturezas/grande-area/salvar'
,
'GrandeAreaController@store'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.salvar'
);
Route
::
get
(
'/naturezas/grande-area/detalhes/{id}'
,
'GrandeAreaController@show'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.show'
);
Route
::
get
(
'/naturezas/grande-area/editar/{id}'
,
'GrandeAreaController@edit'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.editar'
);
Route
::
post
(
'/naturezas/grande-area/atualizar/{id}'
,
'GrandeAreaController@update'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.atualizar'
);
Route
::
post
(
'/naturezas/grande-area/excluir/{id}'
,
'GrandeAreaController@destroy'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.deletar'
);
//Rotas das areas, id's de nova e salvar são os ids da grande área a qual a nova área pertence
Route
::
get
(
'/naturezas/areas'
,
'AreaController@index'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.index'
);
Route
::
get
(
'/naturezas/{id}/area/nova'
,
'AreaController@create'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.criar'
);
Route
::
post
(
'/naturezas/{id}/area/salvar'
,
'AreaController@store'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.salvar'
);
Route
::
get
(
'/naturezas/area/detalhes/{id}'
,
'AreaController@show'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.show'
);
Route
::
get
(
'/naturezas/area/editar/{id}'
,
'AreaController@edit'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.editar'
);
Route
::
post
(
'/naturezas/area/atualizar/{id}'
,
'AreaController@update'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.atualizar'
);
Route
::
post
(
'/naturezas/area/excluir/{id}'
,
'AreaController@destroy'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'area.deletar'
);
//Rotas das subareas, id's de nova e salvar são os ids da área a qual a nova subárea pertence
Route
::
get
(
'/naturezas/subareas'
,
'SubAreaController@index'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.index'
);
Route
::
get
(
'/naturezas/{id}/subarea/nova'
,
'SubAreaController@create'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.criar'
);
Route
::
post
(
'/naturezas/{id}/subarea/salvar'
,
'SubAreaController@store'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.salvar'
);
Route
::
get
(
'/naturezas/subarea/detalhes/{id}'
,
'SubAreaController@show'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.show'
);
Route
::
get
(
'/naturezas/subarea/editar/{id}'
,
'SubAreaController@edit'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.editar'
);
Route
::
post
(
'/naturezas/subarea/atualizar/{id}'
,
'SubAreaController@update'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.atualizar'
);
Route
::
post
(
'/naturezas/subarea/excluir/{id}'
,
'SubAreaController@destroy'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'subarea.deletar'
);
// Rotas Coordenador
Route
::
get
(
'/coordenador/home'
,
'CoordenadorComissaoController@index'
)
->
name
(
'coordenador.index'
);
Route
::
get
(
'/coordenador/editais'
,
'CoordenadorComissaoController@editais'
)
->
name
(
'coordenador.editais'
);
Route
::
get
(
'/coordenador/usuarios'
,
'CoordenadorComissaoController@usuarios'
)
->
name
(
'coordenador.usuarios'
);
Route
::
get
(
'/coordenador/listarCoord'
,
'CoordenadorComissaoController@coordenadorComite'
)
->
name
(
'coordenador.coord'
);
Route
::
get
(
'/coordenador/listarAvaliador'
,
'CoordenadorComissaoController@avaliador'
)
->
name
(
'coordenador.avaliador'
);
Route
::
get
(
'/coordenador/listarProponente'
,
'CoordenadorComissaoController@proponente'
)
->
name
(
'coordenador.proponente'
);
Route
::
get
(
'/coordenador/listarParticipante'
,
'CoordenadorComissaoController@participante'
)
->
name
(
'coordenador.participante'
);
Route
::
group
([
'middleware'
=>
[
'isTemp'
,
'auth'
,
'verified'
]],
function
(){
Route
::
get
(
'/home'
,
'EventoController@index'
)
->
name
(
'
home
'
);
Route
::
get
(
'/home
/evento
'
,
'EventoController@index'
)
->
name
(
'
visualizarEvento
'
);
// rotas de teste
Route
::
get
(
'/coordenador/home'
,
'EventoController@index'
)
->
name
(
'coord.home'
);
...
...
@@ -58,6 +117,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
get
(
'/evento/criar'
,
'EventoController@create'
)
->
name
(
'evento.criar'
);
Route
::
post
(
'/evento/criar'
,
'EventoController@store'
)
->
name
(
'evento.criar'
);
Route
::
get
(
'/evento/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'evento.visualizar'
);
Route
::
get
(
'/evento/listar'
,
'EventoController@listar'
)
->
name
(
'evento.listar'
);
Route
::
delete
(
'/evento/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'evento.deletar'
);
Route
::
get
(
'/evento/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'evento.editar'
);
Route
::
post
(
'/evento/editar/{id}'
,
'EventoController@update'
)
->
name
(
'evento.update'
);
...
...
@@ -97,3 +157,5 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
get
(
'/area/comissao'
,
'EventoController@listComissaoTrabalhos'
)
->
name
(
'area.comissao'
);
});
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
)
->
middleware
(
'verified'
);
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