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
e9276910
Commit
e9276910
authored
Apr 04, 2023
by
WhiteHabbyt
Browse files
Merge branch 'master' of
https://github.com/NetoSK9/submeta
parents
891f693d
6295b7c8
Changes
30
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/resultadosProjetos.blade.php
View file @
e9276910
...
...
@@ -66,7 +66,7 @@
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'aprovado'
)
<
tr
>
...
...
@@ -102,18 +102,33 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
...
...
@@ -200,18 +215,33 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
...
...
@@ -299,18 +329,33 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
...
...
resources/views/administrador/visualizarParecerBarema.blade.php
0 → 100644
View file @
e9276910
@
extends
(
'layouts.app'
)
@
php
$i
=
0
;
$numCampos
=
0
;
@
endphp
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary mb-2"
>
Voltar
</
a
>
<
h5
class
=
"card-title"
>
Parecer
do
avaliador
:
{{
$avaliador
->
user
->
name
}}
</
h5
>
<
h6
class
=
"card-title"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
>
<
p
class
=
"card-text"
>
<
div
class
=
"form-group"
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
</
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Prioridade
</
th
>
<
th
><
strong
>
Nota
da
avaliação
</
strong
></
th
>
</
tr
>
@
foreach
(
$camposAvaliacao
as
$campoAvaliacao
)
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][nome]"
class
=
"form-control nome"
value
=
"{{
$campoAvaliacao->nome
}}"
disabled
/></
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][descricao]"
class
=
"form-control descricao"
value
=
"{{
$campoAvaliacao->descricao
}}"
disabled
/>
</
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_maxima]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->nota_maxima
}}"
disabled
/></
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_prioridade]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->prioridade
}}"
disabled
/></
td
>
<
td
>
<
input
type
=
"number"
min
=
"0"
max
=
"{{
$campoAvaliacao->nota_maxima
}}"
step
=
"1"
name
=
"inputField[
{
{$i}
}
][nota]"
class
=
"form-control nota"
value
=
"
{
{$avalTrabalho->values()->get($i)->nota}
}
"
style
=
"font-weight: bold;"
disabled
/>
</
td
>
</
tr
>
@
php
++
$i
;
++
$numCampos
;
@
endphp
@
endforeach
</
table
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Pontuação
:
<
strong
>
{{
$parecer
->
pontuacao
}}
</
strong
>
</
label
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Recomendação
:
<
strong
>
{{
$parecer
->
recomendacao
}}
</
strong
>
</
label
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
resources/views/administrador/visualizarParecerLink.blade.php
0 → 100644
View file @
e9276910
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary mb-2"
>
Voltar
</
a
>
<
h5
class
=
"card-title"
>
Parecer
do
avaliador
:
{{
$avaliador
->
user
->
name
}}
</
h5
>
<
h6
class
=
"card-title"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
>
<
p
class
=
"card-text"
>
<
div
class
=
"form-group"
>
<
label
>
Link
para
parecer
:
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
name
=
"textParecer"
value
=
"{{
$evento->formAvaliacaoExterno
}}"
disabled
/>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Pontuação
:
<
strong
>
{{
$parecer
->
pontuacao
}}
</
strong
>
</
label
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Recomendação
:
<
strong
>
{{
$parecer
->
recomendacao
}}
</
strong
>
</
label
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
resources/views/avaliador/listarTrabalhos.blade.php
View file @
e9276910
...
...
@@ -165,7 +165,7 @@
</
div
>
@
endif
@
if
(
$trabalhosEx
!=
null
)
@
if
(
$trabalhosEx
!=
null
)
<
div
class
=
"form-group mb-0"
style
=
"margin-left: 20px;margin-top: 20px;"
>
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Avaliação
<
i
>
Ad
Hoc
</
i
>
do
Edital
:
{{
$evento
->
nome
}}
</
h5
>
</
div
>
...
...
@@ -249,7 +249,102 @@
</
tbody
>
</
table
>
</
div
>
@
endif
@
endif
@
if
(
$trabalhos
!=
null
)
<
div
class
=
"form-group mb-0"
style
=
"margin-left: 20px;margin-top: 20px;"
>
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Avaliação
do
Edital
:
{{
$evento
->
nome
}}
</
h5
>
</
div
>
<
hr
class
=
"mb-0"
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered table-hover"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
style
=
"width:100%"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Projeto
</
th
>
<
th
scope
=
"col"
>
Plano
de
Trabalho
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
$trabalho
->
created_at
->
format
(
'd/m/Y'
)
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
--
--
}}
<
a
href
=
"{{route('download', ['file' =>
$trabalho->anexoProjeto
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
$planoTrabalho
=
App\Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
@
endphp
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$planoTrabalho->id
]) }}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalho
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalho
=
null
;
}
@
endphp
@
if
(
$planoTrabalho
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalho
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
@
endif
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
Recomendado
@
elseif
(
$trabalho
->
pivot
->
recomendacao
==
null
)
Pendente
@
else
Não
Recomendado
@
endif
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
@
if
(
$evento
->
tipoAvaliacao
==
'campos'
)
<
form
action
=
"{{ route('avaliador.parecerBarema', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Parecer
</
button
>
</
form
>
@
else
<
form
action
=
"{{ route('avaliador.parecerLink', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Parecer
</
button
>
</
form
>
@
endif
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
...
...
resources/views/avaliador/parecerBarema.blade.php
0 → 100644
View file @
e9276910
@
extends
(
'layouts.app'
)
@
php
$i
=
0
;
$numCampos
=
0
;
@
endphp
@
section
(
'content'
)
<
div
class
=
"row justify-content-center"
>
<!--
Proponente
Dados
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:4rem;padding: 0px"
>
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Anexos
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-left"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
<
br
>
{{
--
Autorização
Especial
--
}}
@
if
(
$trabalho
->
evento
->
natureza_id
!=
3
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
<
br
>
@
endif
{{
--
Anexo
(
s
)
do
Plano
(
s
)
de
Trabalho
--
}}
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalhoTemp
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalhoTemp
=
null
;
}
@
endphp
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
title
=
"
{
{$participante->planoTrabalho->titulo}
}
"
>
{{
__
(
'Projeto: '
)
}}{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
@
if
(
$planoTrabalhoTemp
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalhoTemp
])}}"
><
img
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
endif
</
div
>
@
endforeach
{{
--
Documento
Extra
--
}}
@
if
(
$trabalho
->
evento
->
nome_docExtra
!=
null
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexo_docExtra"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
$trabalho
->
evento
->
nome_docExtra
}}
:@
if
(
$trabalho
->
evento
->
obrigatoriedade_docExtra
==
true
)
<
span
style
=
"color: red; font-weight:bold"
>*</
span
>
@
endif
</
label
>
@
if
(
$trabalho
->
anexo_docExtra
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.docExtra', ['id' =>
$trabalho->id
]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
@
endif
</
div
>
<
br
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-10 justify-content-center"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Meu
parecer
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
form
method
=
"POST"
action
=
"
{
{route('avaliador.enviarParecerBarema')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"
{
{$trabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"
{
{$evento->id}
}
"
>
<
div
class
=
"form-group"
>
<
p
>
Preencha
os
valores
da
notas
a
partir
de
cada
critério
.
</
p
>
<
div
class
=
"justify-content-center"
id
=
"displayCampos"
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
</
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Prioridade
</
th
>
<
th
>
Nota
da
avaliação
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
</
tr
>
@
foreach
(
$camposAvaliacao
as
$campoAvaliacao
)
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][nome]"
class
=
"form-control nome"
value
=
"{{
$campoAvaliacao->nome
}}"
disabled
/></
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][descricao]"
class
=
"form-control descricao"
value
=
"{{
$campoAvaliacao->descricao
}}"
disabled
/>
</
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_maxima]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->nota_maxima
}}"
disabled
/></
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_prioridade]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->prioridade
}}"
disabled
/></
td
>
<
td
><
input
type
=
"number"
min
=
"0"
max
=
"{{
$campoAvaliacao->nota_maxima
}}"
step
=
"1"
name
=
"inputField[
{
{$i}
}
][nota]"
class
=
"form-control nota"
required
/>
</
tr
>
<
input
type
=
"checkbox"
id
=
"checkB[
{
{$i}
}
]"
checked
name
=
"campos[]"
value
=
"
{
{$i}
}
"
hidden
>
@
php
++
$i
;
++
$numCampos
;
@
endphp
@
endforeach
</
table
>
</
div
>
</
div
>
<
p
>
Por
fim
,
informe
a
sua
recomendação
.
</
p
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Recomendação
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
select
class
=
"custom-select"
name
=
"recomendacao"
required
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
selected
@
endif
value
=
"RECOMENDADO"
>
RECOMENDADO
</
option
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'NAO-RECOMENDADO'
)
selected
@
endif
value
=
"NAO-RECOMENDADO"
>
NAO
-
RECOMENDADO
</
option
>
</
select
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"d-flex justify-content-end"
>
<
div
style
=
"margin-right: 15px"
><
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
])}}"
class
=
"btn btn-light"
style
=
"color: red;"
>
Cancelar
</
a
></
div
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
@
if
(
$evento
->
inicioRevisao
>
$hoje
||
$evento
->
fimRevisao
<
$hoje
)
disabled
@
endif
>
Enviar
meu
parecer
</
button
></
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
<
style
>
label
{
font
-
weight
:
bold
;
}
</
style
>
resources/views/avaliador/parecerLink.blade.php
0 → 100644
View file @
e9276910
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"row justify-content-center"
>
<!--
Proponente
Dados
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:4rem;padding: 0px"
>
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Anexos
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-left"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
<
br
>
{{
--
Autorização
Especial
--
}}
@
if
(
$trabalho
->
evento
->
natureza_id
!=
3
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
<
br
>
@
endif
{{
--
Anexo
(
s
)
do
Plano
(
s
)
de
Trabalho
--
}}
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalhoTemp
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalhoTemp
=
null
;
}
@
endphp
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
title
=
"
{
{$participante->planoTrabalho->titulo}
}
"
>
{{
__
(
'Projeto: '
)
}}{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
@
if
(
$planoTrabalhoTemp
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalhoTemp
])}}"
><
img
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
endif
</
div
>
@
endforeach
{{
--
Documento
Extra
--
}}
@
if
(
$trabalho
->
evento
->
nome_docExtra
!=
null
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexo_docExtra"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
$trabalho
->
evento
->
nome_docExtra
}}
:@
if
(
$trabalho
->
evento
->
obrigatoriedade_docExtra
==
true
)
<
span
style
=
"color: red; font-weight:bold"
>*</
span
>
@
endif
</
label
>
@
if
(
$trabalho
->
anexo_docExtra
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.docExtra', ['id' =>
$trabalho->id
]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
@
endif
</
div
>
<
br
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<!--
TO
AKI
-->
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Meu
parecer
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
></
div
>
</
div
>
<
form
method
=
"POST"
action
=
"
{
{route('avaliador.enviarParecerLink')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Parecer
</
label
>
<
div
>
<
p
>
Responda
ao
formulário
no
link
abaixo
para
enviar
seu
parecer
.
</
p
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
name
=
"textParecer"
value
=
"{{
$evento->formAvaliacaoExterno
}}"
disabled
/>
</
div
>
</
div
>
<
p
>
Por
fim
,
informe
a
pontuação
(
caso
necessário
)
e
sua
recomendação
.
</
p
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Pontuação
</
label
>
<
input
class
=
"form-control"
name
=
"pontuacao"
type
=
"number"
max
=
"10"
min
=
"0"
value
=
"{{
$trabalho->pivot
->pontuacao }}"
/>
</
div
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Recomendação
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
select
class
=
"custom-select"
name
=
"recomendacao"
required
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
selected
@
endif
value
=
"RECOMENDADO"
>
RECOMENDADO
</
option
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'NAO-RECOMENDADO'
)
selected
@
endif
value
=
"NAO-RECOMENDADO"
>
NAO
-
RECOMENDADO
</
option
>
</
select
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"d-flex justify-content-end"
>
<
div
style
=
"margin-right: 15px"
><
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
])}}"
class
=
"btn btn-light"
style
=
"color: red;"
>
Cancelar
</
a
></
div
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
@
if
(
$evento
->
inicioRevisao
>
$hoje
||
$evento
->
fimRevisao
<
$hoje
)
disabled
@
endif
>
Enviar
meu
parecer
</
button
></
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
<
style
>
label
{
font
-
weight
:
bold
;
}
</
style
>
resources/views/coordenadorComissao/editais.blade.php
View file @
e9276910
...
...
@@ -67,10 +67,12 @@
<
a
href
=
"{{route('admin.pareceres', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Visualizar
Pareceres
</
a
>
@
if
(
$evento
->
tipoAvaliacao
!=
"link"
)
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.showResultados', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Resultados
</
a
>
@
endif
<
hr
class
=
"dropdown-hr"
>
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"dropdown-item dropdown-item-delete text-center"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModal{{
$evento->id
}}"
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
e9276910
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
...
...
@@ -395,6 +394,144 @@
</
div
>
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Avaliação
</
p
>
</
div
>
</
div
>
<
div
class
=
"my-2"
>
<
p
style
=
"font-size: 16px"
>
Como
a
avaliação
será
realizada
?</
p
>
</
div
>
<
div
class
=
"mb-2"
>
<
input
type
=
"radio"
id
=
"radioForm"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('form')"
@
if
((
old
(
'tipoAvaliacao'
)
==
'form'
)
||
old
(
'tipoAvaliacao'
)
==
""
)
checked
@
endif
value
=
"form"
>
<
label
for
=
"radioForm"
style
=
"margin-right: 5px"
>
Formulário
(
em
pdf
)
</
label
>
<
input
type
=
"radio"
id
=
"radioCampos"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('campos')"
@
if
(
old
(
'tipoAvaliacao'
)
==
'campos'
)
checked
@
endif
value
=
"campos"
>
<
label
for
=
"radioCampos"
style
=
"margin-right: 5px"
>
Barema
</
label
>
<
input
type
=
"radio"
id
=
"radioLink"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('link')"
@
if
(
old
(
'tipoAvaliacao'
)
==
'link'
)
checked
@
endif
value
=
"link"
>
<
label
for
=
"radioLink"
style
=
"margin-right: 5px"
>
Link
</
label
><
br
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
id
=
"displayForm"
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
@
if
(
old
(
'pdfFormAvalExternoPreenchido'
)
!=
null
)
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"docTutorial"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
old
(
'docTutorialPreenchido'
)
!=
null
)
<
a
id
=
"docTutorialTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'docTutorial' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"docTutorialPreenchido"
name
=
"docTutorialPreenchido"
value
=
"{{ old('docTutorialPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.docx,.doc,.zip"
class
=
"form-control-file pdf @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ser
de
até
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px; display: none"
id
=
"displayCampos"
>
<
div
class
=
"row align-items-end mb-4"
>
<
label
class
=
"col-sm-3"
for
=
"pontuacao"
>
Valor
total
da
pontuação
por
Barema
:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
type
=
"number"
name
=
"pontuacao"
min
=
"1"
class
=
"col-sm-1 form-control"
id
=
"pontuacao"
value
=
"
{
{old('pontuacao')}
}
"
/>
</
div
>
<
label
>
Campos
do
Barema
:</
label
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Prioridade
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Ação
</
th
>
</
tr
>
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[0][nome]"
class
=
"form-control nome @error('inputField.*.nome') is-invalid @enderror"
value
=
"{{ old('inputField[0][nome]') }}"
/>
@
error
(
'inputField.*.nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[0][descricao]"
class
=
"form-control descricao @error('inputField.*.descricao') is-invalid @enderror"
value
=
"{{ old('inputField[0][descricao]') }}"
/>
@
error
(
'inputField.*.descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"number"
min
=
"1"
step
=
"1"
name
=
"inputField[0][nota_maxima]"
class
=
"form-control nota_maxima @error('inputField.*.nota_maxima') is-invalid @enderror"
value
=
"{{ old('inputField[0][nota_maxima]') }}"
/>
@
error
(
'inputField.*.nota_maxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
>
<
select
name
=
"inputField[0][prioridade]"
class
=
"form-control prioridade @error('inputField.*.prioridade') is-invalid @enderror"
>
<
option
value
=
""
selected
>--
ORDEM
--</
option
>
<
option
value
=
"1"
class
=
"ordem_option"
>
1
</
option
>
</
select
>
@
error
(
'inputField.*.prioridade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
>
Adicionar
</
button
></
td
>
</
tr
>
</
table
>
@
if
(
$errors
->
has
(
'inputField.*'
))
<
div
class
=
"col-sm-12 alert alert-danger"
id
=
"inputFieldError"
>
Você
deve
preencher
os
campos
obrigatórios
.
</
div
>
@
endif
<
div
class
=
"col-sm-12 alert alert-danger"
style
=
"display: none"
id
=
"nota_maxima_invalida"
>
A
soma
das
notas
máximas
deve
ser
igual
a
pontuação
total
definida
.
</
div
>
<
input
type
=
"checkbox"
id
=
"checkB[0]"
checked
name
=
"campos[]"
value
=
"0"
hidden
>
<
input
type
=
"number"
name
=
"somaNotas"
value
=
"0"
id
=
"somaNotas"
hidden
>
</
div
>
<
div
class
=
"col-sm-12 row"
style
=
"margin-top:10px; display: none"
id
=
"displayLink"
>
<
label
for
=
"link"
class
=
"col-form-label"
>
{{
__
(
'Link para o formulário:'
)
}}
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
id
=
"link"
type
=
"text"
class
=
"form-control @error("
link
") is-invalid @enderror"
name
=
"link"
value
=
"{{ old('link') }}"
>
@
error
(
'link'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
...
...
@@ -437,23 +574,8 @@
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
@
if
(
old
(
'pdfFormAvalExternoPreenchido'
)
!=
null
)
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
de
avaliação
do
relatório
:</
label
>
@
if
(
old
(
'pdfFormAvalRelatorioPreenchido'
)
!=
null
)
...
...
@@ -469,22 +591,6 @@
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"docTutorial"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
old
(
'docTutorialPreenchido'
)
!=
null
)
<
a
id
=
"docTutorialTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'docTutorial' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"docTutorialPreenchido"
name
=
"docTutorialPreenchido"
value
=
"{{ old('docTutorialPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.docx,.doc,.zip"
class
=
"form-control-file pdf @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ser
de
atÃ
©
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
...
...
@@ -493,7 +599,7 @@
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('admin.editais') }}"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
<
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"
id
=
"idButtonSubmitEvento"
style
=
"width:100%"
>
{{
__
(
'Criar Edital'
)
}}
</
button
>
</
div
>
...
...
@@ -501,10 +607,152 @@
</
form
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
var
i
=
0
;
var
numCampos
=
1
;
var
currentOptions
=
{
'0'
:
''
}
$
(
document
)
.
ready
(
function
()
{
displayTipoAvaliacao
(
"{{ old('tipoAvaliacao') }}"
)
});
// Adiciona campo de avaliação
$
(
"#dynamic-ar"
)
.
click
(
function
()
{
++
i
;
++
numCampos
;
$
(
"#dynamicAddRemove"
)
.
append
(
'<tr><td><input type="text" name="inputField['
+
i
+
'][nome]" class="form-control nome @error("inputField.*.nome") is-invalid @enderror" /></td><td><input type="text" name="inputField['
+
i
+
'][descricao]" class="form-control descricao @error("inputField.*.descricao") is-invalid @enderror"/></td><td><input type="number" min="1" step="1" name="inputField['
+
i
+
'][nota_maxima]" class="form-control nota_maxima @error("inputField.*.nota_maxima") is-invalid @enderror" /></td><td><select name="inputField['
+
i
+
'][prioridade]" class="form-control prioridade @error("inputField.*.prioridade") is-invalid @enderror"><option value="" selected>-- ORDEM --</option><option value="1" class="ordem_option">1</option></select></td><td><button type="button" class="btn btn-outline-danger remove-input-field" name="removeButton['
+
i
+
']">Remover</button></td></tr>'
);
$
(
"#displayCampos"
)
.
append
(
'<input type="checkbox" id="checkB['
+
i
+
']" checked name="campos[]" value="'
+
i
+
'" hidden>'
);
$
(
".prioridade"
)
.
children
()
.
remove
(
".dynamic"
);
// Exibe opções caso estejam ocultas
$
(
'.ordem_option'
)
.
show
();
$
(
".prioridade"
)
.
each
(
function
()
{
// Resetando os valores selecionados
$
(
this
)
.
val
(
""
)
.
change
();
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
currentOptions
[
selectId
]
=
''
;
for
(
let
x
=
2
;
x
<=
numCampos
;
x
++
)
{
$
(
this
)
.
append
(
'<option value="'
+
x
+
'" class="ordem_option dynamic">'
+
x
+
'</option>'
)
}
})
});
// Exclui campo de avaliação
$
(
document
)
.
on
(
'click'
,
'.remove-input-field'
,
function
()
{
$
(
this
)
.
parents
(
'tr'
)
.
remove
();
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
currentOption
=
currentOptions
[
selectId
];
document
.
getElementById
(
'checkB['
+
selectId
+
']'
)
.
remove
();
$
(
'.ordem_option[value|="'
+
currentOption
+
'"]'
)
.
show
();
delete
currentOptions
[
selectId
];
$
(
'.dynamic[value|="'
+
numCampos
+
'"]'
)
.
remove
();
--
numCampos
;
});
$
(
"#dynamicAddRemove"
)
.
on
(
'change'
,
'.prioridade'
,
function
()
{
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
newOption
=
$
(
this
)
.
val
();
currentOption
=
currentOptions
[
selectId
];
$
(
'.ordem_option[value|="'
+
currentOption
+
'"]'
)
.
show
();
$
(
'.ordem_option[value|="'
+
newOption
+
'"]'
)
.
hide
();
currentOptions
[
selectId
]
=
newOption
;
});
$
(
'#pontuacao'
)
.
on
(
'input'
,
function
()
{
validateNotas
();
})
$
(
"#dynamicAddRemove"
)
.
on
(
'input'
,
'.nota_maxima'
,
function
()
{
validateNotas
();
});
function
validateNotas
()
{
pontuacao
=
$
(
"#pontuacao"
)
.
val
();
if
(
pontuacao
==
""
)
{
alert
(
"Escolha o valor total da pontuação antes de adicionar as notas máximas!"
)
$
(
'.nota_maxima'
)
.
val
(
""
);
}
else
{
somaNotas
=
0
;
$
(
".nota_maxima"
)
.
each
(
function
()
{
valor
=
Number
(
$
(
this
)
.
val
());
if
(
valor
!=
0
)
{
somaNotas
+=
valor
;
}
});
$
(
'#somaNotas'
)
.
val
(
somaNotas
);
if
(
somaNotas
!=
pontuacao
)
{
$
(
'.nota_maxima'
)
.
css
(
'border'
,
'1px solid red'
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
""
;
}
else
{
$
(
'.nota_maxima'
)
.
css
(
'border'
,
''
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
"none"
;
}
}
}
// Tipo de avaliação
function
displayTipoAvaliacao
(
valor
){
if
(
valor
==
"form"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
true
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
""
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"campos"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
true
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"inline"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"link"
)
{
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
true
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
""
;
}
}
function
selecionar_decisao_camara
()
{
var
natureza
=
document
.
getElementById
(
'natureza'
);
if
(
natureza
.
value
==
3
)
{
...
...
@@ -583,4 +831,11 @@
window
.
onload
=
showDocumentoExtra
();
</
script
>
@
if
(
$errors
->
has
(
'somaNotas'
))
<
script
>
$
(
'.nota_maxima'
)
.
css
(
'border'
,
'1px solid red'
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
""
;
</
script
>
@
endif
@
endsection
\ No newline at end of file
resources/views/evento/editarEvento.blade.php
View file @
e9276910
@
extends
(
'layouts.app'
)
@
php
$i
=
0
;
$numCampos
=
0
;
$avaliado
=
false
;
foreach
(
$evento
->
trabalhos
as
$trabalho
)
{
$avaliacoes
=
$trabalho
->
avaliadors
()
->
where
(
'status'
,
1
)
->
count
();
if
(
$avaliacoes
>
0
)
{
$avaliado
=
true
;
}
}
@
endphp
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
...
...
@@ -384,98 +395,347 @@
@
endcomponent
</
div
>
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Documentos
</
p
>
<
p
>
Avaliação
</
p
>
</
div
>
</
div
>
{{
--
Pdf
Edital
--
}}
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
>
@
if
(
$avaliado
)
<
div
class
=
"alert alert-primary col-sm-12"
role
=
"alert"
>
<
strong
>
Você
não
pode
alterar
a
avaliação
após
algum
trabalho
já
ter
sido
avaliado
.
</
strong
>
</
div
>
@
endif
<
div
class
=
"my-2"
>
<
p
style
=
"font-size: 16px"
>
Como
a
avaliação
será
realizada
?</
p
>
</
div
>
<
div
class
=
"mb-2"
>
@
if
(
old
(
'tipoAvaliacao'
)
!=
null
)
<
input
type
=
"radio"
id
=
"radioForm"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('form')"
@
if
((
old
(
'tipoAvaliacao'
)
==
'form'
)
||
old
(
'tipoAvaliacao'
)
==
""
)
checked
@
endif
value
=
"form"
@
if
(
$avaliado
)
disabled
@
endif
>
<
label
for
=
"radioForm"
style
=
"margin-right: 5px"
>
Formulário
(
em
pdf
)
</
label
>
<
input
type
=
"radio"
id
=
"radioCampos"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('campos')"
@
if
(
old
(
'tipoAvaliacao'
)
==
'campos'
)
checked
@
endif
value
=
"campos"
@
if
(
$avaliado
)
disabled
@
endif
>
<
label
for
=
"radioCampos"
style
=
"margin-right: 5px"
>
Barema
</
label
>
<
input
type
=
"radio"
id
=
"radioLink"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('link')"
@
if
(
old
(
'tipoAvaliacao'
)
==
'link'
)
checked
@
endif
value
=
"link"
@
if
(
$avaliado
)
disabled
@
endif
>
<
label
for
=
"radioLink"
style
=
"margin-right: 5px"
>
Link
</
label
><
br
>
@
else
<
input
type
=
"radio"
id
=
"radioForm"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('form')"
@
if
(
$evento
->
tipoAvaliacao
==
'form'
||
$evento
->
tipoAvaliacao
==
''
)
checked
@
endif
value
=
"form"
@
if
(
$avaliado
)
disabled
@
endif
>
<
label
for
=
"radioForm"
style
=
"margin-right: 5px"
>
Formulário
(
em
pdf
)
</
label
>
<
input
type
=
"radio"
id
=
"radioCampos"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('campos')"
@
if
(
$evento
->
tipoAvaliacao
==
'campos'
)
checked
@
endif
value
=
"campos"
@
if
(
$avaliado
)
disabled
@
endif
>
<
label
for
=
"radioCampos"
style
=
"margin-right: 5px"
>
Barema
</
label
>
<
input
type
=
"radio"
id
=
"radioLink"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('link')"
@
if
(
$evento
->
tipoAvaliacao
==
'link'
)
checked
@
endif
value
=
"link"
@
if
(
$avaliado
)
disabled
@
endif
>
<
label
for
=
"radioLink"
style
=
"margin-right: 5px"
>
Link
</
label
><
br
>
@
endif
</
div
>
<!--
Garante
envio
do
tipo
de
avaliação
,
mesmo
com
a
avaliação
desativada
-->
@
if
(
$avaliado
)
@
if
(
$evento
->
tipoAvaliacao
==
'form'
||
$evento
->
tipoAvaliacao
==
''
)
<
input
type
=
"hidden"
id
=
"radioForm"
name
=
"tipoAvaliacao"
value
=
"form"
>
@
elseif
(
$evento
->
tipoAvaliacao
==
'campos'
)
<
input
type
=
"hidden"
id
=
"radioCampos"
name
=
"tipoAvaliacao"
value
=
"campos"
>
@
elseif
(
$evento
->
tipoAvaliacao
==
'link'
)
<
input
type
=
"hidden"
id
=
"radioLink"
name
=
"tipoAvaliacao"
value
=
"link"
>
@
endif
@
endif
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
id
=
"displayForm"
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
PDF
do
Edital
:<
span
style
=
"color: red; font-weight: bold;"
>*</
span
></
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->pdfEdital
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfEdital') is-invalid @enderror"
name
=
"pdfEdital"
value
=
"{{ old('pdfEdital') }}"
id
=
"pdfEdital"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfEdital'
)
<
label
for
=
"pdfEdital"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color: red; font-weight: bold;"
>*</
span
></
label
>
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoExterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
@
else
<
a
>
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
</
a
>
@
endif
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
@
if
(
$avaliado
)
disabled
@
endif
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"modeloDocumento"
>
Arquivo
com
os
modelos
de
documentos
do
edital
:</
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->modeloDocumento
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('modeloDocumento') is-invalid @enderror"
name
=
"modeloDocumento"
value
=
"{{ old('modeloDocumento') }}"
id
=
"modeloDocumento"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'modeloDocumento'
)
<
label
for
=
"pdfEdital"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
$evento
->
docTutorial
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->docTutorial
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
@
else
<
a
>
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
</
a
>
@
endif
<
input
type
=
"file"
class
=
"form-control-file @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
@
if
(
$avaliado
)
disabled
@
endif
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px; display: none"
id
=
"displayCampos"
>
<
div
class
=
"row align-items-end mb-4"
>
<
label
class
=
"col-sm-3"
for
=
"pontuacao"
>
Valor
total
da
pontuação
por
Barema
:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
type
=
"number"
name
=
"pontuacao"
min
=
"0"
class
=
"col-sm-1 form-control"
id
=
"pontuacao"
value
=
"
{
{old('pontuacao')?old('pontuacao'):$pontuacao}
}
"
@
if
(
$avaliado
)
disabled
@
endif
/>
</
div
>
<
label
>
Campos
do
Barema
:</
label
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Prioridade
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Ação
</
th
>
</
tr
>
@
if
(
$camposAvaliacao
->
count
()
!=
0
)
@
php
$somaNotas
=
0
;
@
endphp
@
foreach
(
$camposAvaliacao
as
$campoAvaliacao
)
@
php
$somaNotas
+=
$campoAvaliacao
->
nota_maxima
;
@
endphp
@
if
(
$numCampos
==
0
)
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][nome]"
class
=
"form-control nome @error('inputField.*.nome') is-invalid @enderror"
value
=
"{{
$campoAvaliacao->nome
}}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][descricao]"
class
=
"form-control descricao @error('inputField.*.descricao') is-invalid @enderror"
value
=
"{{
$campoAvaliacao->descricao
}}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"number"
min
=
"1"
step
=
"1"
name
=
"inputField[
{
{$i}
}
][nota_maxima]"
class
=
"form-control nota_maxima @error('inputField.*.nota_maxima') is-invalid @enderror"
value
=
"{{
$campoAvaliacao->nota_maxima
}}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.nota_maxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
>
<
select
name
=
"inputField[
{
{$i}
}
][prioridade]"
class
=
"form-control prioridade @error('inputField.*.prioridade') is-invalid @enderror"
@
if
(
$avaliado
)
disabled
@
endif
>
<
option
value
=
""
>--
ORDEM
--</
option
>
<
option
value
=
"1"
class
=
"ordem_option"
>
1
</
option
>
</
select
>
@
error
(
'inputField.*.prioridade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
@
if
(
$avaliado
)
disabled
@
endif
>
Adicionar
</
button
></
td
>
</
tr
>
@
else
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][nome]"
class
=
"form-control nome @error('inputField.*.nome') is-invalid @enderror"
value
=
"{{
$campoAvaliacao->nome
}}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][descricao]"
class
=
"form-control descricao @error('inputField.*.descricao') is-invalid @enderror"
value
=
"{{
$campoAvaliacao->descricao
}}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"number"
min
=
"1"
step
=
"1"
name
=
"inputField[
{
{$i}
}
][nota_maxima]"
class
=
"form-control nota_maxima @error('inputField.*.nota_maxima') is-invalid @enderror"
value
=
"{{
$campoAvaliacao->nota_maxima
}}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.nota_maxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
>
<
select
name
=
"inputField[
{
{$i}
}
][prioridade]"
class
=
"form-control prioridade @error('inputField.*.prioridade') is-invalid @enderror"
@
if
(
$avaliado
)
disabled
@
endif
>
<
option
value
=
""
>--
ORDEM
--</
option
>
<
option
value
=
"1"
class
=
"ordem_option"
>
1
</
option
>
</
select
>
@
error
(
'inputField.*.prioridade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
button
type
=
"button"
class
=
"btn btn-outline-danger remove-input-field"
name
=
"removeButton[
{
{$i}
}
]"
@
if
(
$avaliado
)
disabled
@
endif
>
Remover
</
button
></
td
>
</
tr
>
@
endif
@
php
++
$i
;
++
$numCampos
;
@
endphp
@
endforeach
@
else
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[0][nome]"
class
=
"form-control nome @error('inputField.*.nome') is-invalid @enderror"
value
=
"{{ old('inputField[0][nome]') }}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[0][descricao]"
class
=
"form-control descricao @error('inputField.*.descricao') is-invalid @enderror"
value
=
"{{ old('inputField[0][descricao]') }}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"number"
min
=
"1"
step
=
"1"
name
=
"inputField[0][nota_maxima]"
class
=
"form-control nota_maxima @error('inputField.*.nota_maxima') is-invalid @enderror"
value
=
"{{ old('inputField[0][nota_maxima]') }}"
@
if
(
$avaliado
)
disabled
@
endif
/>
@
error
(
'inputField.*.nota_maxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
>
<
select
name
=
"inputField[0][prioridade]"
class
=
"form-control prioridade @error('inputField.*.prioridade') is-invalid @enderror"
@
if
(
$avaliado
)
disabled
@
endif
>
<
option
value
=
""
selected
>--
ORDEM
--</
option
>
<
option
value
=
"1"
class
=
"ordem_option"
>
1
</
option
>
</
select
>
@
error
(
'inputField.*.prioridade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
@
if
(
$avaliado
)
disabled
@
endif
>
Adicionar
</
button
></
td
>
</
tr
>
@
php
++
$i
;
++
$numCampos
;
@
endphp
@
endif
</
table
>
@
if
(
$errors
->
has
(
'inputField.*'
))
<
div
class
=
"col-sm-12 alert alert-danger"
id
=
"inputFieldError"
>
Você
deve
preencher
os
campos
obrigatórios
.
</
div
>
@
endif
<
div
class
=
"col-sm-12 alert alert-danger"
style
=
"display: none"
id
=
"nota_maxima_invalida"
>
A
soma
das
notas
máximas
deve
ser
igual
a
pontuação
total
definida
.
</
div
>
<
input
type
=
"checkbox"
id
=
"checkB[0]"
checked
name
=
"campos[]"
value
=
"0"
hidden
disabled
>
<
input
type
=
"number"
name
=
"somaNotas"
value
=
"0"
id
=
"somaNotas"
hidden
>
</
div
>
<
div
class
=
"col-sm-12 row"
style
=
"margin-top:10px; display: none"
id
=
"displayLink"
>
<
label
for
=
"link"
class
=
"col-form-label"
>
{{
__
(
'Link para o formulário:'
)
}}
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
id
=
"link"
type
=
"text"
class
=
"form-control @error("
link
") is-invalid @enderror"
name
=
"link"
value
=
"{{ (
$evento->tipoAvaliacao
== "
link
") ?
$evento->formAvaliacaoExterno
: old('link') }}"
@
if
(
$avaliado
)
disabled
@
endif
>
@
error
(
'link'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Documentos
</
p
>
</
div
>
</
div
>
{{
--
Pdf
Edital
--
}}
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color: red; font-weight: bold;"
>*</
span
></
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoExterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
<
label
for
=
"pdfEdital"
>
PDF
do
Edital
:<
span
style
=
"color: red; font-weight: bold;"
>*</
span
></
label
>
@
if
(
$evento
->
pdfEdital
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->pdfEdital
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
@
else
<
a
>
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
</
a
>
@
endif
<
input
type
=
"file"
class
=
"form-control-file @error('pdfEdital') is-invalid @enderror"
name
=
"pdfEdital"
value
=
"{{ old('pdfEdital') }}"
id
=
"pdfEdital"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfEdital'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Formulário
de
avaliação
do
relatório
:</
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoRelatorio
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfFormAvalRelatorio') is-invalid @enderror"
name
=
"pdfFormAvalRelatorio"
value
=
"{{ old('pdfFormAvalRelatorio') }}"
id
=
"pdfFormAvalRelatorio"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalRelatorio'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
<
label
for
=
"modeloDocumento"
>
Arquivo
com
os
modelos
de
documentos
do
edital
:</
label
>
@
if
(
$evento
->
modeloDocumento
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->modeloDocumento
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
@
else
<
a
>
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
</
a
>
@
endif
<
input
type
=
"file"
class
=
"form-control-file @error('modeloDocumento') is-invalid @enderror"
name
=
"modeloDocumento"
value
=
"{{ old('modeloDocumento') }}"
id
=
"modeloDocumento"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'modeloDocumento'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
$evento
->
docTu
tori
al
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->
docTu
tori
al
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
label
for
=
"pdfEdital"
>
Formulário
de
avaliação
do
relatório
:</
label
>
@
if
(
$evento
->
formAvaliacaoRela
tori
o
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->
formAvaliacaoRela
tori
o
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
@
else
<
a
>
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
</
a
>
@
endif
<
input
type
=
"file"
class
=
"form-control-file @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfFormAvalRelatorio') is-invalid @enderror"
name
=
"pdfFormAvalRelatorio"
value
=
"{{ old('pdfFormAvalRelatorio') }}"
id
=
"pdfFormAvalRelatorio"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'
docTu
tori
al
'
)
@
error
(
'
pdfFormAvalRela
tori
o
'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
...
...
@@ -497,6 +757,188 @@
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
var
i
=
"
{
{$i}
}
"
;
var
numCampos
=
"
{
{$numCampos}
}
"
;
var
currentOptions
=
{
'0'
:
''
}
$
(
document
)
.
ready
(
function
()
{
displayTipoAvaliacao
(
"{{ old('tipoAvaliacao') == null ?
$evento->tipoAvaliacao
: old('tipoAvaliacao')}}"
)
if
(
numCampos
>
1
)
{
for
(
let
y
=
1
;
y
<
(
numCampos
);
y
++
)
{
$
(
"#displayCampos"
)
.
append
(
'<input type="checkbox" id="checkB['
+
y
+
']" checked name="campos[]" value="'
+
y
+
'" hidden disabled>'
);
addOrdemPrioridade
();
}
}
@
if
(
old
(
'tipoAvaliacao'
)
==
'campos'
||
$evento
->
tipoAvaliacao
==
'campos'
)
$
(
'#somaNotas'
)
.
val
(
'{{$somaNotas}}'
);
@
endif
z
=
0
@
foreach
(
$camposAvaliacao
as
$campoAvaliacao
)
selectId
=
z
newOption
=
"
{
{$campoAvaliacao->prioridade}
}
"
displayPrioridades
(
selectId
,
newOption
)
++
z
@
endforeach
});
// Habilita edição dos campos
$
(
"input[name^='inputField']"
)
.
on
(
'change'
,
function
()
{
$
(
"input[name^='campos']"
)
.
prop
(
'disabled'
,
false
);
});
// Adiciona campo de avaliação
$
(
"#dynamic-ar"
)
.
click
(
function
()
{
// Habilita edição dos campos
$
(
"input[name^='campos']"
)
.
prop
(
'disabled'
,
false
);
$
(
"#dynamicAddRemove"
)
.
append
(
'<tr><td><input type="text" name="inputField['
+
i
+
'][nome]" class="form-control nome @error("inputField.*.nome") is-invalid @enderror" /></td><td><input type="text" name="inputField['
+
i
+
'][descricao]" class="form-control descricao @error("inputField.*.descricao") is-invalid @enderror"/></td><td><input type="number" min="1" step="1" name="inputField['
+
i
+
'][nota_maxima]" class="form-control nota_maxima @error("inputField.*.nota_maxima") is-invalid @enderror" /></td><td><select name="inputField['
+
i
+
'][prioridade]" class="form-control prioridade @error("inputField.*.prioridade") is-invalid @enderror"><option value="" selected>-- ORDEM --</option><option value="1" class="ordem_option">1</option></select></td><td><button type="button" class="btn btn-outline-danger remove-input-field" name="removeButton['
+
i
+
']">Remover</button></td></tr>'
);
$
(
"#displayCampos"
)
.
append
(
'<input type="checkbox" id="checkB['
+
i
+
']" checked name="campos[]" value="'
+
i
+
'" hidden>'
);
++
i
;
++
numCampos
;
addOrdemPrioridade
();
});
function
addOrdemPrioridade
()
{
$
(
".prioridade"
)
.
children
()
.
remove
(
".dynamic"
);
// Exibe opções caso estejam ocultas
$
(
'.ordem_option'
)
.
show
();
$
(
".prioridade"
)
.
each
(
function
()
{
// Resetando os valores selecionados
$
(
this
)
.
val
(
""
)
.
change
();
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
currentOptions
[
selectId
]
=
''
;
for
(
let
x
=
2
;
x
<=
numCampos
;
x
++
)
{
$
(
this
)
.
append
(
'<option value="'
+
x
+
'" class="ordem_option dynamic">'
+
x
+
'</option>'
)
}
})
}
// Exclui campo de avaliação
$
(
document
)
.
on
(
'click'
,
'.remove-input-field'
,
function
()
{
// Habilita edição dos campos
$
(
"input[name^='campos']"
)
.
prop
(
'disabled'
,
false
);
$
(
this
)
.
parents
(
'tr'
)
.
remove
();
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
currentOption
=
currentOptions
[
selectId
];
document
.
getElementById
(
'checkB['
+
selectId
+
']'
)
.
remove
();
$
(
'.ordem_option[value|="'
+
currentOption
+
'"]'
)
.
show
();
delete
currentOptions
[
selectId
];
$
(
'.dynamic[value|="'
+
numCampos
+
'"]'
)
.
remove
();
--
numCampos
;
});
function
displayPrioridades
(
id
,
newOption
)
{
currentOption
=
currentOptions
[
id
];
$
(
'.ordem_option[value|="'
+
currentOption
+
'"]'
)
.
show
();
$
(
'.ordem_option[value|="'
+
newOption
+
'"]'
)
.
hide
();
$
(
'select[name="inputField['
+
id
+
'][prioridade]"]'
)
.
val
(
newOption
);
currentOptions
[
id
]
=
newOption
;
}
$
(
"#dynamicAddRemove"
)
.
on
(
'change'
,
'.prioridade'
,
function
()
{
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
newOption
=
$
(
this
)
.
val
();
displayPrioridades
(
selectId
,
newOption
);
});
$
(
'#pontuacao'
)
.
on
(
'input'
,
function
()
{
validateNotas
();
})
$
(
"#dynamicAddRemove"
)
.
on
(
'input'
,
'.nota_maxima'
,
function
()
{
validateNotas
();
});
function
validateNotas
()
{
pontuacao
=
$
(
"#pontuacao"
)
.
val
();
if
(
pontuacao
==
""
)
{
alert
(
"Escolha o valor total da pontuação antes de adicionar as notas máximas!"
)
$
(
'.nota_maxima'
)
.
val
(
""
);
}
else
{
somaNotas
=
0
;
$
(
".nota_maxima"
)
.
each
(
function
()
{
valor
=
Number
(
$
(
this
)
.
val
());
if
(
valor
!=
0
)
{
somaNotas
+=
valor
;
}
});
$
(
'#somaNotas'
)
.
val
(
somaNotas
);
if
(
somaNotas
!=
pontuacao
)
{
$
(
'.nota_maxima'
)
.
css
(
'border'
,
'1px solid red'
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
""
;
}
else
{
$
(
'.nota_maxima'
)
.
css
(
'border'
,
''
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
"none"
;
}
}
}
// Tipo de avaliação
function
displayTipoAvaliacao
(
valor
){
if
(
valor
==
"form"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
true
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
""
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"campos"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
true
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"inline"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"link"
)
{
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
true
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
""
;
}
}
function
defCoord
(
data
,
data2
)
{
document
.
getElementById
(
'coordenador_id'
)
.
value
=
data
;
document
.
getElementById
(
'coordenador_name'
)
.
value
=
data2
;
...
...
@@ -519,4 +961,12 @@
window
.
onload
=
showDocumentoExtra
();
</
script
>
@
if
(
$errors
->
has
(
'somaNotas'
))
<
script
>
$
(
'.nota_maxima'
)
.
css
(
'border'
,
'1px solid red'
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
""
;
</
script
>
@
endif
@
endsection
\ No newline at end of file
routes/web.php
View file @
e9276910
<?php
use
App\Notifications\SubmissaoNotification
;
use
App\Trabalho
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Notification
;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route
::
get
(
'/email'
,
function
(
Request
$request
)
{
$id
=
Trabalho
::
find
(
9
)
->
id
;
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$id
));
return
'Ok'
;
// Auth::user()->notify(new SubmissaoTrabalho('teste'));
});
Route
::
get
(
'/baixarModeloAvaliacao'
,
'AdministradorController@baixarModeloAvaliacao'
)
->
name
(
'baixarModelo'
);
Route
::
get
(
'/'
,
'UserController@index'
)
->
name
(
'home-user'
);
Route
::
get
(
'/'
,
'UserController@inicial'
)
->
name
(
'inicial'
);
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
)
->
middleware
(
'verified'
);
Route
::
get
(
'/evento/visualizar/naologado/{id}'
,
'EventoController@showNaoLogado'
)
->
name
(
'evento.visualizarNaoLogado'
);
Route
::
get
(
'/editais/home'
,
'EventoController@index'
)
->
name
(
'coord.home'
);
Route
::
get
(
'/perfil'
,
'UserController@perfil'
)
->
name
(
'perfil'
);
Auth
::
routes
([
'verify'
=>
true
]);
//Rota para avaliador atualizar perfil, deixando de ser usuario temporario
Route
::
post
(
'/perfil-usuario'
,
'UserController@editarPerfil'
)
->
name
(
'perfil.edit'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
group
([
'middleware'
=>
[
'isTemp'
,
'auth'
,
'verified'
]],
function
()
{
//######### Proponente ########################################
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
Route
::
get
(
'/proponente/editais'
,
'ProponenteController@editais'
)
->
name
(
'proponente.editais'
);
Route
::
get
(
'/projetos-submetidos'
,
'ProponenteController@projetosDoProponente'
)
->
name
(
'proponente.projetos'
);
Route
::
get
(
'/projetos-edital/{id}'
,
'ProponenteController@projetosEdital'
)
->
name
(
'proponente.projetosEdital'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/proponente/edital/{edital_id}/projeto/{projeto_id}/solicitar_desligamento/{participante_id}'
,
'ProponenteController@solicitarDesligamento'
)
->
name
(
'proponente.solicitar.desligamento'
);
//######## Rotas Avaliador ####################################
Route
::
prefix
(
'avaliacaoRelatorio'
)
->
name
(
'avaliacaoRelatorio.'
)
->
group
(
function
()
{
Route
::
post
(
'/atribuirAvaliadorPlano'
,
'AvaliacaoRelatorioController@atribuicaoAvaliador'
)
->
name
(
'atribuicao.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/removerAvaliadorPlano/{id}'
,
'AvaliacaoRelatorioController@removerAvaliador'
)
->
name
(
'remover.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
});
Route
::
get
(
'/trabalho/planos/avaliacao/{id}'
,
'AvaliacaoRelatorioController@listarUser'
)
->
name
(
'planos.avaliacoesUser'
);
Route
::
get
(
'/trabalho/planos/avaliacoes/index'
,
'AvaliacaoRelatorioController@index'
)
->
name
(
'planos.avaliacoes.index'
);
Route
::
post
(
'/trabalho/planos/avaliacoes/criar'
,
'AvaliacaoRelatorioController@criar'
)
->
name
(
'planos.avaliacoesUser.criar'
);
Route
::
prefix
(
'areaTematica'
)
->
name
(
'areaTematica.'
)
->
group
(
function
()
{
Route
::
get
(
'/editar/{id}'
,
'AreaTematicaController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/atualizar/{id}'
,
'AreaTematicaController@update'
)
->
name
(
'atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/excluir/{id}'
,
'AreaTematicaController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'AreaTematicaController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/nova'
,
'AreaTematicaController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
});
Route
::
prefix
(
'objetivoDeDenvolvimentoSustentavel'
)
->
name
(
'objetivoDeDenvolvimentoSustentavel.'
)
->
group
(
function
()
{
Route
::
get
(
'/editar/{id}'
,
'ObjetivoDeDesenvolvimentoSustentavelController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/atualizar/{id}'
,
'ObjetivoDeDesenvolvimentoSustentavelController@update'
)
->
name
(
'atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/excluir/{id}'
,
'ObjetivoDeDesenvolvimentoSustentavelController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'ObjetivoDeDesenvolvimentoSustentavelController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/novo'
,
'ObjetivoDeDesenvolvimentoSustentavelController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
});
//######### Rotas Administrador #################################
Route
::
get
(
'/perfil-usuario'
,
'UserController@minhaConta'
)
->
name
(
'user.perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
//######## Rotas Avaliador ####################################
Route
::
prefix
(
'avaliador'
)
->
name
(
'avaliador.'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
'AvaliadorController@index'
)
->
name
(
'index'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/trabalhos'
,
'AvaliadorController@visualizarTrabalhos'
)
->
name
(
'visualizarTrabalho'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/planos'
,
'AvaliadorController@listarPlanos'
)
->
name
(
'listarPlanos'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecer'
,
'AvaliadorController@parecer'
)
->
name
(
'parecer'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecer/plano'
,
'AvaliadorController@parecerPlano'
)
->
name
(
'parecer.plano'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/editais'
,
'AvaliadorController@editais'
)
->
name
(
'editais'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/Enviarparecer'
,
'AvaliadorController@enviarParecer'
)
->
name
(
'enviarParecer'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/Enviarparecer/plano'
,
'AvaliadorController@enviarParecerPlano'
)
->
name
(
'enviarParecerPlano'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/Resposta'
,
'AvaliadorController@conviteResposta'
)
->
name
(
'conviteResposta'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecerInterno'
,
'AvaliadorController@parecerInterno'
)
->
name
(
'parecerInterno'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerInterno'
,
'AvaliadorController@enviarParecerInterno'
)
->
name
(
'enviarParecerInterno'
)
->
middleware
(
'auth'
);
});
Route
::
get
(
'/notificacao/listar'
,
'NotificacaoController@listar'
)
->
name
(
'notificacao.listar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/notificacao/lista'
,
'NotificacaoController@listarTrab'
)
->
name
(
'notificacao.listarTrab'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/notificacao/ler/{id}'
,
'NotificacaoController@ler'
)
->
name
(
'notificacao.ler'
);
Route
::
get
(
'/home/edital'
,
'EventoController@index'
)
->
name
(
'visualizarEvento'
);
// ######## rotas de teste #####################################
Route
::
get
(
'/coordenador/evento/detalhes'
,
'EventoController@detalhes'
)
->
name
(
'coord.detalhesEvento'
);
//####### Visualizar trabalhos do usuário ######################
Route
::
get
(
'/user/trabalhos'
,
'UserController@meusTrabalhos'
)
->
name
(
'user.meusTrabalhos'
);
//######### Cadastrar Comissão ###################################
Route
::
post
(
'/evento/cadastrarComissao'
,
'ComissaoController@store'
)
->
name
(
'cadastrar.comissao'
);
Route
::
post
(
'/evento/cadastrarCoordComissao'
,
'ComissaoController@coordenadorComissao'
)
->
name
(
'cadastrar.coordComissao'
);
//######### rota downloadArquivo ################################
Route
::
get
(
'/downloadArquivo'
,
'HomeController@downloadArquivo'
)
->
name
(
'download'
);
//######### Area do participante ###############################
Route
::
get
(
'/participante'
,
'EventoController@areaParticipante'
)
->
name
(
'area.participante'
);
Route
::
get
(
'participante/editais'
,
'ParticipanteController@editais'
)
->
name
(
'participante.editais'
);
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
//######### Plano de Trablho ########################################
Route
::
prefix
(
'/plano/trabalho'
)
->
name
(
'plano.trabalho.'
)
->
group
(
function
()
{
Route
::
get
(
'/index/{evento_id}'
,
'PlanoTrabalhoController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/selecionar/{evento_id}'
,
'PlanoTrabalhoController@selecionarPlanos'
)
->
name
(
'selecionarPlanos'
);
Route
::
post
(
'/atribuicao'
,
'PlanoTrabalhoController@atribuicao'
)
->
name
(
'atribuicao'
);
});
//########## Area da comissao ###################################
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
Route
::
get
(
'/area/comissao'
,
'EventoController@listComissaoTrabalhos'
)
->
name
(
'area.comissao'
);
//########### Deletar Comissão ###################################
Route
::
delete
(
'/evento/apagar-comissao/'
,
'ComissaoController@destroy'
)
->
name
(
'delete.comissao'
);
Route
::
post
(
'/evento/numTrabalhos'
,
'EventoController@numTrabalhos'
)
->
name
(
'trabalho.numTrabalhos'
);
//########## Area ###########################################
Route
::
post
(
'/area/criar'
,
'AreaController@store'
)
->
name
(
'area.store'
);
//########### Deletar Area ######################################
Route
::
delete
(
'/area/deletar/{id}'
,
'AreaController@destroy'
)
->
name
(
'area.delete'
);
//######### Deletar Revisores ##############################
Route
::
delete
(
'/revisor/apagar'
,
'RevisorController@destroy'
)
->
name
(
'revisor.delete'
);
//######### AreaModalidade ###################################
Route
::
post
(
'/areaModalidade/criar'
,
'AreaModalidadeController@store'
)
->
name
(
'areaModalidade.store'
);
//######### Trabalho ########################################
Route
::
get
(
'/trabalho/submeter/{id}'
,
'TrabalhoController@index'
)
->
name
(
'trabalho.index'
);
// Route::get( '/trabalho/visualizar/{id}','TrabalhoController@show' )->name('trabalho.show');
Route
::
post
(
'/trabalho/novaVersao'
,
'TrabalhoController@novaVersao'
)
->
name
(
'trabalho.novaVersao'
);
Route
::
post
(
'/trabalho/criar'
,
'TrabalhoController@salvar'
)
->
name
(
'trabalho.store'
);
Route
::
post
(
'/trabalho/criarRascunho'
,
'TrabalhoController@storeParcial'
)
->
name
(
'trabalho.storeParcial'
);
Route
::
get
(
'/edital/{id}/projetos'
,
'TrabalhoController@projetosDoEdital'
)
->
name
(
'projetos.edital'
);
Route
::
get
(
'/projeto/visualizar/{id}'
,
'TrabalhoController@show'
)
->
name
(
'trabalho.show'
);
Route
::
get
(
'/projeto/{id}/editar'
,
'TrabalhoController@edit'
)
->
name
(
'trabalho.editar'
);
Route
::
post
(
'/projeto/buscarUsuario'
,
'TrabalhoController@buscarUsuario'
)
->
name
(
'trabalho.buscarUsuario'
);
Route
::
post
(
'/projeto/{id}/atualizar'
,
'TrabalhoController@update'
)
->
name
(
'trabalho.update'
);
Route
::
get
(
'/projeto/{id}/excluir'
,
'TrabalhoController@destroy'
)
->
name
(
'trabalho.destroy'
);
Route
::
get
(
'/projeto/{id}/excluirParticipante'
,
'TrabalhoController@excluirParticipante'
)
->
name
(
'trabalho.excluirParticipante'
);
Route
::
post
(
'/projeto/{trabalho}/solicitarCertificado'
,
'TrabalhoController@solicitarCertificado'
)
->
name
(
'trabalho.solicitarCertificado'
);
Route
::
get
(
'/projeto/exportar/{id}'
,
'TrabalhoController@exportProjeto'
)
->
name
(
'exportar.projeto'
);
Route
::
get
(
'/projeto/substituirParticipante'
,
'TrabalhoController@telaTrocaPart'
)
->
name
(
'trabalho.trocaParticipante'
);
Route
::
post
(
'/projeto/substituirParticipante'
,
'TrabalhoController@trocaParticipante'
)
->
name
(
'trabalho.infoTrocaParticipante'
);
Route
::
get
(
'/showSubstituicoes'
,
'TrabalhoController@telaShowSubst'
)
->
name
(
'trabalho.telaAnaliseSubstituicoes'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/aprovarSubstituicao'
,
'TrabalhoController@aprovarSubstituicao'
)
->
name
(
'trabalho.aprovarSubstituicao'
);
Route
::
post
(
'/aprovarProposta/{id}'
,
'TrabalhoController@aprovarProposta'
)
->
name
(
'trabalho.aprovarProposta'
);
Route
::
post
(
'/certificado/{certificado}'
,
'CertificadoController@update'
)
->
name
(
'certificado.update'
);
//########## Bolsas
Route
::
get
(
'/bolsas'
,
'ParticipanteController@listarParticipanteEdital'
)
->
name
(
'bolsas.listar'
);
Route
::
post
(
'/bolsas/alteracao'
,
'ParticipanteController@alterarBolsa'
)
->
name
(
'bolsa.alterar'
);
//########## Arquivar Projeto e Plano
Route
::
get
(
'/arquivar/projeto'
,
'TrabalhoController@arquivar'
)
->
name
(
'projeto.arquivar'
);
Route
::
get
(
'/arquivar/plano'
,
'ArquivoController@arquivar'
)
->
name
(
'arquivo.arquivar'
);
//######### Imprimir Resultado #################################
Route
::
get
(
'/usuarios/showResultados/imprimir'
,
'AdministradorController@imprimirResultados'
)
->
name
(
'resultados.gerar'
);
//########## Relatórios
Route
::
get
(
'/projeto/planosTrabalho/{id}'
,
'ArquivoController@listar'
)
->
name
(
'planos.listar'
);
Route
::
post
(
'/projeto/planosTrabalho/anexarRelatorio'
,
'ArquivoController@anexarRelatorio'
)
->
name
(
'planos.anexar.relatorio'
);
//########## Documentação Complementar
Route
::
get
(
'/documentacaoComplementar'
,
'ParticipanteController@listarParticipanteProjeto'
)
->
name
(
'docComplementar.listar'
);
Route
::
post
(
'/documentacaoComplementar/enviar'
,
'ParticipanteController@atualizarDocComplementar'
)
->
name
(
'docComplementar.enviar'
);
//######### Atribuição #######################################
Route
::
get
(
'/atribuir'
,
'AtribuicaoController@distribuicaoAutomatica'
)
->
name
(
'distribuicao'
);
Route
::
get
(
'/atribuirPorArea'
,
'AtribuicaoController@distribuicaoPorArea'
)
->
name
(
'distribuicaoAutomaticaPorArea'
);
Route
::
post
(
'/distribuicaoManual'
,
'AtribuicaoController@distribuicaoManual'
)
->
name
(
'distribuicaoManual'
);
Route
::
post
(
'/removerAtribuicao'
,
'AtribuicaoController@deletePorRevisores'
)
->
name
(
'atribuicao.delete'
);
//########## Revisores #########################################
Route
::
post
(
'/revisor/criar'
,
'RevisorController@store'
)
->
name
(
'revisor.store'
);
Route
::
get
(
'/revisor/listarTrabalhos'
,
'RevisorController@indexListarTrabalhos'
)
->
name
(
'revisor.listarTrabalhos'
);
Route
::
post
(
'/revisor/email'
,
'RevisorController@enviarEmailRevisor'
)
->
name
(
'revisor.email'
);
Route
::
post
(
'/revisor/emailTodos'
,
'RevisorController@enviarEmailTodosRevisores'
)
->
name
(
'revisor.emailTodos'
);
//########## Rotas de download de documentos ###########################
Route
::
get
(
'/baixar/anexo-projeto/{id}'
,
'TrabalhoController@baixarAnexoProjeto'
)
->
name
(
'baixar.anexo.projeto'
);
Route
::
get
(
'/baixar/anexo-consu/{id}'
,
'TrabalhoController@baixarAnexoConsu'
)
->
name
(
'baixar.anexo.consu'
);
Route
::
get
(
'/baixar/anexo-comite/{id}'
,
'TrabalhoController@baixarAnexoComite'
)
->
name
(
'baixar.anexo.comite'
);
Route
::
get
(
'/baixar/anexo-justificativa/{id}'
,
'TrabalhoController@baixarAnexoJustificativa'
)
->
name
(
'baixar.anexo.justificativa'
);
Route
::
get
(
'/baixar/anexo-lattes/{id}'
,
'TrabalhoController@baixarAnexoLattes'
)
->
name
(
'baixar.anexo.lattes'
);
Route
::
get
(
'/baixar/anexo-planilha/{id}'
,
'TrabalhoController@baixarAnexoPlanilha'
)
->
name
(
'baixar.anexo.planilha'
);
Route
::
get
(
'/baixar/plano-de-trabalho/{id}'
,
'ArquivoController@baixarPlano'
)
->
name
(
'baixar.plano'
);
Route
::
get
(
'/baixar/anexoGrupoPesquisa/{id}'
,
'TrabalhoController@baixarAnexoGrupoPesquisa'
)
->
name
(
'baixar.anexoGrupoPesquisa'
);
Route
::
get
(
'/baixar/anexo-temp/{eventoId}/{nomeAnexo}'
,
'TrabalhoController@baixarAnexoTemp'
)
->
name
(
'baixar.anexo.temp'
);
Route
::
get
(
'/baixar/evento-temp/{nomeAnexo}'
,
'TrabalhoController@baixarEventoTemp'
)
->
name
(
'baixar.evento.temp'
);
Route
::
get
(
'/baixar/documentosParticipante'
,
'ParticipanteController@baixarDocumento'
)
->
name
(
'baixar.documentosParticipante'
);
Route
::
get
(
'/baixar/anexoDocExtra/{id}'
,
'TrabalhoController@baixarAnexoDocExtra'
)
->
name
(
'baixar.anexo.docExtra'
);
});
Route
::
get
(
'/baixar/edital/{id}'
,
'EventoController@baixarEdital'
)
->
name
(
'baixar.edital'
);
Route
::
get
(
'/baixar/modelos/{id}'
,
'EventoController@baixarModelos'
)
->
name
(
'baixar.modelos'
);
Route
::
prefix
(
'usuarios'
)
->
name
(
'admin.'
)
->
group
(
function
()
{
//######### Rotas da administração dos usuários ####################
Route
::
get
(
'/home-admin'
,
'AdministradorController@index'
)
->
name
(
'index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/usuarios'
,
'AdministradorController@usuarios'
)
->
name
(
'usuarios'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/novo'
,
'AdministradorController@create'
)
->
name
(
'user.create'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar-novo'
,
'AdministradorController@salvar'
)
->
name
(
'user.store'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'AdministradorController@edit'
)
->
name
(
'user.edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/editar/atualizar/{id}'
,
'AdministradorController@update'
)
->
name
(
'user.update'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/editar/deletar/{id}'
,
'AdministradorController@destroy'
)
->
name
(
'user.destroy'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editais'
,
'AdministradorController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/atribuir'
,
'AdministradorController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
get
(
'/selecionarAvaliador'
,
'AdministradorController@selecionar'
)
->
name
(
'selecionar'
);
Route
::
get
(
'/selecionarProjetos'
,
'AdministradorController@projetos'
)
->
name
(
'projetos'
);
Route
::
post
(
'/adicionarAvalEvento'
,
'AdministradorController@adicionar'
)
->
name
(
'adicionar'
);
Route
::
post
(
'/removerAvalEvento'
,
'AdministradorController@remover'
)
->
name
(
'remover'
);
Route
::
get
(
'/removerProjAval'
,
'AdministradorController@removerProjAval'
)
->
name
(
'removerProjAval'
);
Route
::
post
(
'/atribuirAvaliadorProjeto'
,
'AdministradorController@atribuicaoProjeto'
)
->
name
(
'atribuicao.projeto'
);
Route
::
post
(
'/enviarConviteEAtribuirProjeto'
,
'AdministradorController@enviarConviteEAtribuir'
)
->
name
(
'convite.atribuicao.projeto'
);
Route
::
get
(
'/reenviarConviteAtribuicaoProjeto'
,
'AdministradorController@reenviarConviteAtribuicaoProjeto'
)
->
name
(
'reenviar.atribuicao.projeto'
);
Route
::
post
(
'/enviarConviteAvaliador'
,
'AdministradorController@enviarConvite'
)
->
name
(
'enviarConvite'
);
Route
::
post
(
'/reenviarConviteAvaliador'
,
'AdministradorController@reenviarConvite'
)
->
name
(
'reenviarConvite'
);
Route
::
post
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/visualizarParecerInterno'
,
'AdministradorController@visualizarParecerInterno'
)
->
name
(
'visualizarParecerInterno'
);
Route
::
get
(
'/pareceresProjetos'
,
'AdministradorController@pareceres'
)
->
name
(
'pareceres'
);
Route
::
get
(
'/analisarProjetos/{column?}'
,
'AdministradorController@analisar'
)
->
name
(
'analisar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/analisarProposta'
,
'AdministradorController@analisarProposta'
)
->
name
(
'analisarProposta'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/showProjetos'
,
'AdministradorController@showProjetos'
)
->
name
(
'showProjetos'
);
Route
::
get
(
'/showResultados'
,
'AdministradorController@showResultados'
)
->
name
(
'showResultados'
)
->
middleware
([
'auth'
,
'verified'
]);
});
Route
::
prefix
(
'naturezas'
)
->
group
(
function
()
{
//########### Rotas das naturezas ###############################
Route
::
get
(
'/'
,
'AdministradorController@naturezas'
)
->
name
(
'admin.naturezas'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/index'
,
'NaturezaController@index'
)
->
name
(
'natureza.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/nova'
,
'NaturezaController@create'
)
->
name
(
'natureza.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'NaturezaController@store'
)
->
name
(
'natureza.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/detalhes/{id}'
,
'NaturezaController@show'
)
->
name
(
'natureza.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'NaturezaController@edit'
)
->
name
(
'natureza.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/atualizar/{id}'
,
'NaturezaController@update'
)
->
name
(
'natureza.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/excluir/{id}'
,
'NaturezaController@destroy'
)
->
name
(
'natureza.deletar'
)
->
middleware
(
'checkAdministrador'
);
//########### Rotas das grandes areas ##############################
Route
::
get
(
'/grande-area'
,
'GrandeAreaController@index'
)
->
name
(
'grandearea.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/grande-area/nova'
,
'GrandeAreaController@create'
)
->
name
(
'grandearea.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/grande-area/salvar'
,
'GrandeAreaController@store'
)
->
name
(
'grandearea.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/grande-area/detalhes/{id}'
,
'GrandeAreaController@show'
)
->
name
(
'grandearea.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/grande-area/editar/{id}'
,
'GrandeAreaController@edit'
)
->
name
(
'grandearea.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/grande-area/atualizar/{id}'
,
'GrandeAreaController@update'
)
->
name
(
'grandearea.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/grande-area/excluir/{id}'
,
'GrandeAreaController@destroy'
)
->
name
(
'grandearea.deletar'
)
->
middleware
(
'checkAdministrador'
);
//#### Rotas das areas, id's de nova e salvar são os ids da grande área a qual a nova área pertence ####
Route
::
get
(
'/areas'
,
'AreaController@index'
)
->
name
(
'area.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/{id}/area/nova'
,
'AreaController@create'
)
->
name
(
'area.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/{id}/area/salvar'
,
'AreaController@store'
)
->
name
(
'area.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/area/detalhes/{id}'
,
'AreaController@show'
)
->
name
(
'area.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/area/editar/{id}'
,
'AreaController@edit'
)
->
name
(
'area.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/area/atualizar/{id}'
,
'AreaController@update'
)
->
name
(
'area.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/area/excluir/{id}'
,
'AreaController@destroy'
)
->
name
(
'area.deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/areas/'
,
'AreaController@consulta'
)
->
name
(
'area.consulta'
);
Route
::
post
(
'/avalConExterno/'
,
'AvaliadorController@consultaExterno'
)
->
name
(
'aval.consultaExterno'
);
Route
::
post
(
'/avalConInterno/'
,
'AvaliadorController@consultaInterno'
)
->
name
(
'aval.consultaInterno'
);
//### Rotas das subareas, id's de nova e salvar são os ids da área a qual a nova subárea pertence #####
Route
::
get
(
'/subareas'
,
'SubAreaController@index'
)
->
name
(
'subarea.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/{id}/subarea/nova'
,
'SubAreaController@create'
)
->
name
(
'subarea.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/{id}/subarea/salvar'
,
'SubAreaController@store'
)
->
name
(
'subarea.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/subarea/detalhes/{id}'
,
'SubAreaController@show'
)
->
name
(
'subarea.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/subarea/editar/{id}'
,
'SubAreaController@edit'
)
->
name
(
'subarea.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/atualizar/{id}'
,
'SubAreaController@update'
)
->
name
(
'subarea.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/excluir/{id}'
,
'SubAreaController@destroy'
)
->
name
(
'subarea.deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/'
,
'SubAreaController@consulta'
)
->
name
(
'subarea.consulta'
);
Route
::
post
(
'/funcao-participante/store'
,
'ParticipanteController@storeFuncao'
)
->
name
(
'funcao_participante.store'
);
Route
::
post
(
'/funcao-participante/{id}/update'
,
'ParticipanteController@updateFuncao'
)
->
name
(
'funcao_participante.update'
);
Route
::
get
(
'/funcao-participante/{id}/destroy'
,
'ParticipanteController@destroyFuncao'
)
->
name
(
'funcao_participante.destroy'
);
});
Route
::
prefix
(
'cursos'
)
->
name
(
'cursos.'
)
->
group
(
function
(){
//#################### Rotas de cursos #########################
Route
::
get
(
'index'
,
'CursoController@index'
)
->
name
(
'index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'nova'
,
'CursoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'salvar'
,
'CursoController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'editar/{id}'
,
'CursoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'editar/{id}'
,
'CursoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkAdministrador'
);
Route
::
delete
(
'exluir/{id}'
,
'CursoController@destroy'
)
->
name
(
'excluir'
)
->
middleware
(
'checkAdministrador'
);
//Route::get('novo')->name('novo');
});
//############ Evento ##############################################
Route
::
prefix
(
'evento'
)
->
name
(
'evento.'
)
->
group
(
function
()
{
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
)
->
middleware
(
'auth'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
)
->
middleware
(
'checkAdministrador'
);
});
//########## Rotas de administrador responsavel (Reitor ou pro-reitor)########
Route
::
prefix
(
'adminResp'
)
->
name
(
'adminResp.'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
'AdministradorResponsavelController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/editais'
,
'AdministradorResponsavelController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/usuarios'
,
'AdministradorResponsavelController@usuarios'
)
->
name
(
'usuarios'
);
Route
::
get
(
'/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/verPermissao'
,
'AdministradorResponsavelController@verPermissao'
)
->
name
(
'verPermissao'
);
});
//########### Rotas Coordenador ##################################
Route
::
prefix
(
'coordenador'
)
->
name
(
'coordenador.'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
'CoordenadorComissaoController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/editais'
,
'CoordenadorComissaoController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/usuarios'
,
'CoordenadorComissaoController@usuarios'
)
->
name
(
'usuarios'
);
Route
::
get
(
'/listarCoord'
,
'CoordenadorComissaoController@coordenadorComite'
)
->
name
(
'coord'
);
Route
::
get
(
'/listarAvaliador'
,
'CoordenadorComissaoController@avaliador'
)
->
name
(
'avaliador'
);
Route
::
get
(
'/listarProponente'
,
'CoordenadorComissaoController@proponente'
)
->
name
(
'proponente'
);
Route
::
get
(
'/listarParticipante'
,
'CoordenadorComissaoController@participante'
)
->
name
(
'participante'
);
Route
::
get
(
'/listarTrabalhos'
,
'CoordenadorComissaoController@listarTrabalhos'
)
->
name
(
'listarTrabalhos'
);
Route
::
get
(
'/detalhesEdital/{evento_id}'
,
'CoordenadorComissaoController@detalhesEdital'
)
->
name
(
'detalhesEdital'
);
Route
::
post
(
'/retornoDetalhes'
,
'CoordenadorComissaoController@retornoDetalhes'
)
->
name
(
'retornoDetalhes'
);
Route
::
post
(
'/atribuirAvaliadorTrabalho'
,
'TrabalhoController@atribuirAvaliadorTrabalho'
)
->
name
(
'atribuirAvaliadorTrabalho'
);
Route
::
post
(
'/atribuir'
,
'TrabalhoController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/atribuir'
,
'TrabalhoController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/resposta-solicitacao-desligamento/{desligamento_id}'
,
'CoordenadorComissaoController@respostaDesligamento'
)
->
name
(
'resposta.desligamento'
);
});
<?php
use
App\Notifications\SubmissaoNotification
;
use
App\Trabalho
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Notification
;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route
::
get
(
'/email'
,
function
(
Request
$request
)
{
$id
=
Trabalho
::
find
(
9
)
->
id
;
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$id
));
return
'Ok'
;
// Auth::user()->notify(new SubmissaoTrabalho('teste'));
});
Route
::
get
(
'/baixarModeloAvaliacao'
,
'AdministradorController@baixarModeloAvaliacao'
)
->
name
(
'baixarModelo'
);
Route
::
get
(
'/'
,
'UserController@index'
)
->
name
(
'home-user'
);
Route
::
get
(
'/'
,
'UserController@inicial'
)
->
name
(
'inicial'
);
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
)
->
middleware
(
'verified'
);
Route
::
get
(
'/evento/visualizar/naologado/{id}'
,
'EventoController@showNaoLogado'
)
->
name
(
'evento.visualizarNaoLogado'
);
Route
::
get
(
'/editais/home'
,
'EventoController@index'
)
->
name
(
'coord.home'
);
Route
::
get
(
'/perfil'
,
'UserController@perfil'
)
->
name
(
'perfil'
);
Auth
::
routes
([
'verify'
=>
true
]);
//Rota para avaliador atualizar perfil, deixando de ser usuario temporario
Route
::
post
(
'/perfil-usuario'
,
'UserController@editarPerfil'
)
->
name
(
'perfil.edit'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
group
([
'middleware'
=>
[
'isTemp'
,
'auth'
,
'verified'
]],
function
()
{
//######### Proponente ########################################
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
Route
::
get
(
'/proponente/editais'
,
'ProponenteController@editais'
)
->
name
(
'proponente.editais'
);
Route
::
get
(
'/projetos-submetidos'
,
'ProponenteController@projetosDoProponente'
)
->
name
(
'proponente.projetos'
);
Route
::
get
(
'/projetos-edital/{id}'
,
'ProponenteController@projetosEdital'
)
->
name
(
'proponente.projetosEdital'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/proponente/edital/{edital_id}/projeto/{projeto_id}/solicitar_desligamento/{participante_id}'
,
'ProponenteController@solicitarDesligamento'
)
->
name
(
'proponente.solicitar.desligamento'
);
//######## Rotas Avaliador ####################################
Route
::
prefix
(
'avaliacaoRelatorio'
)
->
name
(
'avaliacaoRelatorio.'
)
->
group
(
function
()
{
Route
::
post
(
'/atribuirAvaliadorPlano'
,
'AvaliacaoRelatorioController@atribuicaoAvaliador'
)
->
name
(
'atribuicao.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/removerAvaliadorPlano/{id}'
,
'AvaliacaoRelatorioController@removerAvaliador'
)
->
name
(
'remover.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
});
Route
::
get
(
'/trabalho/planos/avaliacao/{id}'
,
'AvaliacaoRelatorioController@listarUser'
)
->
name
(
'planos.avaliacoesUser'
);
Route
::
get
(
'/trabalho/planos/avaliacoes/index'
,
'AvaliacaoRelatorioController@index'
)
->
name
(
'planos.avaliacoes.index'
);
Route
::
post
(
'/trabalho/planos/avaliacoes/criar'
,
'AvaliacaoRelatorioController@criar'
)
->
name
(
'planos.avaliacoesUser.criar'
);
Route
::
prefix
(
'areaTematica'
)
->
name
(
'areaTematica.'
)
->
group
(
function
()
{
Route
::
get
(
'/editar/{id}'
,
'AreaTematicaController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/atualizar/{id}'
,
'AreaTematicaController@update'
)
->
name
(
'atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/excluir/{id}'
,
'AreaTematicaController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'AreaTematicaController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/nova'
,
'AreaTematicaController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
});
Route
::
prefix
(
'objetivoDeDenvolvimentoSustentavel'
)
->
name
(
'objetivoDeDenvolvimentoSustentavel.'
)
->
group
(
function
()
{
Route
::
get
(
'/editar/{id}'
,
'ObjetivoDeDesenvolvimentoSustentavelController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/atualizar/{id}'
,
'ObjetivoDeDesenvolvimentoSustentavelController@update'
)
->
name
(
'atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/excluir/{id}'
,
'ObjetivoDeDesenvolvimentoSustentavelController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'ObjetivoDeDesenvolvimentoSustentavelController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/novo'
,
'ObjetivoDeDesenvolvimentoSustentavelController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
});
//######### Rotas Administrador #################################
Route
::
get
(
'/perfil-usuario'
,
'UserController@minhaConta'
)
->
name
(
'user.perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
//######## Rotas Avaliador ####################################
Route
::
prefix
(
'avaliador'
)
->
name
(
'avaliador.'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
'AvaliadorController@index'
)
->
name
(
'index'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/trabalhos'
,
'AvaliadorController@visualizarTrabalhos'
)
->
name
(
'visualizarTrabalho'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/planos'
,
'AvaliadorController@listarPlanos'
)
->
name
(
'listarPlanos'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecer'
,
'AvaliadorController@parecer'
)
->
name
(
'parecer'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecer/plano'
,
'AvaliadorController@parecerPlano'
)
->
name
(
'parecer.plano'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/editais'
,
'AvaliadorController@editais'
)
->
name
(
'editais'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/Enviarparecer'
,
'AvaliadorController@enviarParecer'
)
->
name
(
'enviarParecer'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/Enviarparecer/plano'
,
'AvaliadorController@enviarParecerPlano'
)
->
name
(
'enviarParecerPlano'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/Resposta'
,
'AvaliadorController@conviteResposta'
)
->
name
(
'conviteResposta'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecerInterno'
,
'AvaliadorController@parecerInterno'
)
->
name
(
'parecerInterno'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerInterno'
,
'AvaliadorController@enviarParecerInterno'
)
->
name
(
'enviarParecerInterno'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecerBarema'
,
'AvaliadorController@parecerBarema'
)
->
name
(
'parecerBarema'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerBarema'
,
'AvaliadorController@enviarParecerBarema'
)
->
name
(
'enviarParecerBarema'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecerLink'
,
'AvaliadorController@parecerLink'
)
->
name
(
'parecerLink'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerLink'
,
'AvaliadorController@enviarParecerLink'
)
->
name
(
'enviarParecerLink'
)
->
middleware
(
'auth'
);
});
Route
::
get
(
'/notificacao/listar'
,
'NotificacaoController@listar'
)
->
name
(
'notificacao.listar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/notificacao/lista'
,
'NotificacaoController@listarTrab'
)
->
name
(
'notificacao.listarTrab'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/notificacao/ler/{id}'
,
'NotificacaoController@ler'
)
->
name
(
'notificacao.ler'
);
Route
::
get
(
'/home/edital'
,
'EventoController@index'
)
->
name
(
'visualizarEvento'
);
// ######## rotas de teste #####################################
Route
::
get
(
'/coordenador/evento/detalhes'
,
'EventoController@detalhes'
)
->
name
(
'coord.detalhesEvento'
);
//####### Visualizar trabalhos do usuário ######################
Route
::
get
(
'/user/trabalhos'
,
'UserController@meusTrabalhos'
)
->
name
(
'user.meusTrabalhos'
);
//######### Cadastrar Comissão ###################################
Route
::
post
(
'/evento/cadastrarComissao'
,
'ComissaoController@store'
)
->
name
(
'cadastrar.comissao'
);
Route
::
post
(
'/evento/cadastrarCoordComissao'
,
'ComissaoController@coordenadorComissao'
)
->
name
(
'cadastrar.coordComissao'
);
//######### rota downloadArquivo ################################
Route
::
get
(
'/downloadArquivo'
,
'HomeController@downloadArquivo'
)
->
name
(
'download'
);
//######### Area do participante ###############################
Route
::
get
(
'/participante'
,
'EventoController@areaParticipante'
)
->
name
(
'area.participante'
);
Route
::
get
(
'participante/editais'
,
'ParticipanteController@editais'
)
->
name
(
'participante.editais'
);
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
//######### Plano de Trablho ########################################
Route
::
prefix
(
'/plano/trabalho'
)
->
name
(
'plano.trabalho.'
)
->
group
(
function
()
{
Route
::
get
(
'/index/{evento_id}'
,
'PlanoTrabalhoController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/selecionar/{evento_id}'
,
'PlanoTrabalhoController@selecionarPlanos'
)
->
name
(
'selecionarPlanos'
);
Route
::
post
(
'/atribuicao'
,
'PlanoTrabalhoController@atribuicao'
)
->
name
(
'atribuicao'
);
});
//########## Area da comissao ###################################
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
Route
::
get
(
'/area/comissao'
,
'EventoController@listComissaoTrabalhos'
)
->
name
(
'area.comissao'
);
//########### Deletar Comissão ###################################
Route
::
delete
(
'/evento/apagar-comissao/'
,
'ComissaoController@destroy'
)
->
name
(
'delete.comissao'
);
Route
::
post
(
'/evento/numTrabalhos'
,
'EventoController@numTrabalhos'
)
->
name
(
'trabalho.numTrabalhos'
);
//########## Area ###########################################
Route
::
post
(
'/area/criar'
,
'AreaController@store'
)
->
name
(
'area.store'
);
//########### Deletar Area ######################################
Route
::
delete
(
'/area/deletar/{id}'
,
'AreaController@destroy'
)
->
name
(
'area.delete'
);
//######### Deletar Revisores ##############################
Route
::
delete
(
'/revisor/apagar'
,
'RevisorController@destroy'
)
->
name
(
'revisor.delete'
);
//######### AreaModalidade ###################################
Route
::
post
(
'/areaModalidade/criar'
,
'AreaModalidadeController@store'
)
->
name
(
'areaModalidade.store'
);
//######### Trabalho ########################################
Route
::
get
(
'/trabalho/submeter/{id}'
,
'TrabalhoController@index'
)
->
name
(
'trabalho.index'
);
// Route::get( '/trabalho/visualizar/{id}','TrabalhoController@show' )->name('trabalho.show');
Route
::
post
(
'/trabalho/novaVersao'
,
'TrabalhoController@novaVersao'
)
->
name
(
'trabalho.novaVersao'
);
Route
::
post
(
'/trabalho/criar'
,
'TrabalhoController@salvar'
)
->
name
(
'trabalho.store'
);
Route
::
post
(
'/trabalho/criarRascunho'
,
'TrabalhoController@storeParcial'
)
->
name
(
'trabalho.storeParcial'
);
Route
::
get
(
'/edital/{id}/projetos'
,
'TrabalhoController@projetosDoEdital'
)
->
name
(
'projetos.edital'
);
Route
::
get
(
'/projeto/visualizar/{id}'
,
'TrabalhoController@show'
)
->
name
(
'trabalho.show'
);
Route
::
get
(
'/projeto/{id}/editar'
,
'TrabalhoController@edit'
)
->
name
(
'trabalho.editar'
);
Route
::
post
(
'/projeto/buscarUsuario'
,
'TrabalhoController@buscarUsuario'
)
->
name
(
'trabalho.buscarUsuario'
);
Route
::
post
(
'/projeto/{id}/atualizar'
,
'TrabalhoController@update'
)
->
name
(
'trabalho.update'
);
Route
::
get
(
'/projeto/{id}/excluir'
,
'TrabalhoController@destroy'
)
->
name
(
'trabalho.destroy'
);
Route
::
get
(
'/projeto/{id}/excluirParticipante'
,
'TrabalhoController@excluirParticipante'
)
->
name
(
'trabalho.excluirParticipante'
);
Route
::
post
(
'/projeto/{trabalho}/solicitarCertificado'
,
'TrabalhoController@solicitarCertificado'
)
->
name
(
'trabalho.solicitarCertificado'
);
Route
::
get
(
'/projeto/exportar/{id}'
,
'TrabalhoController@exportProjeto'
)
->
name
(
'exportar.projeto'
);
Route
::
get
(
'/projeto/substituirParticipante'
,
'TrabalhoController@telaTrocaPart'
)
->
name
(
'trabalho.trocaParticipante'
);
Route
::
post
(
'/projeto/substituirParticipante'
,
'TrabalhoController@trocaParticipante'
)
->
name
(
'trabalho.infoTrocaParticipante'
);
Route
::
get
(
'/showSubstituicoes'
,
'TrabalhoController@telaShowSubst'
)
->
name
(
'trabalho.telaAnaliseSubstituicoes'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/aprovarSubstituicao'
,
'TrabalhoController@aprovarSubstituicao'
)
->
name
(
'trabalho.aprovarSubstituicao'
);
Route
::
post
(
'/aprovarProposta/{id}'
,
'TrabalhoController@aprovarProposta'
)
->
name
(
'trabalho.aprovarProposta'
);
Route
::
post
(
'/certificado/{certificado}'
,
'CertificadoController@update'
)
->
name
(
'certificado.update'
);
//########## Bolsas
Route
::
get
(
'/bolsas'
,
'ParticipanteController@listarParticipanteEdital'
)
->
name
(
'bolsas.listar'
);
Route
::
post
(
'/bolsas/alteracao'
,
'ParticipanteController@alterarBolsa'
)
->
name
(
'bolsa.alterar'
);
//########## Arquivar Projeto e Plano
Route
::
get
(
'/arquivar/projeto'
,
'TrabalhoController@arquivar'
)
->
name
(
'projeto.arquivar'
);
Route
::
get
(
'/arquivar/plano'
,
'ArquivoController@arquivar'
)
->
name
(
'arquivo.arquivar'
);
//######### Imprimir Resultado #################################
Route
::
get
(
'/usuarios/showResultados/imprimir'
,
'AdministradorController@imprimirResultados'
)
->
name
(
'resultados.gerar'
);
//########## Relatórios
Route
::
get
(
'/projeto/planosTrabalho/{id}'
,
'ArquivoController@listar'
)
->
name
(
'planos.listar'
);
Route
::
post
(
'/projeto/planosTrabalho/anexarRelatorio'
,
'ArquivoController@anexarRelatorio'
)
->
name
(
'planos.anexar.relatorio'
);
//########## Documentação Complementar
Route
::
get
(
'/documentacaoComplementar'
,
'ParticipanteController@listarParticipanteProjeto'
)
->
name
(
'docComplementar.listar'
);
Route
::
post
(
'/documentacaoComplementar/enviar'
,
'ParticipanteController@atualizarDocComplementar'
)
->
name
(
'docComplementar.enviar'
);
//######### Atribuição #######################################
Route
::
get
(
'/atribuir'
,
'AtribuicaoController@distribuicaoAutomatica'
)
->
name
(
'distribuicao'
);
Route
::
get
(
'/atribuirPorArea'
,
'AtribuicaoController@distribuicaoPorArea'
)
->
name
(
'distribuicaoAutomaticaPorArea'
);
Route
::
post
(
'/distribuicaoManual'
,
'AtribuicaoController@distribuicaoManual'
)
->
name
(
'distribuicaoManual'
);
Route
::
post
(
'/removerAtribuicao'
,
'AtribuicaoController@deletePorRevisores'
)
->
name
(
'atribuicao.delete'
);
//########## Revisores #########################################
Route
::
post
(
'/revisor/criar'
,
'RevisorController@store'
)
->
name
(
'revisor.store'
);
Route
::
get
(
'/revisor/listarTrabalhos'
,
'RevisorController@indexListarTrabalhos'
)
->
name
(
'revisor.listarTrabalhos'
);
Route
::
post
(
'/revisor/email'
,
'RevisorController@enviarEmailRevisor'
)
->
name
(
'revisor.email'
);
Route
::
post
(
'/revisor/emailTodos'
,
'RevisorController@enviarEmailTodosRevisores'
)
->
name
(
'revisor.emailTodos'
);
//########## Rotas de download de documentos ###########################
Route
::
get
(
'/baixar/anexo-projeto/{id}'
,
'TrabalhoController@baixarAnexoProjeto'
)
->
name
(
'baixar.anexo.projeto'
);
Route
::
get
(
'/baixar/anexo-consu/{id}'
,
'TrabalhoController@baixarAnexoConsu'
)
->
name
(
'baixar.anexo.consu'
);
Route
::
get
(
'/baixar/anexo-comite/{id}'
,
'TrabalhoController@baixarAnexoComite'
)
->
name
(
'baixar.anexo.comite'
);
Route
::
get
(
'/baixar/anexo-justificativa/{id}'
,
'TrabalhoController@baixarAnexoJustificativa'
)
->
name
(
'baixar.anexo.justificativa'
);
Route
::
get
(
'/baixar/anexo-lattes/{id}'
,
'TrabalhoController@baixarAnexoLattes'
)
->
name
(
'baixar.anexo.lattes'
);
Route
::
get
(
'/baixar/anexo-planilha/{id}'
,
'TrabalhoController@baixarAnexoPlanilha'
)
->
name
(
'baixar.anexo.planilha'
);
Route
::
get
(
'/baixar/plano-de-trabalho/{id}'
,
'ArquivoController@baixarPlano'
)
->
name
(
'baixar.plano'
);
Route
::
get
(
'/baixar/anexoGrupoPesquisa/{id}'
,
'TrabalhoController@baixarAnexoGrupoPesquisa'
)
->
name
(
'baixar.anexoGrupoPesquisa'
);
Route
::
get
(
'/baixar/anexo-temp/{eventoId}/{nomeAnexo}'
,
'TrabalhoController@baixarAnexoTemp'
)
->
name
(
'baixar.anexo.temp'
);
Route
::
get
(
'/baixar/evento-temp/{nomeAnexo}'
,
'TrabalhoController@baixarEventoTemp'
)
->
name
(
'baixar.evento.temp'
);
Route
::
get
(
'/baixar/documentosParticipante'
,
'ParticipanteController@baixarDocumento'
)
->
name
(
'baixar.documentosParticipante'
);
Route
::
get
(
'/baixar/anexoDocExtra/{id}'
,
'TrabalhoController@baixarAnexoDocExtra'
)
->
name
(
'baixar.anexo.docExtra'
);
});
Route
::
get
(
'/baixar/edital/{id}'
,
'EventoController@baixarEdital'
)
->
name
(
'baixar.edital'
);
Route
::
get
(
'/baixar/modelos/{id}'
,
'EventoController@baixarModelos'
)
->
name
(
'baixar.modelos'
);
Route
::
prefix
(
'usuarios'
)
->
name
(
'admin.'
)
->
group
(
function
()
{
//######### Rotas da administração dos usuários ####################
Route
::
get
(
'/home-admin'
,
'AdministradorController@index'
)
->
name
(
'index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/usuarios'
,
'AdministradorController@usuarios'
)
->
name
(
'usuarios'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/novo'
,
'AdministradorController@create'
)
->
name
(
'user.create'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar-novo'
,
'AdministradorController@salvar'
)
->
name
(
'user.store'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'AdministradorController@edit'
)
->
name
(
'user.edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/editar/atualizar/{id}'
,
'AdministradorController@update'
)
->
name
(
'user.update'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/editar/deletar/{id}'
,
'AdministradorController@destroy'
)
->
name
(
'user.destroy'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editais'
,
'AdministradorController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/atribuir'
,
'AdministradorController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
get
(
'/selecionarAvaliador'
,
'AdministradorController@selecionar'
)
->
name
(
'selecionar'
);
Route
::
get
(
'/selecionarProjetos'
,
'AdministradorController@projetos'
)
->
name
(
'projetos'
);
Route
::
post
(
'/adicionarAvalEvento'
,
'AdministradorController@adicionar'
)
->
name
(
'adicionar'
);
Route
::
post
(
'/removerAvalEvento'
,
'AdministradorController@remover'
)
->
name
(
'remover'
);
Route
::
get
(
'/removerProjAval'
,
'AdministradorController@removerProjAval'
)
->
name
(
'removerProjAval'
);
Route
::
post
(
'/atribuirAvaliadorProjeto'
,
'AdministradorController@atribuicaoProjeto'
)
->
name
(
'atribuicao.projeto'
);
Route
::
post
(
'/enviarConviteEAtribuirProjeto'
,
'AdministradorController@enviarConviteEAtribuir'
)
->
name
(
'convite.atribuicao.projeto'
);
Route
::
get
(
'/reenviarConviteAtribuicaoProjeto'
,
'AdministradorController@reenviarConviteAtribuicaoProjeto'
)
->
name
(
'reenviar.atribuicao.projeto'
);
Route
::
post
(
'/enviarConviteAvaliador'
,
'AdministradorController@enviarConvite'
)
->
name
(
'enviarConvite'
);
Route
::
post
(
'/reenviarConviteAvaliador'
,
'AdministradorController@reenviarConvite'
)
->
name
(
'reenviarConvite'
);
Route
::
post
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/visualizarParecerInterno'
,
'AdministradorController@visualizarParecerInterno'
)
->
name
(
'visualizarParecerInterno'
);
Route
::
get
(
'/visualizarParecerLink'
,
'AdministradorController@visualizarParecerLink'
)
->
name
(
'visualizarParecerLink'
);
Route
::
get
(
'/visualizarParecerBarema'
,
'AdministradorController@visualizarParecerBarema'
)
->
name
(
'visualizarParecerBarema'
);
Route
::
get
(
'/pareceresProjetos'
,
'AdministradorController@pareceres'
)
->
name
(
'pareceres'
);
Route
::
get
(
'/analisarProjetos/{column?}'
,
'AdministradorController@analisar'
)
->
name
(
'analisar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/analisarProposta'
,
'AdministradorController@analisarProposta'
)
->
name
(
'analisarProposta'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/showProjetos'
,
'AdministradorController@showProjetos'
)
->
name
(
'showProjetos'
);
Route
::
get
(
'/showResultados'
,
'AdministradorController@showResultados'
)
->
name
(
'showResultados'
)
->
middleware
([
'auth'
,
'verified'
]);
});
Route
::
prefix
(
'naturezas'
)
->
group
(
function
()
{
//########### Rotas das naturezas ###############################
Route
::
get
(
'/'
,
'AdministradorController@naturezas'
)
->
name
(
'admin.naturezas'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/index'
,
'NaturezaController@index'
)
->
name
(
'natureza.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/nova'
,
'NaturezaController@create'
)
->
name
(
'natureza.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'NaturezaController@store'
)
->
name
(
'natureza.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/detalhes/{id}'
,
'NaturezaController@show'
)
->
name
(
'natureza.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'NaturezaController@edit'
)
->
name
(
'natureza.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/atualizar/{id}'
,
'NaturezaController@update'
)
->
name
(
'natureza.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/excluir/{id}'
,
'NaturezaController@destroy'
)
->
name
(
'natureza.deletar'
)
->
middleware
(
'checkAdministrador'
);
//########### Rotas das grandes areas ##############################
Route
::
get
(
'/grande-area'
,
'GrandeAreaController@index'
)
->
name
(
'grandearea.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/grande-area/nova'
,
'GrandeAreaController@create'
)
->
name
(
'grandearea.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/grande-area/salvar'
,
'GrandeAreaController@store'
)
->
name
(
'grandearea.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/grande-area/detalhes/{id}'
,
'GrandeAreaController@show'
)
->
name
(
'grandearea.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/grande-area/editar/{id}'
,
'GrandeAreaController@edit'
)
->
name
(
'grandearea.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/grande-area/atualizar/{id}'
,
'GrandeAreaController@update'
)
->
name
(
'grandearea.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/grande-area/excluir/{id}'
,
'GrandeAreaController@destroy'
)
->
name
(
'grandearea.deletar'
)
->
middleware
(
'checkAdministrador'
);
//#### Rotas das areas, id's de nova e salvar são os ids da grande área a qual a nova área pertence ####
Route
::
get
(
'/areas'
,
'AreaController@index'
)
->
name
(
'area.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/{id}/area/nova'
,
'AreaController@create'
)
->
name
(
'area.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/{id}/area/salvar'
,
'AreaController@store'
)
->
name
(
'area.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/area/detalhes/{id}'
,
'AreaController@show'
)
->
name
(
'area.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/area/editar/{id}'
,
'AreaController@edit'
)
->
name
(
'area.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/area/atualizar/{id}'
,
'AreaController@update'
)
->
name
(
'area.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/area/excluir/{id}'
,
'AreaController@destroy'
)
->
name
(
'area.deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/areas/'
,
'AreaController@consulta'
)
->
name
(
'area.consulta'
);
Route
::
post
(
'/avalConExterno/'
,
'AvaliadorController@consultaExterno'
)
->
name
(
'aval.consultaExterno'
);
Route
::
post
(
'/avalConInterno/'
,
'AvaliadorController@consultaInterno'
)
->
name
(
'aval.consultaInterno'
);
//### Rotas das subareas, id's de nova e salvar são os ids da área a qual a nova subárea pertence #####
Route
::
get
(
'/subareas'
,
'SubAreaController@index'
)
->
name
(
'subarea.index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/{id}/subarea/nova'
,
'SubAreaController@create'
)
->
name
(
'subarea.criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/{id}/subarea/salvar'
,
'SubAreaController@store'
)
->
name
(
'subarea.salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/subarea/detalhes/{id}'
,
'SubAreaController@show'
)
->
name
(
'subarea.show'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/subarea/editar/{id}'
,
'SubAreaController@edit'
)
->
name
(
'subarea.editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/atualizar/{id}'
,
'SubAreaController@update'
)
->
name
(
'subarea.atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/excluir/{id}'
,
'SubAreaController@destroy'
)
->
name
(
'subarea.deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/subarea/'
,
'SubAreaController@consulta'
)
->
name
(
'subarea.consulta'
);
Route
::
post
(
'/funcao-participante/store'
,
'ParticipanteController@storeFuncao'
)
->
name
(
'funcao_participante.store'
);
Route
::
post
(
'/funcao-participante/{id}/update'
,
'ParticipanteController@updateFuncao'
)
->
name
(
'funcao_participante.update'
);
Route
::
get
(
'/funcao-participante/{id}/destroy'
,
'ParticipanteController@destroyFuncao'
)
->
name
(
'funcao_participante.destroy'
);
});
Route
::
prefix
(
'cursos'
)
->
name
(
'cursos.'
)
->
group
(
function
(){
//#################### Rotas de cursos #########################
Route
::
get
(
'index'
,
'CursoController@index'
)
->
name
(
'index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'nova'
,
'CursoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'salvar'
,
'CursoController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'editar/{id}'
,
'CursoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'editar/{id}'
,
'CursoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkAdministrador'
);
Route
::
delete
(
'exluir/{id}'
,
'CursoController@destroy'
)
->
name
(
'excluir'
)
->
middleware
(
'checkAdministrador'
);
//Route::get('novo')->name('novo');
});
//############ Evento ##############################################
Route
::
prefix
(
'evento'
)
->
name
(
'evento.'
)
->
group
(
function
()
{
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
)
->
middleware
(
'auth'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
)
->
middleware
(
'checkAdministrador'
);
});
//########## Rotas de administrador responsavel (Reitor ou pro-reitor)########
Route
::
prefix
(
'adminResp'
)
->
name
(
'adminResp.'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
'AdministradorResponsavelController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/editais'
,
'AdministradorResponsavelController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/usuarios'
,
'AdministradorResponsavelController@usuarios'
)
->
name
(
'usuarios'
);
Route
::
get
(
'/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/verPermissao'
,
'AdministradorResponsavelController@verPermissao'
)
->
name
(
'verPermissao'
);
});
//########### Rotas Coordenador ##################################
Route
::
prefix
(
'coordenador'
)
->
name
(
'coordenador.'
)
->
group
(
function
()
{
Route
::
get
(
'/index'
,
'CoordenadorComissaoController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/editais'
,
'CoordenadorComissaoController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/usuarios'
,
'CoordenadorComissaoController@usuarios'
)
->
name
(
'usuarios'
);
Route
::
get
(
'/listarCoord'
,
'CoordenadorComissaoController@coordenadorComite'
)
->
name
(
'coord'
);
Route
::
get
(
'/listarAvaliador'
,
'CoordenadorComissaoController@avaliador'
)
->
name
(
'avaliador'
);
Route
::
get
(
'/listarProponente'
,
'CoordenadorComissaoController@proponente'
)
->
name
(
'proponente'
);
Route
::
get
(
'/listarParticipante'
,
'CoordenadorComissaoController@participante'
)
->
name
(
'participante'
);
Route
::
get
(
'/listarTrabalhos'
,
'CoordenadorComissaoController@listarTrabalhos'
)
->
name
(
'listarTrabalhos'
);
Route
::
get
(
'/detalhesEdital/{evento_id}'
,
'CoordenadorComissaoController@detalhesEdital'
)
->
name
(
'detalhesEdital'
);
Route
::
post
(
'/retornoDetalhes'
,
'CoordenadorComissaoController@retornoDetalhes'
)
->
name
(
'retornoDetalhes'
);
Route
::
post
(
'/atribuirAvaliadorTrabalho'
,
'TrabalhoController@atribuirAvaliadorTrabalho'
)
->
name
(
'atribuirAvaliadorTrabalho'
);
Route
::
post
(
'/atribuir'
,
'TrabalhoController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/atribuir'
,
'TrabalhoController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/resposta-solicitacao-desligamento/{desligamento_id}'
,
'CoordenadorComissaoController@respostaDesligamento'
)
->
name
(
'resposta.desligamento'
);
});
Prev
1
2
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