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
3391f7ba
Unverified
Commit
3391f7ba
authored
May 27, 2022
by
GuilhermeGz
Committed by
GitHub
May 27, 2022
Browse files
Merge pull request #213 from antonioDurval/master
Atualizações da semana(27/05)
parents
f763a30f
a50ee9e7
Changes
12
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
3391f7ba
...
...
@@ -61,8 +61,9 @@ class AvaliadorController extends Controller
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$eventos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
eventos
;
return
view
(
'avaliador.editais'
,
[
"eventos"
=>
$eventos
]);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'avaliador.editais'
,
[
"eventos"
=>
$eventos
,
"hoje"
=>
$hoje
]);
}
...
...
app/Http/Controllers/EventoController.php
View file @
3391f7ba
...
...
@@ -376,6 +376,8 @@ class EventoController extends Controller
public
function
update
(
Request
$request
,
$id
)
{
//dd($request);
$tipo_usuario
=
Auth
()
->
user
()
->
tipo
;
//dd($tipo_usuario);
$evento
=
Evento
::
find
(
$id
);
$yesterday
=
Carbon
::
yesterday
(
'America/Recife'
);
$yesterday
=
$yesterday
->
toDateString
();
...
...
@@ -491,8 +493,14 @@ class EventoController extends Controller
$evento
->
update
();
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
if
(
$tipo_usuario
==
'coordenador'
){
return
redirect
(
route
(
'coordenador.editais'
)
)
->
with
([
'mensagem'
=>
'Edital salvo com sucesso!'
,
'eventos'
=>
$eventos
]);
}
return
redirect
(
route
(
'admin.editais'
)
)
->
with
([
'mensagem'
=>
'Edital salvo com sucesso!'
,
'eventos'
=>
$eventos
]);
}
/**
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
3391f7ba
...
...
@@ -6,10 +6,10 @@
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
@
endphp
<
div
class
=
"row justify-content-center"
style
=
"margin-top:
100px
;"
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:
4rem
;"
>
<!--
Titulos
-->
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
@
if
(
session
(
'sucesso'
))
<
div
class
=
"alert alert-success"
>
<
strong
>
{{
session
(
'sucesso'
)
}}
</
strong
>
...
...
@@ -35,7 +35,7 @@
</
div
>
</
div
>
<!--
Areas
-->
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -58,7 +58,7 @@
<!--
Informações
Proponente
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
br
>
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -112,7 +112,7 @@
</
div
>
<!--
Discentes
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -340,7 +340,7 @@
<!--
Anexos
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -434,7 +434,7 @@
<!--
Relatórios
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -693,7 +693,7 @@
<!--
Avaliadores
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -780,18 +780,17 @@
</div>
</div>
<div class="
col
-
md
-
6
">
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">
Ex
ternos</label>
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">
In
ternos</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="
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
== "
Ex
terno
")
@if(
$avaliador->tipo
== "
In
terno
")
<option value="
{{
$avaliador
->
id
}}
"> {{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
...
...
@@ -799,16 +798,20 @@
@endif
@endforeach
</select>
<div class="
col
-
md
-
6
">
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">
In
ternos</label>
<label style="
font
-
weight
:
bold
;
font
-
size
:
18
px
">
Ex
ternos</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="
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
">
@foreach (
$trabalho->aval
as
$avaliador
)
@if(
$avaliador->tipo
== "
In
terno
")
@if(
$avaliador->tipo
== "
Ex
terno
")
<option value="
{{
$avaliador
->
id
}}
"> {{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
...
...
@@ -816,6 +819,7 @@
@endif
@endforeach
</select>
<small id="
emailHelp
" class="
form
-
text
text
-
muted
">Segure SHIFT do
teclado para selecionar mais de um.</small>
</div>
...
...
@@ -835,37 +839,30 @@
</div>
<hr style="
border
-
top
:
1
px
solid
#1492E6">
<!--
Comissão
Externa
-->
<!--
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
-
Ex
ternos
</
h6
></
div
>
In
ternos
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
'
Ex
terno'
||
$avaliador
->
tipo
==
null
)
@
if
(
$avaliador
->
tipo
==
'
In
terno'
)
<
div
class
=
"col-sm-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
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
>
@
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
>
@
endif
{{
--
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
@
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
>
<
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
</
a
>
...
...
@@ -874,29 +871,37 @@
@
endforeach
</
div
>
<
br
>
<!--
Comissão
In
terna
-->
<!--
Comissão
Ex
terna
-->
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
<
div
class
=
"col-md-11"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
-
In
ternos
</
h6
></
div
>
Ex
ternos
</
h6
></
div
>
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
'
In
terno'
)
@
if
(
$avaliador
->
tipo
==
'
Ex
terno'
||
$avaliador
->
tipo
==
null
)
<
div
class
=
"col-sm-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$avaliador
->
user
->
name
}}
</
h5
>
@
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
>
<
br
>
{{
--
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
@
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
>
@
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
>
@
endif
{{
--
<
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
</
a
>
...
...
@@ -912,7 +917,7 @@
<!--
Aprovar
ou
Negar
Proposta
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-1
0
"
>
<
div
class
=
"col-md-1
2
"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
...
...
@@ -1418,6 +1423,7 @@
</div>
</div>
</div>
</div>
<style>
body {
...
...
@@ -1571,7 +1577,7 @@
<
style
>
h6
,
a
,
b
,
p
,
.
font
-
tam
{
font
-
size
:
1
6
.4
px
;
font
-
size
:
1
8
.4
px
;
}
h5
{
...
...
resources/views/administrador/resultadosProjetos.blade.php
View file @
3391f7ba
...
...
@@ -39,6 +39,10 @@
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
h4
class
=
"titulo-table"
style
=
"text-align: center"
>
Projetos
Recomendados
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
...
...
@@ -111,6 +115,161 @@
</
table
>
</
div
>
</
div
>
<
br
>
<
div
class
=
"col-sm-12"
>
<
h4
class
=
"titulo-table"
style
=
"text-align: center"
>
Projetos
não
recomendados
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Posição
</
th
>
<
th
scope
=
"col"
>
Pontuação
</
th
>
<
th
scope
=
"col"
style
=
"width: 100%;"
>
Nome
do
projeto
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Bolsas
</
th
>
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'reprovado'
)
<
tr
>
<
td
>
{{
$cont
}}
</
td
>
<
td
>
{{
$trabalho
->
pontuacao
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
$avaliador
->
user
->
name
}}
<
br
>
@
endforeach
@
else
Sem
Atribuição
@
endif
</
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
<
td
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
"Externo"
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Pendente
@
endif
@
endif
@
endforeach
</
td
>
@
else
<
td
>
Pendente
</
td
>
@
endif
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
<!--
TODOS
OS
PROJETOS
SUBMETIDOS
-->
<
br
>
<
div
class
=
"col-sm-12"
>
<
h4
class
=
"titulo-table"
style
=
"text-align: center"
>
Projetos
Submetidos
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Posição
</
th
>
<
th
scope
=
"col"
>
Pontuação
</
th
>
<
th
scope
=
"col"
style
=
"width: 100%;"
>
Nome
do
projeto
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Bolsas
</
th
>
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'submetido'
)
<
tr
>
<
td
>
{{
$cont
}}
</
td
>
<
td
>
{{
$trabalho
->
pontuacao
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
$avaliador
->
user
->
name
}}
<
br
>
@
endforeach
@
else
Sem
Atribuição
@
endif
</
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
<
td
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
"Externo"
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Pendente
@
endif
@
endif
@
endforeach
</
td
>
@
else
<
td
>
Pendente
</
td
>
@
endif
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
{{
--
Janelas
--
}}
@
foreach
(
$trabalhos
as
$trabalho
)
...
...
resources/views/administrador/resultadosProjetosCotas.blade.php
View file @
3391f7ba
...
...
@@ -68,6 +68,7 @@
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhosDoutor
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'aprovado'
)
<
tr
>
...
...
@@ -204,6 +205,275 @@
</
table
>
</
div
>
</
div
>
<!--
AKI
-->
<
br
>
<
div
class
=
"col-sm-12"
>
<
h4
class
=
"titulo-table"
style
=
"text-align: center"
>
Projetos
não
recomendados
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Posição
</
th
>
<
th
scope
=
"col"
>
Pontuação
</
th
>
<
th
scope
=
"col"
style
=
"width: 100%;"
>
Nome
do
projeto
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Bolsas
</
th
>
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhosAmpla
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'reprovado'
)
<
tr
>
<
td
>
{{
$cont
}}
</
td
>
<
td
>
{{
$trabalho
->
pontuacao
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
$avaliador
->
user
->
name
}}
<
br
>
@
endforeach
@
else
Sem
Atribuição
@
endif
</
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
<
td
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
"Externo"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
@
else
Pendente
@
endif
<
br
>
@
else
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Pendente
@
endif
@
endif
@
endforeach
</
td
>
@
else
<
td
>
Pendente
</
td
>
@
endif
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
@
endforeach
@
foreach
(
$trabalhosDoutor
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'reprovado'
)
<
tr
>
<
td
>
{{
$cont
}}
</
td
>
<
td
>
{{
$trabalho
->
pontuacao
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
$avaliador
->
user
->
name
}}
<
br
>
@
endforeach
@
else
Sem
Atribuição
@
endif
</
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
<
td
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
"Externo"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
@
else
Pendente
@
endif
<
br
>
@
else
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Pendente
@
endif
@
endif
@
endforeach
</
td
>
@
else
<
td
>
Pendente
</
td
>
@
endif
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
<
br
>
<
div
class
=
"col-sm-12"
>
<
h4
class
=
"titulo-table"
style
=
"text-align: center"
>
Projetos
Submetidos
</
h4
>
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Posição
</
th
>
<
th
scope
=
"col"
>
Pontuação
</
th
>
<
th
scope
=
"col"
style
=
"width: 100%;"
>
Nome
do
projeto
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
N
.
Planos
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Bolsas
</
th
>
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhosAmpla
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'submetido'
)
<
tr
>
<
td
>
{{
$cont
}}
</
td
>
<
td
>
{{
$trabalho
->
pontuacao
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
$avaliador
->
user
->
name
}}
<
br
>
@
endforeach
@
else
Sem
Atribuição
@
endif
</
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
<
td
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
"Externo"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
@
else
Pendente
@
endif
<
br
>
@
else
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Pendente
@
endif
@
endif
@
endforeach
</
td
>
@
else
<
td
>
Pendente
</
td
>
@
endif
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
@
endforeach
@
foreach
(
$trabalhosDoutor
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'submetido'
)
<
tr
>
<
td
>
{{
$cont
}}
</
td
>
<
td
>
{{
$trabalho
->
pontuacao
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
participantes
->
count
()}}
</
td
>
<
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
$avaliador
->
user
->
name
}}
<
br
>
@
endforeach
@
else
Sem
Atribuição
@
endif
</
td
>
@
if
(
$trabalho
->
avaliadors
->
count
()
>
0
)
<
td
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
"Externo"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
@
else
Pendente
@
endif
<
br
>
@
else
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Pendente
@
endif
@
endif
@
endforeach
</
td
>
@
else
<
td
>
Pendente
</
td
>
@
endif
<
td
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirmTrab
{
{$trabalho->id}
}
"
>
Definir
</
button
>
</
td
>
</
tr
>
@
php
$cont
+=
1
;
@
endphp
@
endif
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
{{
--
Janelas
Cotas
--
}}
@
foreach
(
$trabalhosDoutor
as
$trabalho
)
...
...
resources/views/avaliador/editais.blade.php
View file @
3391f7ba
...
...
@@ -67,10 +67,17 @@
</
a
>
<
div
class
=
"dropdown-menu"
>
@
if
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Avaliar
Propostas
</
a
>
@
if
(
$hoje
>=
$evento
->
inicioRevisao
&&
$hoje
<=
$evento
->
fimRevisao
)
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Avaliar
Propostas
</
a
>
@
else
<
button
disabled
=
"disabled"
class
=
"dropdown-item"
>
Hoje
({{
date
(
'd/m/Y'
,
strtotime
(
$hoje
))
}})
não
faz
parte
do
período
de
revisão
(
avaliação
)
</
button
>
@
endif
@
elseif
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
false
)
<
button
disabled
=
"disabled"
class
=
"dropdown-item"
>
Convite
recusado
...
...
resources/views/coordenador/home.blade.php
View file @
3391f7ba
...
...
@@ -14,6 +14,7 @@
<
option
value
=
"todos"
selected
>
Todos
</
option
>
<
option
value
=
"aberto"
>
Aberto
(
s
)
</
option
>
<
option
value
=
"encerrado"
>
Encerrado
(
s
)
</
option
>
<
option
value
=
"abrira"
>
Abrirão
</
option
>
</
select
>
</
div
>
<
div
class
=
"col-sm"
style
=
"margin-bottom: 10px"
>
...
...
@@ -43,25 +44,26 @@
<
hr
>
</
div
>
</
div
>
@
php
$hoje
=
now
();
@
endphp
<
div
class
=
"row justify-content-center"
>
@
if
(
count
(
$eventos
)
>
0
)
@
foreach
(
$eventos
as
$evento
)
@
if
(
Auth
::
check
())
@
if
(
$evento
->
fimSubmissao
>=
$hoje
)
@
if
(
$evento
->
fimSubmissao
>=
$hoje
&&
$hoje
>=
$evento
->
inicioSubmissao
)
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"aberto"
>
@
else
@
else
if
(
$hoje
>
$evento
->
fimSubmissao
)
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"encerrado"
>
@
else
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"vaiAbrir"
>
@
endif
@
else
@
if
(
$evento
->
fimSubmissao
>=
$hoje
)
@
if
(
$evento
->
fimSubmissao
>=
$hoje
&&
$hoje
>=
$evento
->
inicioSubmissao
)
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"aberto"
>
@
else
@
else
if
(
$hoje
>
$evento
->
fimSubmissao
)
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"encerrado"
>
@
else
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"vaiAbrir"
>
@
endif
@
endif
<
div
class
=
"card"
style
=
"width: 18rem; border-radius:12px; border-width:0px; margin:10px"
>
...
...
@@ -202,7 +204,9 @@
function
exibirEditais
(
select
)
{
let
abertos
=
document
.
getElementsByClassName
(
"aberto"
);
let
encerrados
=
document
.
getElementsByClassName
(
"encerrado"
);
let
vaiAbrir
=
document
.
getElementsByClassName
(
"vaiAbrir"
);
if
(
select
.
value
==
"todos"
){
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
""
;
...
...
@@ -211,6 +215,10 @@
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
""
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
""
;
}
}
else
if
(
select
.
value
==
"aberto"
)
{
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
""
;
...
...
@@ -219,11 +227,31 @@
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
"none"
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
"none"
;
}
}
else
if
(
select
.
value
==
"abrira"
){
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
"none"
;
}
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
"none"
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
""
;
}
}
else
{
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
"none"
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
"none"
;
}
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
""
;
}
...
...
resources/views/coordenadorComissao/editais.blade.php
View file @
3391f7ba
...
...
@@ -12,6 +12,15 @@
</
div
>
</
div
>
<
hr
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
style
=
"margin-top: 30px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
</
div
>
@
endif
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
...
...
@@ -35,6 +44,9 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('evento.editar', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item text-center"
>
Editar
Edital
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Visualizar
Projetos
...
...
resources/views/evento/formulario/anexos.blade.php
View file @
3391f7ba
...
...
@@ -4,7 +4,7 @@
<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
class=
"col-md-12"
><h5
style=
"color: #234B8B; font-weight: bold"
>
Anexos
do Projeto
</h5></div>
</div>
<hr
style=
"border-top: 1px solid#1492E6; margin-bottom: 10px"
>
...
...
resources/views/evento/formulario/finalizar.blade.php
View file @
3391f7ba
...
...
@@ -12,7 +12,13 @@
<button
id=
"submeterFormProposta"
type=
"submit"
style=
"display: none;"
></button>
<button
type=
"submit"
class=
"btn btn-primary "
id=
"idButtonSubmitRascunho"
>
{{ __('Salvar como rascunho') }}
</button>
<button
type=
"submit"
class=
"btn btn-success"
id=
"idButtonSubmitProjeto"
>
{{ __('Submeter projeto') }}
</button>
</div>
@if($errors->any())
<div
class=
"alert alert-danger"
>
Verifique se todos os campos obrigatórios/Dados do discente foram preenchidos!
</div>
@endif
</div>
</div>
</div>
...
...
resources/views/evento/formulario/participantes.blade.php
View file @
3391f7ba
...
...
@@ -4,7 +4,7 @@
<div
class=
"card-body"
style=
"padding-top: 0.2rem;"
>
<div
class=
"container"
>
<div
class=
"form-row mt-3"
>
<div
class=
"col-md-11"
><h5
style=
"color: #234B8B; font-weight: bold"
>
Participantes
</h5></div>
<div
class=
"col-md-11"
><h5
style=
"color: #234B8B; font-weight: bold"
>
Dados do(s) Discente(s)
</h5></div>
<div
class=
"col-md-1 text-sm-right"
>
<a
type=
"button"
value=
"{{ $edital->id }}"
id=
"atribuir1"
data-toggle=
"modal"
data-target=
"#exampleModal0"
>
<img
class=
""
src=
"{{asset('img/icons/add.ico')}}"
style=
"width:30px"
alt=
""
>
...
...
@@ -25,7 +25,7 @@
</div>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center;"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
id=
"nomePart{{$i+1}}"
>
Participa
nte {{$i+1}}
Disce
nte {{$i+1}}
</a>
</div>
</div>
...
...
@@ -34,7 +34,7 @@
<div
class=
"modal-dialog modal-dialog-centered modal-xl"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"exampleModalLabel"
>
Dados do
Participa
nte {{$i+1}}
</h5>
<h5
class=
"modal-title"
id=
"exampleModalLabel"
>
Dados do
Disce
nte {{$i+1}}
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
3391f7ba
...
...
@@ -17,12 +17,12 @@
@
include
(
'evento.formulario.proponente'
)
@
include
(
'evento.formulario.anexos'
)
@
include
(
'evento.formulario.participantes'
)
@
include
(
'evento.formulario.anexos'
)
@
include
(
'evento.formulario.finalizar'
)
...
...
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