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
71a54781
Unverified
Commit
71a54781
authored
Jun 24, 2022
by
GuilhermeGz
Committed by
GitHub
Jun 24, 2022
Browse files
Merge pull request #420 from GuilhermeGz/master
Ajuste na listagem de pareceres
parents
b8b68612
b860e2d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/projetos.blade.php
View file @
71a54781
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Avaliação
</
th
>
<
th
scope
=
"col"
>
Data
</
th
>
<
th
scope
=
"col"
>
Data
</
th
>
<
th
scope
=
"col"
>
Recomendação
</
th
>
<
th
scope
=
"col"
>
Recomendação
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
...
@@ -45,15 +46,15 @@
...
@@ -45,15 +46,15 @@
</
thead
>
</
thead
>
<
tbody
>
<
tbody
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
<
tr
>
@
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
))
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
@
php
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
@
endphp
{{
--
Data
--
}}
<
tr
>
@
if
(
$avaliador
->
tipo
!=
null
&&
$avaliador
->
tipo
==
"Interno"
)
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
@
php
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
@
endphp
<
td
>
Interna
</
td
>
<
td
>
<
td
>
@
if
(
$parecerInterno
==
null
)
@
if
(
$parecerInterno
==
null
)
Indisponível
Indisponível
...
@@ -72,17 +73,25 @@
...
@@ -72,17 +73,25 @@
{{
--
Acesso
ao
parecer
interno
--
}}
{{
--
Acesso
ao
parecer
interno
--
}}
<
td
>
<
td
>
@
if
(
$parecerInterno
==
null
)
@
if
(
$parecerInterno
==
null
)
<
a
class
=
"btn btn-danger"
disabled
=
"disabled"
>
<
button
class
=
"btn btn-danger"
disabled
=
"disabled"
>
Indisponível
Indisponível
</
a
>
</
button
>
@
else
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
class
=
"btn btn-primary"
>
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
class
=
"btn btn-primary"
>
Visualizar
Visualizar
</
a
>
</
a
>
@
endif
@
endif
</
td
>
</
td
>
@
else
</
tr
>
{{
--
Data
--
}}
@
endif
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
Ad
Hoc
</
td
>
<
td
>
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
Indisponível
...
@@ -97,7 +106,6 @@
...
@@ -97,7 +106,6 @@
@
else
@
else
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
recomendacao
}}
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
recomendacao
}}
@
endif
@
endif
</
td
>
</
td
>
<
td
>
<
td
>
<
form
action
=
"{{ route('admin.visualizarParecer') }}"
method
=
"post"
>
<
form
action
=
"{{ route('admin.visualizarParecer') }}"
method
=
"post"
>
...
@@ -116,8 +124,8 @@
...
@@ -116,8 +124,8 @@
</
form
>
</
form
>
</
td
>
</
td
>
@
endif
</
tr
>
</
tr
>
@
endif
@
endforeach
@
endforeach
</
tbody
>
</
tbody
>
</
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