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
2 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Visualização dos projetos no qual o avaliador foi destinado
parent
7bcfe900
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/AdministradorController.php
+5
-1
app/Http/Controllers/AdministradorController.php
resources/views/administrador/selecionarAvaliadores.blade.php
+37
-0
...urces/views/administrador/selecionarAvaliadores.blade.php
with
42 additions
and
1 deletion
+42
-1
app/Http/Controllers/AdministradorController.php
View file @
e922be82
...
@@ -547,12 +547,16 @@ class AdministradorController extends Controller
...
@@ -547,12 +547,16 @@ class AdministradorController extends Controller
$avalSelecionados
=
$evento
->
avaliadors
;
$avalSelecionados
=
$evento
->
avaliadors
;
$avalNaoSelecionadosId
=
$evento
->
avaliadors
->
pluck
(
'id'
);
$avalNaoSelecionadosId
=
$evento
->
avaliadors
->
pluck
(
'id'
);
$avaliadores
=
Avaliador
::
whereNotIn
(
'id'
,
$avalNaoSelecionadosId
)
->
get
();
$avaliadores
=
Avaliador
::
whereNotIn
(
'id'
,
$avalNaoSelecionadosId
)
->
get
();
$trabalhos
=
$evento
->
trabalhos
->
whereNotIn
(
'status'
,
'rascunho'
);
//dd($avaliadores);
//dd($avaliadores);
return
view
(
'administrador.selecionarAvaliadores'
,
[
return
view
(
'administrador.selecionarAvaliadores'
,
[
'evento'
=>
$evento
,
'evento'
=>
$evento
,
'avaliadores'
=>
$avaliadores
,
'avaliadores'
=>
$avaliadores
,
'avalSelecionados'
=>
$avalSelecionados
,
'avalSelecionados'
=>
$avalSelecionados
,
'grandeAreas'
=>
$grandeAreas
'grandeAreas'
=>
$grandeAreas
,
'trabalhos'
=>
$trabalhos
]);
]);
}
}
public
function
projetos
(
Request
$request
){
public
function
projetos
(
Request
$request
){
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
e922be82
...
@@ -94,6 +94,7 @@
...
@@ -94,6 +94,7 @@
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Projetos
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
...
@@ -112,6 +113,42 @@
...
@@ -112,6 +113,42 @@
@
endif
@
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"
>
<
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"
>
<
form
action
=
"{{ route('admin.remover') }}"
method
=
"POST"
>
@
csrf
@
csrf
...
...
This diff is collapsed.
Click to expand it.
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