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
b6402927
Commit
b6402927
authored
Feb 16, 2023
by
Lucas Henrique
Browse files
Atualizando exibição dos resultados para editais com avaliação pro Barema
parent
a586e34d
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/resultadosProjetos.blade.php
View file @
b6402927
...
...
@@ -62,7 +62,7 @@
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'aprovado'
)
<
tr
>
...
...
@@ -94,19 +94,34 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
</
td
>
...
...
@@ -184,19 +199,34 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
</
td
>
...
...
@@ -275,19 +305,34 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
</
td
>
...
...
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