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
7833ce87
Unverified
Commit
7833ce87
authored
Jun 04, 2023
by
Antônio Durval
Committed by
GitHub
Jun 04, 2023
Browse files
Merge pull request #903 from antonioDurval/master
Mostrar que o relatorio final foi enviado para editais PIBEX
parents
e5f68efa
6d5ea49a
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
7833ce87
...
@@ -109,6 +109,19 @@ class AdministradorController extends Controller
...
@@ -109,6 +109,19 @@ class AdministradorController extends Controller
$areas
=
Area
::
whereIn
(
'id'
,
$idArea
)
->
get
();
$areas
=
Area
::
whereIn
(
'id'
,
$idArea
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$trabalhosRelatorioFinal
=
[];
if
(
$evento
->
tipo
==
"PIBEX"
){
foreach
(
$trabalhos
->
get
()
as
$trabalho
)
{
$arquivos_id
=
Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
get
()
->
pluck
(
'id'
);
$avaliacaoRelatorio
=
AvaliacaoRelatorio
::
whereIn
(
"arquivo_id"
,
$arquivos_id
)
->
where
(
"arquivoAvaliacao"
,
"!="
,
null
)
->
first
();
if
(
!
empty
(
$avaliacaoRelatorio
)){
array_push
(
$trabalhosRelatorioFinal
,
$trabalho
->
id
);
}
}
}
// $participantes = Participante::where('trabalho_id', $id)->get();
// $participantes = Participante::where('trabalho_id', $id)->get();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
...
@@ -120,7 +133,8 @@ class AdministradorController extends Controller
...
@@ -120,7 +133,8 @@ class AdministradorController extends Controller
'column'
=>
$request
->
column
,
'column'
=>
$request
->
column
,
'grandesAreas'
=>
$grandesAreas
,
'grandesAreas'
=>
$grandesAreas
,
'areas'
=>
$areas
,
'areas'
=>
$areas
,
'contador_trabalhos'
=>
$contador_trabalhos
'contador_trabalhos'
=>
$contador_trabalhos
,
'trabalhosRelatorioFinal'
=>
$trabalhosRelatorioFinal
]);
]);
}
}
...
...
resources/views/administrador/analisar.blade.php
View file @
7833ce87
...
@@ -81,7 +81,13 @@
...
@@ -81,7 +81,13 @@
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem; padding-left: 25px;padding-right: 25px;"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem; padding-left: 25px;padding-right: 25px;"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-10 tituloProj"
><
h5
style
=
"color: #234B8B; font-weight: bold; margin-top: 15px;"
>
Título
:
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-10 tituloProj"
><
h5
style
=
"color: #234B8B; font-weight: bold; margin-top: 15px;"
>
Título
:
{{
$trabalho
->
titulo
}}
</
h5
>
@
if
(
!
empty
(
$trabalhosRelatorioFinal
)
&&
in_array
(
$trabalho
->
id
,
$trabalhosRelatorioFinal
))
<
span
style
=
"color: green; font-weight: bold"
>
O
relatório
final
foi
enviado
</
span
>
@
endif
</
div
>
<
div
class
=
"col-md-2"
>
<
div
class
=
"col-md-2"
>
@
if
(
$trabalho
->
arquivado
==
true
)
@
if
(
$trabalho
->
arquivado
==
true
)
<
div
title
=
"Proposta Arquivada"
>
<
div
title
=
"Proposta Arquivada"
>
...
...
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