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
f4ded250
Commit
f4ded250
authored
Nov 25, 2022
by
Lucas Henrique
Browse files
Adicionando Plano de Trabalho em um projeto sem discentes na visão dos avaliadores
parent
d5c7f4f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/avaliador/listarTrabalhos.blade.php
View file @
f4ded250
...
...
@@ -85,22 +85,31 @@
</
a
>
</
td
>
<
td
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalho
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalho
=
null
;
}
$planoTrabalho
=
$trabalho
->
proponente
->
planoTrabalho
@
endphp
@
if
(
$planoTrabalho
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalho
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$planoTrabalho->id
]) }}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalho
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalho
=
null
;
}
@
endphp
@
if
(
$planoTrabalho
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalho
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
@
endif
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
...
...
@@ -186,7 +195,15 @@
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
</
td
>
<
td
style
=
"text-align: center"
>
<
td
style
=
"text-align: center"
>
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
$planoTrabalho
=
$trabalho
->
proponente
->
planoTrabalho
@
endphp
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$planoTrabalho->id
]) }}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
...
...
@@ -203,6 +220,7 @@
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
@
endif
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
...
...
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