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
d8e2596f
Commit
d8e2596f
authored
Aug 24, 2022
by
S-Nathalia
Browse files
adicao de coluna com info de status do avalliador
parent
3bc0d0ca
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
d8e2596f
...
@@ -271,16 +271,12 @@ class AvaliadorController extends Controller
...
@@ -271,16 +271,12 @@ class AvaliadorController extends Controller
}
}
// dd($trabalho);
return
redirect
(
route
(
'avaliador.visualizarTrabalho'
,
[
'evento_id'
=>
$evento
->
id
]));
return
view
(
'avaliador.listarTrabalhos'
,
[
'trabalhosEx'
=>
$trabalhosEx
,
'trabalhosIn'
=>
$trabalhosIn
,
'evento'
=>
$evento
]);
}
}
public
function
conviteResposta
(
Request
$request
){
public
function
conviteResposta
(
Request
$request
){
//dd($request->all());
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$user
->
avaliadors
->
eventos
()
->
updateExistingPivot
(
$evento
->
id
,
[
'convite'
=>
$request
->
resposta
]);
$user
->
avaliadors
->
eventos
()
->
updateExistingPivot
(
$evento
->
id
,
[
'convite'
=>
$request
->
resposta
]);
//dd( $user->avaliadors->eventos->where('id', $evento->id)->first()->pivot);
return
redirect
()
->
back
();
return
redirect
()
->
back
();
}
}
...
...
resources/views/avaliador/listarTrabalhos.blade.php
View file @
d8e2596f
...
@@ -64,9 +64,9 @@
...
@@ -64,9 +64,9 @@
@
if
(
Auth
::
user
()
->
avaliadors
->
tipo
==
'Externo'
||
Auth
::
user
()
->
avaliadors
->
tipo
==
null
)
@
if
(
Auth
::
user
()
->
avaliadors
->
tipo
==
'Externo'
||
Auth
::
user
()
->
avaliadors
->
tipo
==
null
)
<
th
scope
=
"col"
>
Projeto
</
th
>
<
th
scope
=
"col"
>
Projeto
</
th
>
<
th
scope
=
"col"
>
Plano
de
Trabalho
</
th
>
<
th
scope
=
"col"
>
Plano
de
Trabalho
</
th
>
<
th
scope
=
"col"
>
Parecer
Externo
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
@
else
@
else
<
th
scope
=
"col"
>
Status
Parecer
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
<
th
scope
=
"col"
>
Parecer
Interno
</
th
>
<
th
scope
=
"col"
>
Parecer
Interno
</
th
>
@
endif
@
endif
...
@@ -78,13 +78,13 @@
...
@@ -78,13 +78,13 @@
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
$trabalho
->
created_at
->
format
(
'd/m/Y'
)
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
$trabalho
->
created_at
->
format
(
'd/m/Y'
)
}}
</
td
>
@
if
(
Auth
::
user
()
->
avaliadors
->
tipo
==
'Externo'
||
Auth
::
user
()
->
avaliadors
->
tipo
==
null
)
@
if
(
Auth
::
user
()
->
avaliadors
->
tipo
==
'Externo'
||
Auth
::
user
()
->
avaliadors
->
tipo
==
null
)
<
td
style
=
"text-align: center"
>
<
td
>
{{
--
--
}}
{{
--
--
}}
<
a
href
=
"{{route('download', ['file' =>
$trabalho->anexoProjeto
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
a
href
=
"{{route('download', ['file' =>
$trabalho->anexoProjeto
])}}"
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"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
</
a
>
</
td
>
</
td
>
<
td
style
=
"text-align: center"
>
<
td
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
...
@@ -124,8 +124,16 @@
...
@@ -124,8 +124,16 @@
@
php
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
Auth
::
user
()
->
avaliadors
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
Auth
::
user
()
->
avaliadors
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
endphp
<
td
style
=
"text-align: center"
>
<
td
>
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
){{
$parecer
->
statusParecer
}}
@
else
Sem
Parecer
@
endif
@
if
(
$parecer
!=
null
&&
$parecer
->
statusParecer
!=
null
)
@
if
(
$parecer
->
statusParecer
==
'RECOMENDADO'
)
Recomendado
@
else
Não
Recomendado
@
endif
@
else
Pendente
@
endif
</
td
>
</
td
>
<
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
...
@@ -161,12 +169,14 @@
...
@@ -161,12 +169,14 @@
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Projeto
</
th
>
<
th
scope
=
"col"
>
Projeto
</
th
>
<
th
scope
=
"col"
>
Plano
de
Trabalho
</
th
>
<
th
scope
=
"col"
>
Plano
de
Trabalho
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
<
th
scope
=
"col"
>
Parecer
Externo
</
th
>
<
th
scope
=
"col"
>
Parecer
Externo
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
>
<
tbody
>
@
foreach
(
$trabalhosEx
as
$trabalho
)
@
foreach
(
$trabalhosEx
as
$trabalho
)
<
tr
>
<
tr
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
$trabalho
->
created_at
->
format
(
'd/m/Y'
)
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
$trabalho
->
created_at
->
format
(
'd/m/Y'
)
}}
</
td
>
...
@@ -194,6 +204,15 @@
...
@@ -194,6 +204,15 @@
@
endif
@
endif
@
endforeach
@
endforeach
</
td
>
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
Recomendado
@
elseif
(
$trabalho
->
pivot
->
recomendacao
==
null
)
Pendente
@
else
Não
Recomendado
@
endif
</
td
>
<
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
form
action
=
"{{ route('avaliador.parecer', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
<
form
action
=
"{{ route('avaliador.parecer', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
...
...
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