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
b71a3178
Unverified
Commit
b71a3178
authored
Jun 07, 2023
by
Antônio Durval
Committed by
GitHub
Jun 07, 2023
Browse files
Merge pull request #908 from antonioDurval/master
Visualizar qnd um relatório final for enviado (PIBEX)
parents
84e19071
2ec1de70
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
b71a3178
...
@@ -112,15 +112,15 @@ class AdministradorController extends Controller
...
@@ -112,15 +112,15 @@ class AdministradorController extends Controller
$trabalhosRelatorioFinal
=
[];
$trabalhosRelatorioFinal
=
[];
if
(
$evento
->
tipo
==
"PIBEX"
)
{
if
(
$evento
->
tipo
==
"PIBEX"
)
{
foreach
(
$trabalhos
->
get
()
as
$trabalho
)
{
foreach
(
$trabalhos
->
get
()
as
$trabalho
)
{
$arquivos_id
=
Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
get
()
->
pluck
(
'id'
);
foreach
(
$trabalho
->
participantes
as
$participante
)
{
$avaliacaoRelatorio
=
AvaliacaoRelatorio
::
whereIn
(
"arquivo_id"
,
$arquivos_id
)
->
where
(
"arquivoAvaliacao"
,
"!="
,
null
)
->
first
();
if
(
isset
(
$participante
->
planoTrabalho
)
&&
$participante
->
planoTrabalho
->
relatorioFinal
!=
null
)
{
if
(
!
empty
(
$avaliacaoRelatorio
)){
array_push
(
$trabalhosRelatorioFinal
,
$trabalho
->
id
);
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();
...
...
resources/views/planosTrabalho/listar.blade.php
View file @
b71a3178
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
</
tr
>
</
tr
>
</
thead
>
</
thead
>
@
foreach
(
$arquivos
as
$arquivo
)
@
foreach
(
$arquivos
as
$arquivo
)
@
if
(
isset
(
$arquivo
))
<
tbody
>
<
tbody
>
<
td
style
=
"text-align: center;"
title
=
"
{
{$arquivo->trabalho->titulo}}">{{$arquivo->trabalho->titulo}
}
</td>
<
td
style
=
"text-align: center;"
title
=
"
{
{$arquivo->trabalho->titulo}}">{{$arquivo->trabalho->titulo}
}
</td>
<td style="
text
-
align
:
center
;
" title="
{{
$arquivo
->
trabalho
->
proponente
->
user
->
name
}}
">
{
{$arquivo->trabalho->proponente->user->name}
}
</td>
<td style="
text
-
align
:
center
;
" title="
{{
$arquivo
->
trabalho
->
proponente
->
user
->
name
}}
">
{
{$arquivo->trabalho->proponente->user->name}
}
</td>
...
@@ -221,6 +222,7 @@
...
@@ -221,6 +222,7 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
tbody
>
</
tbody
>
@
endif
@
endforeach
@
endforeach
</
table
>
</
table
>
...
...
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