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
e922be82
Commit
e922be82
authored
Jun 29, 2022
by
unknown
Browse files
Visualização dos projetos no qual o avaliador foi destinado
parent
7bcfe900
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
e922be82
...
...
@@ -547,12 +547,16 @@ class AdministradorController extends Controller
$avalSelecionados
=
$evento
->
avaliadors
;
$avalNaoSelecionadosId
=
$evento
->
avaliadors
->
pluck
(
'id'
);
$avaliadores
=
Avaliador
::
whereNotIn
(
'id'
,
$avalNaoSelecionadosId
)
->
get
();
$trabalhos
=
$evento
->
trabalhos
->
whereNotIn
(
'status'
,
'rascunho'
);
//dd($avaliadores);
return
view
(
'administrador.selecionarAvaliadores'
,
[
'evento'
=>
$evento
,
'avaliadores'
=>
$avaliadores
,
'avalSelecionados'
=>
$avalSelecionados
,
'grandeAreas'
=>
$grandeAreas
'grandeAreas'
=>
$grandeAreas
,
'trabalhos'
=>
$trabalhos
]);
}
public
function
projetos
(
Request
$request
){
...
...
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
e922be82
...
...
@@ -94,6 +94,7 @@
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Projetos
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
thead
>
...
...
@@ -112,6 +113,42 @@
@
endif
<
td
><
button
data
-
toggle
=
"modal"
class
=
"btn btn-primary"
style
=
"color:white;
"
data
-
target
=
"#avaliadorModalCenter
{
{$avaliador->id}
}
"
@
if
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
==
0
)
disabled
=
"disabled"
@
endif
>
Visualizar
</
button
></
td
>
<!--
MODAL
Projetos
-->
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter
{
{$avaliador->id}
}
"
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"
>
Projetos
do
Avaliador
</
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"
style
=
"margin-left: 20px; margin-right: 20px;"
>
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador1
)
@
if
(
$avaliador1
->
id
==
$avaliador
->
id
)
{{
--
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
}}
--
}}
<
a
href
=
"
{
{route('admin.analisarProposta',['id'=>$trabalho->id])}
}
"
>
Título
:
{{
$trabalho
->
titulo
}}
</
a
><
br
>
@
endif
@
endforeach
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
<
td
@
if
(
$avaliador
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
!=
null
)
style
=
"text-align:center"
@
endif
style
=
"text-align:center; display:flex; justify-content: space-evenly"
>
<
form
action
=
"{{ route('admin.remover') }}"
method
=
"POST"
>
@
csrf
...
...
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