Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
2 years ago
by
GuilhermeGz
Committed by
GitHub
2 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #420 from GuilhermeGz/master
Ajuste na listagem de pareceres
parents
b8b68612
b860e2d0
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/administrador/projetos.blade.php
+24
-16
resources/views/administrador/projetos.blade.php
with
24 additions
and
16 deletions
+24
-16
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
)
@
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
>
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
{{
--
Data
--
}}
<
td
>
Interna
</
td
>
@
if
(
$avaliador
->
tipo
!=
null
&&
$avaliador
->
tipo
==
"Interno"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
<
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
>
...
...
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
Menu
Projects
Groups
Snippets
Help