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
6d5ea49a
Commit
6d5ea49a
authored
Jun 04, 2023
by
unknown
Browse files
Mostrar que o relatorio final foi enviado para editais PIBEX
parent
e5f68efa
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
6d5ea49a
...
...
@@ -109,6 +109,19 @@ class AdministradorController extends Controller
$areas
=
Area
::
whereIn
(
'id'
,
$idArea
)
->
get
();
$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();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
...
...
@@ -120,7 +133,8 @@ class AdministradorController extends Controller
'column'
=>
$request
->
column
,
'grandesAreas'
=>
$grandesAreas
,
'areas'
=>
$areas
,
'contador_trabalhos'
=>
$contador_trabalhos
'contador_trabalhos'
=>
$contador_trabalhos
,
'trabalhosRelatorioFinal'
=>
$trabalhosRelatorioFinal
]);
}
...
...
resources/views/administrador/analisar.blade.php
View file @
6d5ea49a
...
...
@@ -81,7 +81,13 @@
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem; padding-left: 25px;padding-right: 25px;"
>
<
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"
>
@
if
(
$trabalho
->
arquivado
==
true
)
<
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