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
da7eac2e
Commit
da7eac2e
authored
May 19, 2022
by
Guilherme Silva
Browse files
Criada telas e ajustes para a utilização da avaliação de relatórios
parent
d6e2a3e4
Changes
6
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliacaoRelatorioController.php
View file @
da7eac2e
...
...
@@ -24,15 +24,6 @@ class AvaliacaoRelatorioController extends Controller
public
function
listarUser
(
Request
$request
){
$planos
=
Arquivo
::
where
(
'trabalhoId'
,
$request
->
trabalho_id
)
->
get
();
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
$request
->
user_id
)
->
get
();
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
]);
}
public
function
listarUser2
(
Request
$request
){
$planos
=
Arquivo
::
where
(
'trabalhoId'
,
$request
->
trabalho_id
)
->
get
();
$avaliacoes
=
AvaliacaoRelatorio
::
where
(
'user_id'
,
$request
->
user_id
)
->
get
();
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
...
...
@@ -45,7 +36,7 @@ class AvaliacaoRelatorioController extends Controller
$tipoRelatorio
=
"Final"
;
}
return
view
(
'avaliacaoRelatorio.listar
2
'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
,
"evento"
=>
$evento
,
"tipoRelatorio"
=>
$tipoRelatorio
]);
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
,
"evento"
=>
$evento
,
"tipoRelatorio"
=>
$tipoRelatorio
]);
}
public
function
index
(
Request
$request
){
...
...
@@ -105,7 +96,7 @@ class AvaliacaoRelatorioController extends Controller
$tipoRelatorio
=
"Final"
;
}
return
view
(
'avaliacaoRelatorio.listar
2
'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
,
"evento"
=>
$evento
,
"tipoRelatorio"
=>
$tipoRelatorio
,
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacoes"
=>
$avaliacoes
,
"trabalho"
=>
$trabalho
,
"planos"
=>
$planos
,
"evento"
=>
$evento
,
"tipoRelatorio"
=>
$tipoRelatorio
,
'sucesso'
=>
'Avaliação do relatório '
.
$tipoRelatorio
.
" do plano "
.
$plano
->
titulo
.
' realizada com sucesso.'
]);
}
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
da7eac2e
...
...
@@ -3,6 +3,8 @@
@
section
(
'content'
)
@
php
$grandesAreas
=
\
App\GrandeArea
::
all
();
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
@
endphp
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 100px;"
>
...
...
@@ -24,7 +26,9 @@
</
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #1492E6;"
>
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem; font-weight: bold"
>
{{
$evento
->
nome
}}
</
h6
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem; font-weight: bold"
>
{{
$evento
->
nome
}}
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
@@ -36,11 +40,13 @@
<
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"
>
Área
de
Ensino
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Área
de
Ensino
</
h5
>
</
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem"
>
{{
App\GrandeArea
::
where
(
'id'
,
$trabalho
->
grande_area_id
)
->
first
()
->
nome
}}
>
{{
App\Area
::
where
(
'id'
,
$trabalho
->
area_id
)
->
first
()
->
nome
}}
@
if
(
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
!=
null
)
>
{{
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
->
nome
}}
@
endif
@
if
(
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
!=
null
)
>
{{
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
->
nome
}}
@
endif
</
h6
></
div
>
</
div
>
...
...
@@ -57,36 +63,39 @@
<
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"
>
Informações
do
Proponente
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Informações
do
Proponente
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Nome
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
>
<
b
>
Nome
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
</
div
>
<
div
class
=
"col-md-12"
>
<
b
style
=
"color: #4D4D4D;"
>
Lattes
:</
b
>
@
if
(
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
!=
null
)
<
a
style
=
"color: #4D4D4D;"
href
=
"{{ App\Proponente::where('id',
$trabalho->proponente_id
)->first()->linkLattes }}"
<
a
style
=
"color: #4D4D4D;"
href
=
"{{ App\Proponente::where('id',
$trabalho->proponente_id
)->first()->linkLattes }}"
target
=
"_blank"
>
{{
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
}}
</
a
>
@
endif
</
div
>
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-md-12"
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Grupo
de
Pesquisa
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
href
=
"{{
$trabalho->linkGrupoPesquisa
}}"
target
=
"_blank"
>
{{
$trabalho
->
linkGrupoPesquisa
}}
</
a
>
</
div
>
<
div
class
=
"col-md-12"
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Grupo
de
Pesquisa
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
href
=
"{{
$trabalho->linkGrupoPesquisa
}}"
target
=
"_blank"
>
{{
$trabalho
->
linkGrupoPesquisa
}}
</
a
>
</
div
>
<
div
class
=
"col-md-12"
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Valor
da
Planilha
de
Pontuação
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
pontuacaoPlanilha
}}
</
a
>
</
div
>
<
div
class
=
"col-md-12"
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Valor
da
Planilha
de
Pontuação
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
pontuacaoPlanilha
}}
</
a
>
</
div
>
@
endif
@
if
(
$trabalho
->
modalidade
!=
null
)
<
div
class
=
"col-md-12"
>
...
...
@@ -101,7 +110,6 @@
</
div
>
</
div
>
</
div
>
<!--
Discentes
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-10"
>
...
...
@@ -110,9 +118,10 @@
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Discentes
</
h5
></
div
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
div
class
=
"col-sm-3 text-sm-right"
>
@
if
(
$substituicoesPendentes
->
count
()
>
0
)
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
Pendentes
</
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
Pendentes
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/warning.ico')}
}
"
style
=
"width:15px"
alt
=
""
>
@
else
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
/
Desligamentos
</
a
>
...
...
@@ -129,28 +138,33 @@
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$participante
->
user
->
name
}}
</
h5
>
<
h9
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
>
Informações
</
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
>
Informações
</
a
>
</
h9
>
<
br
>
<
a
href
=
""
>
<
a
href
=
""
>
Remover
</
a
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipante
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuParticipante
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'administrador.substituirParticipanteForm'
,
[
'visualizarOnly'
=>
1
,
'edital'
=>
$evento
])
</
div
>
</
div
>
...
...
@@ -159,19 +173,26 @@
@
foreach
(
$substituicoesProjeto
as
$subs
)
<!--
Modal
vizualizar
info
participante
substituido
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituido
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituido
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
, 1)"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
, 1)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'administrador.vizualizarParticipante'
,
[
'visualizarSubstituido'
=>
1
])
</
div
>
</
div
>
...
...
@@ -179,19 +200,26 @@
</
div
>
<!--
Modal
vizualizar
info
participante
substituto
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituto
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuParticipanteSubstituto
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
, 2)"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
onclick
=
"abrirHistorico(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
, 2)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'administrador.vizualizarParticipante'
)
</
div
>
</
div
>
...
...
@@ -199,39 +227,50 @@
</
div
>
@
endforeach
<!--
Modal
reprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<!--
Modal
reprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Cancelar
Substituição
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Cancelar
Substituição
</
h5
>
<
button
type
=
"button"
class
=
"close"
id
=
"closeCancel"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
id
=
"closeCancel"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"CancelarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
<
form
method
=
"POST"
id
=
"CancelarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"negaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"negaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"false"
>
<
div
class
=
"row"
>
<
div
class
=
"col-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
></
textarea
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
></
textarea
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
</
select
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"col-md-auto"
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Cancelar
Substituição
</
button
></
div
>
<
div
>
<
button
type
=
"submit"
class
=
"btn btn-success"
>
Cancelar
Substituição
</
button
>
</
div
>
</
div
>
</
div
>
</
form
>
...
...
@@ -241,20 +280,24 @@
</
div
>
<!--
Modal
aprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalResultadoSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalResultadoSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Proceder
Com
Substituição
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Proceder
Com
Substituição
</
h5
>
<
button
id
=
"closeAcept"
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
id
=
"closeAcept"
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"aprovaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"true"
>
...
...
@@ -263,16 +306,23 @@
<
div
class
=
"col-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
>
Substituição
cumpre
com
todos
os
requisitos
</
textarea
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
>
Substituição
cumpre
com
todos
os
requisitos
</
textarea
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
</
select
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"col-md-auto"
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Aprovar
Substituição
</
button
></
div
>
<
div
>
<
button
type
=
"submit"
class
=
"btn btn-success"
>
Aprovar
Substituição
</
button
>
</
div
>
</
div
>
</
div
>
</
form
>
...
...
@@ -303,54 +353,75 @@
<
div
class
=
"row justify-content-start"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-4"
>
<
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
>
<
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
>
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoLatterCoordenador"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Lattes do Coordenador: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoLatterCoordenador"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Lattes do Coordenador: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
</
div
>
@
endif
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
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
>
<
div
class
=
"col-sm-4"
>
<
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
>
@
endif
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Planilha de Pontuação: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/xlsx.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Planilha de Pontuação: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/xlsx.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
</
div
>
@
endif
@
if
(
$evento
->
tipo
!=
"PIBEX"
)
<
div
class
=
"col-sm-4"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Grupo de Pesquisa: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoGrupoPesquisa
!=
null
)
<
a
href
=
"{{ route('baixar.anexoGrupoPesquisa', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Grupo de Pesquisa: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoGrupoPesquisa
!=
null
)
<
a
href
=
"{{ route('baixar.anexoGrupoPesquisa', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
@
endif
@
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
||
$evento
->
tipo
==
"PIBEX"
)
{{
--
Decisão
do
CONSU
--
}}
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoCONSU"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Decisão do CONSEPE: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.consu', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
<
label
for
=
"anexoCONSU"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Decisão do CONSEPE: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.consu', ['id' =>
$trabalho->id
]) }}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
@
endif
...
...
@@ -369,8 +440,9 @@
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Relatórios
</
h5
></
div
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
a
href
=
"{{route('planos.listar', ['id' =>
$trabalho->id
])}}"
class
=
"button"
>
Listar
Relatórios
</
a
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
a
href
=
"{{route('planos.listar', ['id' =>
$trabalho->id
])}}"
class
=
"button"
>
Listar
Relatórios
</
a
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
...
...
@@ -378,31 +450,241 @@
<
div
class
=
"row justify-content-center"
>
{{
--
Relatório
Parcial
--
}}
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_inicioRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Parcial: '
)
}}
</
label
>
<
label
for
=
"dt_inicioRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Parcial: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_inicioRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioParcial"
value
=
"
{
{$evento->dt_inicioRelatorioParcial}
}
"
required
autocomplete
=
"dt_inicioRelatorioParcial"
disabled
autofocus
>
<
input
id
=
"dt_inicioRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioParcial"
value
=
"
{
{$evento->dt_inicioRelatorioParcial}
}
"
required
autocomplete
=
"dt_inicioRelatorioParcial"
disabled
autofocus
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_fimRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Parcial: '
)
}}
</
label
>
<
label
for
=
"dt_fimRelatorioParcial"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Parcial: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_fimRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioParcial"
value
=
"
{
{$evento->dt_fimRelatorioParcial}
}
"
required
autocomplete
=
"dt_fimRelatorioParcial"
disabled
autofocus
>
<
input
id
=
"dt_fimRelatorioParcial
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioParcial"
value
=
"
{
{$evento->dt_fimRelatorioParcial}
}
"
required
autocomplete
=
"dt_fimRelatorioParcial"
disabled
autofocus
>
</
div
>
{{
--
Relatório
Final
--
}}
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_inicioRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Final:'
)
}}
</
label
>
<
label
for
=
"dt_inicioRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Início do Relatório Final:'
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_inicioRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioFinal"
value
=
"
{
{$evento->dt_inicioRelatorioFinal}
}
"
required
autocomplete
=
"dt_inicioRelatorioFinal"
disabled
autofocus
>
<
input
id
=
"dt_inicioRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_inicioRelatorioFinal"
value
=
"
{
{$evento->dt_inicioRelatorioFinal}
}
"
required
autocomplete
=
"dt_inicioRelatorioFinal"
disabled
autofocus
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"dt_fimRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Final:'
)
}}
</
label
>
<
label
for
=
"dt_fimRelatorioFinal"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Fim do Relatório Final:'
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
input
id
=
"dt_fimRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioFinal"
value
=
"
{
{$evento->dt_fimRelatorioFinal}
}
"
required
autocomplete
=
"dt_fimRelatorioFinal"
disabled
autofocus
>
<
input
id
=
"dt_fimRelatorioFinal
{
{$evento->id}
}
"
type
=
"date"
class
=
"form-control"
name
=
"dt_fimRelatorioFinal"
value
=
"
{
{$evento->dt_fimRelatorioFinal}
}
"
required
autocomplete
=
"dt_fimRelatorioFinal"
disabled
autofocus
>
</
div
>
</
div
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-sm-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliações
de
Relatórios
</
h5
></
div
>
@
if
((
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
)
||
(
$hoje
>
$evento
->
dt_fimRelatorioFinal
))
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliacaoModalCenter"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
</
a
>
</
div
>
@
else
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
</
a
>
</
div
>
@
endif
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"avaliacaoModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
<
div
class
=
"modal-content modal-submeta modal-xl"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"col-md-8"
style
=
"padding-left: 0px"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliacaoModalLongTitle"
>
Seleciones
o
(
s
)
avaliador
(
es
)
</
h5
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"text-align: right"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
data
-
dismiss
=
"modal"
style
=
"color: rgb(182, 182, 182);padding-right: 0px;"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
@
if
(
session
(
'error'
))
<
div
class
=
"col-md-12"
>
<
div
class
=
"alert alert-danger"
role
=
"alert"
>
<
p
>
{{
session
(
'error'
)
}}
</
p
>
</
div
>
</
div
>
@
endif
<
form
action
=
"{{ route('avaliacaoRelatorio.atribuicao.avaliador') }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
@
if
(
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
)
<
input
type
=
"hidden"
name
=
"tipo_relatorio"
value
=
"Parcial"
>
@
php
$tipoTemp
=
"Parcial"
;
@
endphp
@
else
<
input
type
=
"hidden"
name
=
"tipo_relatorio"
value
=
"Final"
>
@
php
$tipoTemp
=
"Final"
;
@
endphp
@
endif
<
div
class
=
"form-group"
>
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"col-md-6"
>
@
if
(
$evento
->
dt_fimRelatorioParcial
<
$hoje
&&
$hoje
<
$evento
->
dt_inicioRelatorioFinal
)
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
a
(
s
)
avaliacões
de
relatorio
parcial
</
label
>
@
else
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
a
(
s
)
avaliacões
de
relatorio
final
</
label
>
@
endif
</
div
>
</
div
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
<
div
class
=
"col-md-6"
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
</
div
>
@
php
$avaliacoesId
=
\
App\AvaliacaoRelatorio
::
where
(
"arquivo_id"
,
$participante
->
planoTrabalho
->
id
)
->
where
(
"tipo"
,
$tipoTemp
)
->
pluck
(
'user_id'
);
$avalProjeto
=
\
App\User
::
whereNotIn
(
'id'
,
$avaliacoesId
)
->
where
(
'tipo'
,
'!='
,
'participante'
)
->
where
(
'id'
,
'!='
,
$trabalho
->
proponente_id
)
->
get
();
@
endphp
<
select
name
=
"avaliadores_
{
{$participante->planoTrabalho->id}
}
_id[]"
multiple
class
=
"form-control"
id
=
"avaliacaoSelect"
style
=
"height: 200px;font-size:15px"
>
@
foreach
(
$avalProjeto
as
$avaliador
)
<
option
value
=
"{{
$avaliador->id
}}"
>
{{
$avaliador
->
name
}}
>
{{
$avaliador
->
instituicao
??
'Instituição Indefinida'
}}
>
{{
$avaliador
->
tipo
}}
>
{{
$avaliador
->
email
}}
</
option
>
@
endforeach
</
select
>
@
endforeach
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
teclado
para
selecionar
mais
de
um
.
</
small
>
</
div
>
<
div
>
<
button
type
=
"submit"
class
=
"btn btn-info"
style
=
"width: 100%"
>
Atribuir
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
@
if
(
count
(
$AvalRelatParcial
)
>
0
)
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliações
de
Relatórios
Parciais
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$AvalRelatParcial
as
$aval
)
<
div
class
=
"col-sm-1"
style
=
"margin-bottom: 7px"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
h5
>
{{
\
App\User
::
find
(
$aval
->
user_id
)
->
name
}}
</
h5
>
<
h9
><
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuRelatParcial
{
{$aval->id}
}
"
class
=
"button"
>
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>
</
a
>@
else
Avaliação
</
a
>
@
endif
</
h9
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuRelatParcial
{
{$aval->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Avaliação
do
relatório
parcial
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>@
endif
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'avaliacaoRelatorio.avaliacao'
,
[
'avaliacao'
=>
$aval
])
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
@
endif
@
if
(
count
(
$AvalRelatFinal
)
>
0
)
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliações
de
Relatórios
Finais
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$AvalRelatFinal
as
$aval
)
<
div
class
=
"col-sm-1"
style
=
"margin-bottom: 7px"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
h5
>
{{
\
App\User
::
find
(
$aval
->
user_id
)
->
name
}}
</
h5
>
<
h9
><
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuRelatFinal
{
{$aval->id}
}
"
class
=
"button"
>
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>
</
a
>@
else
Avaliação
</
a
>
@
endif
</
h9
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuRelatFinal
{
{$aval->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto; padding-left: 31px"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Avaliação
do
relatório
final
@
if
(
$aval
->
nota
==
null
)
<
b
style
=
"color: red"
>
Pendente
</
b
>@
endif
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;"
>
@
include
(
'avaliacaoRelatorio.avaliacao'
,
[
'avaliacao'
=>
$aval
])
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
...
...
@@ -418,23 +700,30 @@
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
</
h5
></
div
>
<
div
class
=
"col-md-1 text-sm-right"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliadorModalCenter"
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliadorModalCenter"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
</
a
>
</
div
>
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
<
div
class
=
"modal-content modal-submeta modal-xl"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
div
class
=
"col-md-8"
style
=
"padding-left: 0px"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliadorModalLongTitle"
>
Seleciones
o
(
s
)
avaliador
(
es
)
</
h5
>
<
h5
class
=
"modal-title titulo-table"
id
=
"avaliadorModalLongTitle"
>
Seleciones
o
(
s
)
avaliador
(
es
)
</
h5
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"text-align: right"
>
<
button
type
=
"button"
id
=
"enviarConviteButton"
class
=
"btn btn-info"
data
-
toggle
=
"modal"
onclick
=
"abrirModalConvite()"
>
<
button
type
=
"button"
id
=
"enviarConviteButton"
class
=
"btn btn-info"
data
-
toggle
=
"modal"
onclick
=
"abrirModalConvite()"
>
Enviar
Convites
</
button
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
data
-
dismiss
=
"modal"
style
=
"color: rgb(182, 182, 182);padding-right: 0px;"
>
<
button
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
data
-
dismiss
=
"modal"
style
=
"color: rgb(182, 182, 182);padding-right: 0px;"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
...
...
@@ -456,57 +745,83 @@
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
esse
projeto
</
label
>
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
esse
projeto
</
label
>
</
div
>
<
div
class
=
"col-md-3"
style
=
"text-align: center;overflow-y: auto;overflow-x: auto"
>
<
div
class
=
"col-md-3"
style
=
"text-align: center;overflow-y: auto;overflow-x: auto"
>
<
select
class
=
"form-control"
id
=
"grandeArea"
name
=
"grande_area_id"
onchange
=
"areasFiltro()"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
<
select
class
=
"form-control"
id
=
"grandeArea"
name
=
"grande_area_id"
onchange
=
"areasFiltro()"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--
</
option
>
@
foreach
(
$grandesAreas
as
$grandeArea
)
<
option
title
=
"
{
{$grandeArea->nome}
}
"
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
<
option
title
=
"
{
{$grandeArea->nome}
}
"
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
md
-
3
" style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
" >
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
area_id
" onchange="
(
consultaExterno
(),
consultaInterno
())
" >
<option value="" disabled selected hidden>-- Área --</option>
<div class="
col
-
md
-
3
"
style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
">
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
"
id="
area
" name="
area_id
"
onchange="
(
consultaExterno
(),
consultaInterno
())
">
<option value="" disabled selected hidden>-- Área --
</option>
</select>
</div>
</div>
<div class="
col
-
md
-
6
">
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">Externos</label>
</div>
<input type="
hidden
" id="
trab
" value="
{{
$trabalho
->
id
}}
">
<input type="
hidden
" id="
oldAvalExterno
" value="
{{
old
(
'exampleFormControlSelect3'
)
}}
" >
<select name="
avaliadores_externos_id
[]
" multiple class="
form
-
control
" id="
exampleFormControlSelect3
" style="
height
:
200
px
;
font
-
size
:
15
px
">
<input type="
hidden
" id="
oldAvalExterno
"
value="
{{
old
(
'exampleFormControlSelect3'
)
}}
">
<select name="
avaliadores_externos_id
[]
" multiple
class="
form
-
control
" id="
exampleFormControlSelect3
"
style="
height
:
200
px
;
font
-
size
:
15
px
">
@foreach (
$trabalho->aval
as
$avaliador
)
@if(
$avaliador->tipo
== "
Externo
")
<option value="
{{
$avaliador
->
id
}}
" > {{
$avaliador->user
->name }} > {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}} > {{$avaliador->area->nome ?? 'Indefinida'}} >
{
{$avaliador->user->email}
}
</option>
<option value="
{{
$avaliador
->
id
}}
"> {{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
>
{
{$avaliador->user->email}
}
</option>
@endif
@endforeach
</select>
<div class="
col
-
md
-
6
">
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">Internos</label>
</div>
<input type="
hidden
" id="
oldAvalInterno
" value="
{{
old
(
'exampleFormControlSelect2'
)
}}
" >
<select name="
avaliadores_internos_id
[]
" multiple class="
form
-
control
" id="
exampleFormControlSelect2
" style="
height
:
200
px
;
font
-
size
:
15
px
">
<input type="
hidden
" id="
oldAvalInterno
"
value="
{{
old
(
'exampleFormControlSelect2'
)
}}
">
<select name="
avaliadores_internos_id
[]
" multiple
class="
form
-
control
" id="
exampleFormControlSelect2
"
style="
height
:
200
px
;
font
-
size
:
15
px
">
@foreach (
$trabalho->aval
as
$avaliador
)
@if(
$avaliador->tipo
== "
Interno
")
<option value="
{{
$avaliador
->
id
}}
" > {{
$avaliador->user
->name }} > {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}} > {{$avaliador->area->nome ?? 'Indefinida'}} >
{
{$avaliador->user->email}
}
</option>
<option value="
{{
$avaliador
->
id
}}
"> {{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
>
{
{$avaliador->user->email}
}
</option>
@endif
@endforeach
</select>
<small id="
emailHelp
" class="
form
-
text
text
-
muted
">Segure SHIFT do teclado para selecionar mais de um.</small>
<small id="
emailHelp
" class="
form
-
text
text
-
muted
">Segure SHIFT do
teclado para selecionar mais de um.</small>
</div>
<div>
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">Atribuir</button>
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">
Atribuir
</button>
</div>
</form>
...
...
@@ -520,7 +835,8 @@
<hr style="
border
-
top
:
1
px
solid
#1492E6">
<!--
Comissão
Externa
-->
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Externos
</
h6
></
div
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Externos
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
...
...
@@ -531,17 +847,22 @@
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$avaliador
->
user
->
name
}}
</
h5
>
@
if
(
$avaliador
->
tipo
==
'Externo'
||
$avaliador
->
tipo
==
null
)
<
h9
>@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecer', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
h9
>@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecer', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
@
else
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
@
endif
{{
--
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>--
}}
{{
--
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>--
}}
<
br
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
...
...
@@ -553,7 +874,8 @@
<
br
>
<!--
Comissão
Interna
-->
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Internos
</
h6
></
div
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
Internos
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
...
...
@@ -566,11 +888,13 @@
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
br
>
{{
--
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>--
}}
{{
--
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>--
}}
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
</
a
>
...
...
@@ -594,52 +918,63 @@
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Recomendação
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
form
action
=
"{{ route('trabalho.aprovarProposta', ['id' =>
$trabalho->id
]) }}"
method
=
"post"
>
<
form
action
=
"{{ route('trabalho.aprovarProposta', ['id' =>
$trabalho->id
]) }}"
method
=
"post"
>
@
csrf
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
a
class
=
"col-md-12 text-left"
style
=
"padding-left: 0px;color: #234B8B; font-weight: bold;"
>
Comentário
</
a
>
<
textarea
class
=
"col-md-12"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
<
a
class
=
"col-md-12 text-left"
style
=
"padding-left: 0px;color: #234B8B; font-weight: bold;"
>
Comentário
</
a
>
<
textarea
class
=
"col-md-12"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
>@
if
(
$trabalho
->
comentario
!=
null
){{
$trabalho
->
comentario
}}
@
endif
</
textarea
>
</
div
>
<
div
class
=
"col-md-3"
style
=
"margin-top: 15px"
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"aprovado"
name
=
"statusProp"
value
=
"aprovado"
required
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"aprovado"
name
=
"statusProp"
value
=
"aprovado"
required
@
if
(
$trabalho
->
status
==
"aprovado"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendado
</
a
>
<
br
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"parcialAprovado"
name
=
"statusProp"
value
=
"corrigido"
required
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"parcialAprovado"
name
=
"statusProp"
value
=
"corrigido"
required
@
if
(
$trabalho
->
status
==
"corrigido"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Parcialmente
Recomendado
</
a
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Parcialmente
Recomendado
</
a
>
<
br
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"reprovado"
name
=
"statusProp"
value
=
"reprovado"
required
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"reprovado"
name
=
"statusProp"
value
=
"reprovado"
required
@
if
(
$trabalho
->
status
==
"reprovado"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não
Recomendado
</
a
>
</
div
>
</
div
>
<
button
id
=
"enviar"
name
=
"enviar"
type
=
"submit"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;font-size: 18px;"
>
<
button
id
=
"enviar"
name
=
"enviar"
type
=
"submit"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;font-size: 18px;"
>
Salvar
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
<
a
href
=
"{{ route('admin.analisar', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
style
=
"font-size: 16px; float: right; margin-top: 10px;"
>
Voltar
</
a
>
<
a
href
=
"{{ route('admin.analisar', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
style
=
"font-size: 16px; float: right; margin-top: 10px;"
>
Voltar
</
a
>
</
div
>
</
div
>
<!--
Modal
visualizar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalVizuSubstituicao"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuSubstituicao"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color: #234B8B; font-weight: bold"
>
Substituição
de
Discentes
</
h5
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color: #234B8B; font-weight: bold"
>
Substituição
de
Discentes
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
...
...
@@ -665,42 +1000,61 @@
</
ul
>
</
div
>
<
div
id
=
"content"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela1"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela1"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"col-md-12"
id
=
"tela1"
style
=
"padding: 0px"
>
<
div
class
=
"card"
id
=
"tela1"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
id
=
"tela1"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
"card-body"
id
=
"tela1"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
""
id
=
"tela1"
>
<
div
class
=
"justify-content-start"
id
=
"tela1"
style
=
"alignment: center"
>
@
foreach
(
$substituicoesPendentes
as
$subs
)
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Substituição
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Substituição
</
h5
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
onclick
=
"vizuParticipante(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
onclick
=
"vizuParticipante(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
<
div
class
=
"col-md-1 text-left"
style
=
"padding-left: 0px;"
>
<
img
src
=
"
{
{asset('img/seta.png')}
}
"
style
=
"width:40px;margin-left: 5px;margin-right: 10px;"
alt
=
""
>
<
div
class
=
"col-md-1 text-left"
style
=
"padding-left: 0px;"
>
<
img
src
=
"
{
{asset('img/seta.png')}
}
"
style
=
"width:40px;margin-left: 5px;margin-right: 10px;"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
div
class
=
"col-md-12 text-center"
id
=
"tela1"
style
=
"border: solid#1111; padding: 10px; "
>
<
form
>
<
input
type
=
"radio"
id
=
"aceitar"
name
=
"opcao"
value
=
"aceitar"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar"
name
=
"opcao"
value
=
"negar"
>
Negar
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
div
class
=
"col-md-12 text-center"
id
=
"tela1"
style
=
"border: solid#1111; padding: 10px; "
>
<
form
>
<
input
type
=
"radio"
id
=
"aceitar"
name
=
"opcao"
value
=
"aceitar"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar"
name
=
"opcao"
value
=
"negar"
>
Negar
<
br
>
<
button
id
=
"submeter"
name
=
"submeter"
type
=
"button"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;"
value
=
"
{
{$subs->id}
}
"
>
<
button
id
=
"submeter"
name
=
"submeter"
type
=
"button"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;"
value
=
"
{
{$subs->id}
}
"
>
Submeter
</
button
>
</
form
>
...
...
@@ -716,7 +1070,8 @@
</
div
>
</
div
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela2"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela2"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
{{
--<
div
class
=
"col-md-12"
id
=
"tela2"
style
=
"padding: 0px"
>
<
div
class
=
"card"
id
=
"tela2"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
id
=
"tela2"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
...
...
@@ -779,31 +1134,31 @@
<
div
style
=
"margin-top: 5px"
>
<
div
class
=
"card-header"
>
<
div
class
=
"row"
>
<
div
class
=
"col-3"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Participante
Substituído
</
h6
>
</
div
>
<
div
class
=
"col-3"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Participante
Substituto
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Tipo
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Status
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Justificativa
</
h6
>
</
div
>
<
div
class
=
"col-3"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Participante
Substituído
</
h6
>
</
div
>
<
div
class
=
"col-3"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Participante
Substituto
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Tipo
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Status
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
<
h6
class
=
"card-title"
style
=
"color:#234B8B"
>
Justificativa
</
h6
>
</
div
>
</
div
>
</
div
>
...
...
@@ -811,12 +1166,22 @@
@
foreach
(
$substituicoesProjeto
as
$subs
)
<
div
class
=
"row"
style
=
"margin-bottom: 20px;"
>
<
div
class
=
"col-3"
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"fecharModalSubstituido(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
><
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
></
a
>
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"fecharModalSubstituido(
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
)"
>
<
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
>
</
a
>
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
</
div
>
<
div
class
=
"col-3"
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
><
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
></
a
>
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"fecharModalSubstituto(
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
)"
>
<
h6
style
=
"font-size:18px; color: black"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
h6
>
</
a
>
<
h6
style
=
"color:grey; font-size:medium"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_entrada
))}}
-
@
if
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
==
null
)
Atualmente
@
else
{{
date
(
'd-m-Y'
,
strtotime
(
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
data_saida
))}}
@
endif
</
h6
>
</
div
>
<
div
class
=
"col-2"
>
@
if
(
$subs
->
tipo
==
'ManterPlano'
)
...
...
@@ -840,7 +1205,9 @@
@
if
(
$subs
->
status
==
'Em Aguardo'
)
<
h6
>
Pendente
</
h6
>
@
else
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"vizuJustificativa('
{
{$subs->justificativa}
}
')"
><
h5
style
=
"font-size:18px"
>
Visualizar
</
h5
></
a
>
<
a
href
=
""
data
-
toggle
=
"modal"
class
=
"button"
onclick
=
"vizuJustificativa('
{
{$subs->justificativa}
}
')"
><
h5
style
=
"font-size:18px"
>
Visualizar
</
h5
></
a
>
@
endif
</
div
>
</
div
>
...
...
@@ -848,43 +1215,69 @@
</
div
>
</
div
>
</
div
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela3"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela3"
style
=
"margin-top: 0px;border: none;overflow-x: auto;"
>
<
div
class
=
"col-md-12"
style
=
"padding: 0px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
""
>
<
div
class
=
"justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
desligamentos
as
$desligamento
)
<
div
class
=
"row justify-content-between"
>
<
div
class
=
"col-md-9"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Desligamento
</
h5
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Desligamento
</
h5
>
<
div
class
=
"d-flex justify-content-between"
>
<
div
class
=
"col-md-2"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
class
=
"img-flex"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
class
=
"img-flex"
>
</
div
>
<
div
class
=
"col-md-10"
>
<
a
onclick
=
"vizuParticipante(
{
{$desligamento->participante()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$desligamento
->
participante
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
<
br
><
label
for
=
"justificativa"
>
Justificativa
:
</
label
>
<
div
class
=
"col-md-10"
>
<
a
onclick
=
"vizuParticipante(
{
{$desligamento->participante()->withTrashed()->first()->id}
}
)"
class
=
"button"
>
{{
$desligamento
->
participante
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
<
br
><
label
for
=
"justificativa"
>
Justificativa
:
</
label
>
{{
$desligamento
->
justificativa
}}
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
>
@
if
(
$desligamento
->
status
==
\
App\Desligamento
::
STATUS_ENUM
[
'solicitado'
])
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
<
form
id
=
"resposta-desligamento
{
{$desligamento->id}
}
"
method
=
"POST"
action
=
"{{route('coordenador.resposta.desligamento', ['desligamento_id' =>
$desligamento->id
]) }}"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
<
form
id
=
"resposta-desligamento
{
{$desligamento->id}
}
"
method
=
"POST"
action
=
"{{route('coordenador.resposta.desligamento', ['desligamento_id' =>
$desligamento->id
]) }}"
>
@
csrf
<
input
type
=
"hidden"
id
=
"desligamento"
name
=
"desligamento"
value
=
"
{
{$desligamento->id}
}
"
>
<
input
type
=
"radio"
id
=
"aceitar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['aceito']}
}
"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['recusado']}
}
"
>
Negar
<
input
type
=
"hidden"
id
=
"desligamento"
name
=
"desligamento"
value
=
"
{
{$desligamento->id}
}
"
>
<
input
type
=
"radio"
id
=
"aceitar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['aceito']}
}
"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar
{
{$desligamento->id}
}
"
name
=
"opcao"
value
=
"
{
{\App\Desligamento::STATUS_ENUM['recusado']}
}
"
>
Negar
<
br
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
form
=
"resposta-desligamento
{
{$desligamento->id}
}
"
>
Submeter
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
form
=
"resposta-desligamento
{
{$desligamento->id}
}
"
>
Submeter
</
button
>
</
form
>
</
div
>
@
else
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Status
</
h5
>
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Status
</
h5
>
<
div
class
=
"col-md-12 text-center"
style
=
"border: solid#1111; padding: 10px; "
>
{{
$desligamento
->
getStatus
()}}
</
div
>
@
endif
...
...
@@ -912,12 +1305,14 @@
</
div
>
<!--
Modal
vizualizar
justificativa
-->
<
div
class
=
"modal fade"
id
=
"modalVizuJustificativa"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalVizuJustificativa"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Justificativa
</
h5
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"closeJustificativa()"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Justificativa
</
h5
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"closeJustificativa()"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
...
...
@@ -929,108 +1324,174 @@
</
div
>
<!--
Modal
enviar
convite
e
atribuir
-->
<
div
class
=
"modal fade"
id
=
"exampleModalCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"exampleModalCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content modal-submeta"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"exampleModalLongTitle"
style
=
"font-size: 20px;"
>
Enviar
Convite
</
h5
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"fecharModalConvite()"
aria
-
label
=
"Close"
style
=
"color: rgb(182, 182, 182)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
style
=
"margin-left: 20px; margin-right: 20px;"
>
<
form
action
=
"{{ route('admin.convite.atribuicao.projeto') }}"
method
=
"POST"
class
=
"labels-blue"
>
@
csrf
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Email
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
select
class
=
"form-control"
id
=
"grandeAreaConvite"
name
=
"grande_area_id"
onchange
=
"areas()"
required
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
<
option
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
</select>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área') }} <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
areaConvite
" name="
area_id
" required>
<option value="" disabled selected hidden>-- Área --</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Tipo</label>
<select class="
form
-
control
" name="
tipo
" id="
exampleFormControlSelect1
" disabled>
<option value="
avaliador
" >Avaliador</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
" >Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
" >Outra</option>
</select>
</div>
<div class="
form
-
group
" id="
div
-
outra
" style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
<label for="
outra
">{{ __('Digite o nome da instituição') }}<span style="
color
:
red
;
font
-
weight
:
bold
;
"> *</span></label>
<input id="
outra
" class="
form
-
control
@
error
(
'outra'
)
is
-
invalid
@
enderror
" type="
text
" name="
outra
" value="
{{
old
(
'outra'
)}}
" autocomplete="
outra
" placeholder="
Universidade
Federal
...
">
@error('outra')
<div id="
validationServer03Feedback
" class="
invalid
-
feedback
">
{{
$message
}}
</div>
@enderror
<
div
class
=
"modal-content modal-submeta"
>
<
div
class
=
"modal-header modal-header-submeta"
>
<
h5
class
=
"modal-title titulo-table"
id
=
"exampleModalLongTitle"
style
=
"font-size: 20px;"
>
Enviar
Convite
</
h5
>
<
button
type
=
"button"
class
=
"close"
onclick
=
"fecharModalConvite()"
aria
-
label
=
"Close"
style
=
"color: rgb(182, 182, 182)"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<div class="
form
-
group
" style="
margin
-
top
:
40
px
;
margin
-
bottom
:
40
px
;
">
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">Enviar</button>
</div>
<div class="
form
-
group
texto
-
info
">
O convite será enviador por e-mail e o preenchimento dos dados será de inteira responsabilidade do usuário convidado.
<
div
class
=
"modal-body"
style
=
"margin-left: 20px; margin-right: 20px;"
>
<
form
action
=
"{{ route('admin.convite.atribuicao.projeto') }}"
method
=
"POST"
class
=
"labels-blue"
>
@
csrf
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Email
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
select
class
=
"form-control"
id
=
"grandeAreaConvite"
name
=
"grande_area_id"
onchange
=
"areas()"
required
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
<
option
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
</select>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área') }} <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
areaConvite
"
name="
area_id
" required>
<option value="" disabled selected hidden>-- Área --</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Tipo</label>
<select class="
form
-
control
" name="
tipo
" id="
exampleFormControlSelect1
" disabled>
<option value="
avaliador
">Avaliador</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required
onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
">Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
">Outra</option>
</select>
</div>
<div class="
form
-
group
" id="
div
-
outra
"
style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
<label for="
outra
">{{ __('Digite o nome da instituição') }}<span
style="
color
:
red
;
font
-
weight
:
bold
;
"> *</span></label>
<input id="
outra
" class="
form
-
control
@
error
(
'outra'
)
is
-
invalid
@
enderror
" type="
text
"
name="
outra
" value="
{{
old
(
'outra'
)}}
" autocomplete="
outra
"
placeholder="
Universidade
Federal
...
">
@error('outra')
<div id="
validationServer03Feedback
" class="
invalid
-
feedback
">
{{
$message
}}
</div>
@enderror
</div>
<div class="
form
-
group
" style="
margin
-
top
:
40
px
;
margin
-
bottom
:
40
px
;
">
<button type="
submit
" class="
btn
btn
-
info
" style="
width
:
100
%
">Enviar</button>
</div>
<div class="
form
-
group
texto
-
info
">
O convite será enviador por e-mail e o preenchimento dos dados será de inteira
responsabilidade do usuário convidado.
</div>
</form>
</div>
</form>
</div>
</div>
</div>
</div>
<style>
body{font-family:Calibri, Tahoma, Arial}
.TabControl{ width:100%; overflow:hidden; height:400px}
.TabControl #header{ width:100%; overflow:hidden}
.TabControl #content{ width:100%; overflow:hidden; height:100%; }
.TabControl .abas
{
display:inline;
}
.TabControl .abas li
{
float:left
}
.aba{width:100px; height:30px; border-radius:5px 5px 0 0;
text-align:center; padding-top:5px;}
.ativa{width:100px; height:30px; border-radius:5px 5px 0 0;
text-align:center; padding-top:5px; background:#27408B;}
.ativa span, .selected span
{
color:#fff
}
.TabControl .conteudo{width:100%; display:none; height:100%;}
.selected{width:100px; height:30px; border-radius:5px 5px 0 0;
text-align:center; padding-top:5px; background:#27408B}
body {
font-family: Calibri, Tahoma, Arial
}
.TabControl {
width: 100%;
overflow: hidden;
height: 400px
}
.TabControl #header {
width: 100%;
overflow: hidden
}
.TabControl #content {
width: 100%;
overflow: hidden;
height: 100%;
}
.TabControl .abas {
display: inline;
}
.TabControl .abas li {
float: left
}
.aba {
width: 100px;
height: 30px;
border-radius: 5px 5px 0 0;
text-align: center;
padding-top: 5px;
}
.ativa {
width: 100px;
height: 30px;
border-radius: 5px 5px 0 0;
text-align: center;
padding-top: 5px;
background: #27408B;
}
.ativa span, .selected span {
color: #fff
}
.TabControl .conteudo {
width: 100%;
display: none;
height: 100%;
}
.selected {
width: 100px;
height: 30px;
border-radius: 5px 5px 0 0;
text-align: center;
padding-top: 5px;
background: #27408B
}
</style>
@endsection
@section('javascript')
<script type="
text
/
javascript
" src="
http
://
code
.
jquery
.
com
/
jquery
-
1.7.2.
min
.
js
"></script>
<script type="
text
/
javascript
">
$(document).ready(function(){
$(document).ready(function
()
{
$("
#content div:nth-child(1)").show();
$
(
".abas li:first div"
)
.
addClass
(
"selected"
);
$
(
".aba2"
)
.
click
(
function
(){
$
(
".aba2"
)
.
click
(
function
()
{
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
".aba3"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
...
...
@@ -1038,7 +1499,7 @@
$
(
"#tela3"
)
.
hide
();
$
(
"#tela2"
)
.
show
();
});
$
(
".aba1"
)
.
click
(
function
(){
$
(
".aba1"
)
.
click
(
function
()
{
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
".aba3"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
...
...
@@ -1046,7 +1507,7 @@
$
(
"#tela3"
)
.
hide
();
$
(
"#tela1"
)
.
show
();
});
$
(
".aba3"
)
.
click
(
function
(){
$
(
".aba3"
)
.
click
(
function
()
{
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
...
...
@@ -1075,73 +1536,93 @@
</
script
>
<
script
>
function
vizuParticipante
(
id
){
function
vizuParticipante
(
id
)
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipante"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipante"
+
id
)
.
modal
();
},
500
);
}
function
vizuPartici
(
id
){
function
vizuPartici
(
id
)
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
}
function
vizuJustificativa
(
texto
){
function
vizuJustificativa
(
texto
)
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
document
.
getElementById
(
"conteudoJustificativa"
)
.
innerHTML
=
texto
;
setTimeout
(()
=>
{
$
(
"#modalVizuJustificativa"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuJustificativa"
)
.
modal
();
},
500
);
}
function
closeJustificativa
(){
function
closeJustificativa
()
{
$
(
"#modalVizuJustificativa"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
}
</
script
>
<
style
>
h6
,
a
,
b
,
p
,
.
font
-
tam
{
h6
,
a
,
b
,
p
,
.
font
-
tam
{
font
-
size
:
16.4
px
;
}
h5
{
h5
{
font
-
size
:
20
px
;
}
</
style
>
<
script
type
=
"text/javascript"
>
var
e
=
document
.
getElementById
(
"submeter"
);
e
.
onclick
=
function
(){
myFunction
(
e
.
value
)};
document
.
getElementById
(
"closeAcept"
)
.
onclick
=
function
(){
e
.
onclick
=
function
()
{
myFunction
(
e
.
value
)
};
document
.
getElementById
(
"closeAcept"
)
.
onclick
=
function
()
{
$
(
"#modalResultadoSubst"
)
.
modal
(
'hide'
);
};
document
.
getElementById
(
"closeCancel"
)
.
onclick
=
function
(){
document
.
getElementById
(
"closeCancel"
)
.
onclick
=
function
()
{
$
(
"#modalCancelarSubst"
)
.
modal
(
'hide'
);
};
document
.
getElementById
(
"teste"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
document
.
getElementById
(
"teste2"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste2"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
document
.
getElementById
(
"teste3"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste3"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
document
.
getElementById
(
"teste4"
)
.
onclick
=
function
(){
document
.
getElementById
(
"teste4"
)
.
onclick
=
function
()
{
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
function
myFunction
(
id
)
{
if
(
document
.
getElementById
(
"aceitar"
)
.
checked
){
if
(
document
.
getElementById
(
"aceitar"
)
.
checked
)
{
document
.
getElementById
(
"aprovaId"
)
.
value
=
id
;
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalResultadoSubst"
)
.
modal
();
}
else
if
(
document
.
getElementById
(
"negar"
)
.
checked
){
}
else
if
(
document
.
getElementById
(
"negar"
)
.
checked
)
{
document
.
getElementById
(
"negaId"
)
.
value
=
id
;
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalCancelarSubst"
)
.
modal
();
...
...
@@ -1153,7 +1634,7 @@
$
.
ajax
({
type
:
'POST'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
data
:
'id='
+
grandeArea
,
data
:
'id='
+
grandeArea
,
headers
:
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
...
...
@@ -1161,13 +1642,13 @@
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
)
{
var
option
=
'<option selected disabled>-- Área --</option>'
;
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
){
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
)
{
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
})
...
...
@@ -1191,7 +1672,7 @@
$
.
ajax
({
type
:
'POST'
,
url
:
'{{ route('
aval
.
consultaExterno
') }}'
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
headers
:
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
...
...
@@ -1199,12 +1680,12 @@
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
obj
.
instituicao
==
null
){
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
if
(
obj
.
instituicao
==
null
)
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
})
...
...
@@ -1226,7 +1707,7 @@
$
.
ajax
({
type
:
'POST'
,
url
:
'{{ route('
aval
.
consultaInterno
') }}'
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
data
:
'id='
+
area
+
"&trabalho_id="
+
job
,
headers
:
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
...
...
@@ -1234,13 +1715,13 @@
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
obj
.
instituicao
==
null
){
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
if
(
obj
.
instituicao
==
null
)
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
'Instituição indefinida'
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
name
+
' > '
+
obj
.
instituicao
+
' > '
+
obj
.
nome
+
' > '
+
obj
.
email
+
'</option>'
;
}
})
}
else
{
...
...
@@ -1255,48 +1736,58 @@
})
}
</
script
>
<
script
>
if
({
!!
json_encode
(
session
(
'error'
),
JSON_HEX_TAG
)
!!
})
{
$
(
document
)
.
ready
(
function
(){
if
({
!!
json_encode
(
session
(
'error'
),
JSON_HEX_TAG
)
!!
})
{
$
(
document
)
.
ready
(
function
()
{
$
(
'#avaliadorModalCenter'
)
.
modal
(
'show'
);
});
}
</
script
>
<
script
>
function
fecharModalSubstituido
(
id
){
function
fecharModalSubstituido
(
id
)
{
$
(
'#modalVizuSubstituicao'
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituido"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituido"
+
id
)
.
modal
();
},
500
);
}
function
fecharModalSubstituto
(
id
){
function
fecharModalSubstituto
(
id
)
{
$
(
'#modalVizuSubstituicao'
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuParticipanteSubstituto"
+
id
)
.
modal
();
},
500
);
}
function
abrirHistorico
(
id
,
modal
){
if
(
modal
==
1
){
$
(
'#modalVizuParticipanteSubstituido'
+
id
)
.
modal
(
'hide'
);
}
else
if
(
modal
==
2
){
$
(
'#modalVizuParticipanteSubstituto'
+
id
)
.
modal
(
'hide'
);
}
else
if
(
modal
==
0
){
$
(
'#modalVizuParticipante'
+
id
)
.
modal
(
'hide'
);
function
abrirHistorico
(
id
,
modal
)
{
if
(
modal
==
1
)
{
$
(
'#modalVizuParticipanteSubstituido'
+
id
)
.
modal
(
'hide'
);
}
else
if
(
modal
==
2
)
{
$
(
'#modalVizuParticipanteSubstituto'
+
id
)
.
modal
(
'hide'
);
}
else
if
(
modal
==
0
)
{
$
(
'#modalVizuParticipante'
+
id
)
.
modal
(
'hide'
);
}
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#modalVizuSubstituicao"
)
.
modal
();
},
500
);
}
</
script
>
<
script
>
function
abrirModalConvite
(){
function
abrirModalConvite
()
{
$
(
"#avaliadorModalCenter"
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#exampleModalCenter"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#exampleModalCenter"
)
.
modal
();
},
500
);
$
(
'#exampleModalCenter'
)
.
focus
();
}
function
fecharModalConvite
(){
function
fecharModalConvite
()
{
$
(
'#exampleModalCenter'
)
.
modal
(
'toggle'
);
setTimeout
(()
=>
{
$
(
"#avaliadorModalCenter"
)
.
modal
();
},
500
);
setTimeout
(()
=>
{
$
(
"#avaliadorModalCenter"
)
.
modal
();
},
500
);
$
(
'#avaliadorModalCenter'
)
.
focus
();
}
...
...
@@ -1305,42 +1796,43 @@
$
.
ajax
({
type
:
'POST'
,
url
:
'{{ route('
area
.
consulta
') }}'
,
data
:
'id='
+
grandeArea
,
data
:
'id='
+
grandeArea
,
headers
:
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
},
{
'X-CSRF-TOKEN'
:
$
(
'meta[name="csrf-token"]'
)
.
attr
(
'content'
)
},
success
:
(
dados
)
=>
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
var
option
=
'<option selected disabled>-- Área --</option>'
;
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
){
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
)
{
var
option
=
'<option selected disabled>-- Área --</option>'
;
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
)
{
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
})
}
else
{
var
option
=
"<option selected disabled>-- Área --</option>"
;
}
})
}
else
{
var
option
=
"<option selected disabled>-- Área --</option>"
;
}
$
(
'#areaConvite'
)
.
html
(
option
)
.
show
();
},
$
(
'#areaConvite'
)
.
html
(
option
)
.
show
();
},
error
:
(
data
)
=>
{
console
.
log
(
data
);
}
})
}
function
mostrarDiv
(
select
)
{
if
(
select
.
value
==
"outra"
)
{
if
(
select
.
value
==
"outra"
)
{
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"block"
;
$
(
"#outra"
)
.
prop
(
'required'
,
true
);
}
else
if
(
select
.
value
==
"ufape"
){
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"none"
;
$
(
"#outra"
)
.
prop
(
'required'
,
false
);
$
(
"#outra"
)
.
prop
(
'required'
,
true
);
}
else
if
(
select
.
value
==
"ufape"
)
{
document
.
getElementById
(
'div-outra'
)
.
style
.
display
=
"none"
;
$
(
"#outra"
)
.
prop
(
'required'
,
false
);
}
}
</
script
>
...
...
resources/views/avaliacaoRelatorio/avaliacao.blade.php
0 → 100644
View file @
da7eac2e
@
php
$arquivo
=
\
App\Arquivo
::
find
(
$aval
->
arquivo_id
);
@
endphp
<
div
class
=
"container-fluid"
>
<
div
class
=
"row"
>
<
h5
><
b
>
Discente
:</
b
>
{{
\
App\Participante
::
find
(
$arquivo
->
participanteId
)
->
user
->
name
}}
</
h5
>
</
div
>
<
div
class
=
"row"
>
<
h5
><
b
>
Plano
:</
b
>
{{
$arquivo
->
titulo
}}
</
h5
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Nota: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-6 text-center padEsquerda"
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px"
@
if
(
isset
(
$aval
))
value
=
"
{
{$aval->nota}
}
"
@
endif
disabled
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
disabled
>@
if
(
isset
(
$aval
)){{
$aval
->
comentario
}}
</
textarea
>@
else
</
textarea
>@
endif
</
div
>
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
isset
(
$aval
))
@
if
(
$aval
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$aval->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
@
endif
</
div
>
</
div
>
<
style
>
.
padEsquerda
{
padding
-
left
:
0
px
}
</
style
>
\ No newline at end of file
resources/views/avaliacaoRelatorio/index.blade.php
0 → 100644
View file @
da7eac2e
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-bottom: 295px"
>
@
if
(
isset
(
$mensagem
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
$mensagem
}}
</
p
>
</
div
>
</
div
>
@
endif
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 3rem;"
>
<
div
class
=
"col-md-12"
style
=
"margin-bottom: -3rem"
>
<
div
class
=
"card card_conteudo shadow bg-white"
style
=
"border-radius:12px; border-width:0px;"
>
<
div
class
=
"card-header"
style
=
"border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff"
>
<
div
class
=
"d-flex justify-content-between align-items-center"
style
=
"margin-top: 9px; margin-bottom:-1rem"
>
<
div
class
=
"bottomVoltar"
style
=
"margin-top: -20px"
>
<
a
href
=
"javascript:history.back()"
class
=
"btn btn-secondary"
style
=
""
><
img
src
=
"
{
{asset('img/icons/logo_esquerda.png')}
}
"
alt
=
""
width
=
"15px"
></
a
>
</
div
>
<
div
class
=
"form-group"
>
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Avaliações
de
Planos
de
Trabalhos
</
h5
>
</
div
>
<
div
style
=
"margin-top: -2rem"
>
<
div
class
=
"form-group"
>
<
div
style
=
"margin-top:30px;"
>
{{
--
Pesquisar
--
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered table-hover"
style
=
" white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
class
=
"text-center"
>
<
th
scope
=
"col"
>
Nome
do
Evento
</
th
>
<
th
scope
=
"col"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Nome
do
plano
</
th
>
<
th
scope
=
"col"
>
Discente
</
th
>
<
th
scope
=
"col"
>
Avaliar
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$avaliacoes
as
$avaliacao
)
<
tr
class
=
"text-center"
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
evento
->
nome
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
titulo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
titulo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
participante
->
user
->
name
}}
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
<
form
action
=
"
{
{route('planos.avaliacoesUser')}
}
"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$avaliacao->plano
->trabalho->id }}"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"
{
{Auth::user()->id}
}
"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Avaliar
</
button
>
</
form
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/avaliacaoRelatorio/listar.blade.php
0 → 100644
View file @
da7eac2e
@
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'
,
[
'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
--
}}
<
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
>
</
div
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Planos
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
(
s
)
do
Plano
(
s
)
de
Trabalho
--
}}
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
$planoTrabalhoTemp
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
();
$relatorio
=
\
App\AvaliacaoRelatorio
::
where
(
'user_id'
,
auth
()
->
user
()
->
id
)
->
where
(
'arquivo_id'
,
$planoTrabalhoTemp
->
id
)
->
where
(
'tipo'
,
$tipoRelatorio
)
->
first
();
@
endphp
@
if
(
isset
(
$relatorio
))
<
div
class
=
"row"
style
=
"margin-left: 5px"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
title
=
"
{
{$participante->planoTrabalho->titulo}
}
"
>
{{
__
(
'Plano: '
)
}}{{
$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
@
if
(
$tipoRelatorio
==
"Parcial"
)
<
div
style
=
"margin-left: 25px"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Relatório Parcial: '
)
}}
</
label
>
@
if
(
$participante
->
planoTrabalho
->
relatorioParcial
)
<
a
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->planoTrabalho
->relatorioParcial]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
a
><
i
class
=
"fas fa-times-circle fa-2x"
></
i
></
a
>
@
endif
</
div
>
<
div
class
=
"col-sm-12"
>
<
form
id
=
"formRelatFinal"
method
=
"post"
action
=
"
{
{route('planos.avaliacoesUser.criar')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Parcial"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"
{
{$trabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"avaliacao_id"
value
=
"
{
{$relatorio->id}
}
"
>
<
input
type
=
"hidden"
name
=
"plano_id"
value
=
"
{
{$participante->planoTrabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"
{
{Auth::user()->id}
}
"
>
<
div
class
=
"col-12"
style
=
"padding-left: 0px"
>
<
div
class
=
"row"
>
@
php
$relatParcial
=
App\AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
where
(
'tipo'
,
'Parcial'
)
->
where
(
'arquivo_id'
,
$participante
->
planoTrabalho
->
id
)
->
first
();
@
endphp
<
div
class
=
"col-sm-6 row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px;"
@
if
(
isset
(
$relatParcial
))
value
=
"
{
{$relatParcial->nota}
}
"
@
endif
>
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"margin-top: 10px"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
isset
(
$relatParcial
))
@
if
(
$relatParcial
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$relatParcial->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
@
endif
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"arquivo"
accept
=
".pdf"
id
=
"arquivo"
required
/>
@
error
(
'arquivo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
<
div
class
=
"row"
>
<
textarea
class
=
"col-md-11"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
>@
if
(
isset
(
$relatParcial
)){{
$relatParcial
->
comentario
}}
</
textarea
>@
else
</
textarea
>@
endif
<
div
class
=
"col-md-1"
style
=
"flex: 1;align-self: flex-end;"
>
<
button
type
=
"submit"
id
=
"id
{
{$participante->user->id}
}
"
name
=
"id
{
{$participante->user->id}
}
"
class
=
"btn btn-success"
style
=
"height: 40px"
>
Salvar
</
button
>
</
div
>
</
div
>
</
div
>
<
br
>
</
form
>
</
div
>
@
else
<
div
style
=
"margin-left: 25px"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Relatório Final: '
)
}}
</
label
>
@
if
(
$participante
->
planoTrabalho
->
relatorioFinal
)
<
a
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->planoTrabalho
->relatorioFinal]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
a
><
i
class
=
"fas fa-times-circle fa-2x"
></
i
></
a
>
@
endif
</
div
>
<
div
class
=
"col-sm-12"
>
<
form
id
=
"formRelatFinal"
method
=
"post"
action
=
"
{
{route('planos.avaliacoesUser.criar')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Final"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"
{
{$trabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"avaliacao_id"
value
=
"
{
{$relatorio->id}
}
"
>
<
input
type
=
"hidden"
name
=
"plano_id"
value
=
"
{
{$participante->planoTrabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"
{
{Auth::user()->id}
}
"
>
<
div
class
=
"col-12"
style
=
"padding-left: 0px"
>
<
div
class
=
"row"
>
@
php
$relatFinal
=
App\AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
where
(
'tipo'
,
'Final'
)
->
where
(
'arquivo_id'
,
$participante
->
planoTrabalho
->
id
)
->
first
();
@
endphp
<
div
class
=
"col-sm-6 row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px;"
@
if
(
isset
(
$relatFinal
))
value
=
"
{
{$relatFinal->nota}
}
"
@
endif
>
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"margin-top: 10px"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
isset
(
$relatFinal
))
@
if
(
$relatFinal
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$relatFinal->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
@
endif
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"avaliacaoArq"
accept
=
".pdf"
id
=
"avaliacaoArq"
required
/>
@
error
(
'avaliacaoArq'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
<
div
class
=
"row"
>
<
textarea
class
=
"col-md-11"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
>@
if
(
isset
(
$relatFinal
)){{
$relatFinal
->
comentario
}}
</
textarea
>@
else
</
textarea
>@
endif
<
div
class
=
"col-md-1"
style
=
"flex: 1;align-self: flex-end;"
>
<
button
type
=
"submit"
id
=
"id
{
{$participante->user->id}
}
"
name
=
"id
{
{$participante->user->id}
}
"
class
=
"btn btn-success"
style
=
"height: 40px"
>
Salvar
</
button
>
</
div
>
</
div
>
</
div
>
<
br
>
</
form
>
</
div
>
@
endif
</
div
>
@
endif
<
div
class
=
"row"
style
=
"margin-left: 0px"
>
</
div
>
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
<
style
>
label
{
font
-
weight
:
bold
;
}
</
style
>
resources/views/avaliador/index.blade.php
View file @
da7eac2e
...
...
@@ -18,7 +18,17 @@
</
a
>
</
div
>
</
div
>
@
if
(
\
App\AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
get
()
->
count
()
!=
0
)
<
div
class
=
""
style
=
"text-align: center"
>
<
div
class
=
"form-group imagem_shadow"
style
=
"border-radius: 12px; padding:14px; height:200px; width:190px; margin:15px"
>
<
a
href
=
"{{ route('planos.avaliacoes.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
img
src
=
"
{
{asset('img/icons/icon_meus_editais.png')}
}
"
alt
=
""
width
=
"120px"
>
<
h5
style
=
"color: #073763; margin-top:0.5rem; font-size:25px;"
>
Avaliações
de
Relatórios
</
h5
>
</
a
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
{{
--
...
...
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