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
992ffe2a
"database/vscode:/vscode.git/clone" did not exist on "1fcf44103fecc40c1060b047beaf5845dcb7c21b"
Unverified
Commit
992ffe2a
authored
Jun 09, 2022
by
GuilhermeGz
Committed by
GitHub
Jun 09, 2022
Browse files
Merge pull request #225 from GuilhermeGz/master
Ajustes nos avaliadores
parents
edb8bac8
95b8bea6
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
992ffe2a
...
...
@@ -76,10 +76,14 @@ class AvaliadorController extends Controller
$trabalhosIn
=
[];
$aval
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
();
foreach
(
$aval
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
as
$trab
){
if
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
3
){
if
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
null
&&
$aval
->
tipo
==
"Interno"
)){
array_push
(
$trabalhosIn
,
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
());
}
if
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
3
){
if
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
()
->
pivot
->
acesso
==
null
&&
$aval
->
tipo
==
"Externo"
)){
array_push
(
$trabalhosEx
,
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
());
}
}
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
992ffe2a
...
...
@@ -865,7 +865,7 @@
class="
form
-
control
" id="
exampleFormControlSelect3
"
style="
height
:
200
px
;
font
-
size
:
15
px
">
@foreach (
$trabalho->avaliadors
as
$avaliador
)
@if(
$avaliador->trabalhos
()->where("
trabalho_id
",
$trabalho->id
)->first()->pivot->acesso == 2)
@if(
$avaliador->trabalhos
()->where("
trabalho_id
",
$trabalho->id
)->first()->pivot->acesso == 2
|| (
$avaliador->trabalhos
()->where("
trabalho_id
",
$trabalho->id
)->first()->pivot->acesso == null &&
$avaliador->tipo
== "
Interno
")
)
<option value="
{{
$avaliador
->
id
}}
">{{
$avaliador->user
->name }}
> {{$avaliador->user->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->area->nome ?? 'Indefinida'}}
...
...
@@ -907,7 +907,7 @@
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
$avaliador
->
tipo
==
'Interno'
&&
(
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
))
@
if
(
$avaliador
->
tipo
==
'Interno'
&&
(
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
||
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
))
<
div
class
=
"col-sm-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
...
...
@@ -939,7 +939,7 @@
</
div
>
<
div
class
=
"row justify-content-start"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
if
(
(
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
)
)
@
if
(
(
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
&&
$avaliador
->
tipo
==
"Externo"
)
||
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
)
<
div
class
=
"col-sm-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
...
...
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