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
"vscode:/vscode.git/clone" did not exist on "6d5ea49ab6679bfa33eadd94058f09f89da5467f"
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 @@
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Avaliação
</
th
>
<
th
scope
=
"col"
>
Data
</
th
>
<
th
scope
=
"col"
>
Recomendação
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
...
...
@@ -45,15 +46,15 @@
</
thead
>
<
tbody
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
{{
--
Data
--
}}
@
if
(
$avaliador
->
tipo
!=
null
&&
$avaliador
->
tipo
==
"Interno"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
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
))
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
Interna
</
td
>
<
td
>
@
if
(
$parecerInterno
==
null
)
Indisponível
...
...
@@ -72,17 +73,25 @@
{{
--
Acesso
ao
parecer
interno
--
}}
<
td
>
@
if
(
$parecerInterno
==
null
)
<
a
class
=
"btn btn-danger"
disabled
=
"disabled"
>
<
button
class
=
"btn btn-danger"
disabled
=
"disabled"
>
Indisponível
</
a
>
</
button
>
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
class
=
"btn btn-primary"
>
Visualizar
</
a
>
@
endif
</
td
>
@
else
{{
--
Data
--
}}
</
tr
>
@
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
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
...
...
@@ -97,7 +106,6 @@
@
else
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
recomendacao
}}
@
endif
</
td
>
<
td
>
<
form
action
=
"{{ route('admin.visualizarParecer') }}"
method
=
"post"
>
...
...
@@ -116,8 +124,8 @@
</
form
>
</
td
>
@
endif
</
tr
>
</
tr
>
@
endif
@
endforeach
</
tbody
>
</
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