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
284efa98
Unverified
Commit
284efa98
authored
Apr 25, 2023
by
Yuri Resende
Committed by
GitHub
Apr 25, 2023
Browse files
Merge pull request #764 from JoseDanielF/AvaliarRelatorios
Adicionado botões de avaliar relatório e avaliar apresentação
parents
5666b5f7
929f2398
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliacaoRelatorioController.php
View file @
284efa98
...
@@ -17,7 +17,7 @@ use Auth;
...
@@ -17,7 +17,7 @@ use Auth;
class
AvaliacaoRelatorioController
extends
Controller
class
AvaliacaoRelatorioController
extends
Controller
{
{
public
function
listarUser
(
$id
){
public
function
listarUser
Relatorio
(
$id
){
$avaliacao
=
AvaliacaoRelatorio
::
find
(
$id
);
$avaliacao
=
AvaliacaoRelatorio
::
find
(
$id
);
$trabalho
=
Trabalho
::
find
(
$avaliacao
->
plano
->
trabalhoId
);
$trabalho
=
Trabalho
::
find
(
$avaliacao
->
plano
->
trabalhoId
);
...
@@ -25,7 +25,18 @@ class AvaliacaoRelatorioController extends Controller
...
@@ -25,7 +25,18 @@ class AvaliacaoRelatorioController extends Controller
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
$hoje
=
$hoje
->
toDateString
();
return
view
(
'avaliacaoRelatorio.listar'
,
[
"avaliacao"
=>
$avaliacao
,
"trabalho"
=>
$trabalho
,
"evento"
=>
$evento
]);
return
view
(
'avaliacaoRelatorio.listarRelatorio'
,
[
"avaliacao"
=>
$avaliacao
,
"trabalho"
=>
$trabalho
,
"evento"
=>
$evento
]);
}
public
function
listarUserApresentacao
(
$id
){
$avaliacao
=
AvaliacaoRelatorio
::
find
(
$id
);
$trabalho
=
Trabalho
::
find
(
$avaliacao
->
plano
->
trabalhoId
);
$evento
=
$trabalho
->
evento
;
$hoje
=
\
Carbon\Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'avaliacaoRelatorio.listarApresentacao'
,
[
"avaliacao"
=>
$avaliacao
,
"trabalho"
=>
$trabalho
,
"evento"
=>
$evento
]);
}
}
public
function
index
(
Request
$request
){
public
function
index
(
Request
$request
){
...
@@ -56,10 +67,9 @@ class AvaliacaoRelatorioController extends Controller
...
@@ -56,10 +67,9 @@ class AvaliacaoRelatorioController extends Controller
public
function
criar
(
Request
$request
){
public
function
criar
Relatorio
(
Request
$request
){
$validatedData
=
$request
->
validate
([
$validatedData
=
$request
->
validate
([
'nota'
=>
[
'required'
],
'nota'
=>
[
'required'
],
'nota_apresentacao'
=>
[
'required'
],
'comentario'
=>
[
'required'
],
'comentario'
=>
[
'required'
],
]);
]);
...
@@ -72,6 +82,28 @@ class AvaliacaoRelatorioController extends Controller
...
@@ -72,6 +82,28 @@ class AvaliacaoRelatorioController extends Controller
}
}
$plano
=
Arquivo
::
find
(
$request
->
plano_id
);
$plano
=
Arquivo
::
find
(
$request
->
plano_id
);
$avaliacao
->
nota
=
$request
->
nota
;
$avaliacao
->
nota
=
$request
->
nota
;
// $avaliacao->nota_apresentacao = $request->nota_apresentacao;
$avaliacao
->
comentario
=
$request
->
comentario
;
$avaliacao
->
update
();
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
'Avaliação do relatório '
.
$avaliacao
->
tipo
.
" do plano "
.
$plano
->
titulo
.
' realizada com sucesso.'
]);
}
public
function
criarApresentacao
(
Request
$request
){
$validatedData
=
$request
->
validate
([
'nota_apresentacao'
=>
[
'required'
],
'comentario'
=>
[
'required'
],
]);
$avaliacao
=
AvaliacaoRelatorio
::
find
(
$request
->
avaliacao_id
);
if
(
$request
->
avaliacaoArq
!=
null
){
$pasta
=
'planoTrabalho/'
.
$request
->
plano_id
.
'avaliacao/'
.
$request
->
avaliacao_id
;
$avaliacao
->
arquivoAvaliacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
avaliacaoArq
,
"AvaliacaoRelatorio.pdf"
);
}
$plano
=
Arquivo
::
find
(
$request
->
plano_id
);
// $avaliacao->nota = $request->nota;
$avaliacao
->
nota_apresentacao
=
$request
->
nota_apresentacao
;
$avaliacao
->
nota_apresentacao
=
$request
->
nota_apresentacao
;
$avaliacao
->
comentario
=
$request
->
comentario
;
$avaliacao
->
comentario
=
$request
->
comentario
;
$avaliacao
->
update
();
$avaliacao
->
update
();
...
@@ -79,6 +111,7 @@ class AvaliacaoRelatorioController extends Controller
...
@@ -79,6 +111,7 @@ class AvaliacaoRelatorioController extends Controller
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
'Avaliação do relatório '
.
$avaliacao
->
tipo
.
" do plano "
.
$plano
->
titulo
.
' realizada com sucesso.'
]);
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
'Avaliação do relatório '
.
$avaliacao
->
tipo
.
" do plano "
.
$plano
->
titulo
.
' realizada com sucesso.'
]);
}
}
public
function
atribuicaoAvaliador
(
Request
$request
){
public
function
atribuicaoAvaliador
(
Request
$request
){
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
$trabalho
=
Trabalho
::
find
(
$request
->
trabalho_id
);
...
...
resources/views/avaliacaoRelatorio/index.blade.php
View file @
284efa98
...
@@ -63,17 +63,24 @@
...
@@ -63,17 +63,24 @@
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
evento
->
numParticipantes
==
0
?
$avaliacao
->
plano
->
proponente
->
user
->
name
:
$avaliacao
->
plano
->
participante
->
user
->
name
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
plano
->
trabalho
->
evento
->
numParticipantes
==
0
?
$avaliacao
->
plano
->
proponente
->
user
->
name
:
$avaliacao
->
plano
->
participante
->
user
->
name
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
tipo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
tipo
}}
</
td
>
<
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row
-md-2
justify-content-center"
>
<
a
type
=
"button"
class
=
"btn btn-primary"
href
=
"{{route('planos.avaliacoesUser', ['id'=>
$avaliacao->id
])}}"
>
<
a
type
=
"button"
class
=
"btn
-sm
btn-primary"
href
=
"{{route('planos.avaliacoesUser
Relatorio
', ['id'=>
$avaliacao->id
])}}"
>
@
if
(
$avaliacao
->
nota
==
null
)
@
if
(
$avaliacao
->
nota
==
null
)
Avaliar
Avaliar
Relatório
@
else
@
else
Avaliado
Relatório
Avaliado
@
endif
</
a
>
<
a
type
=
"button"
class
=
"btn-sm btn-primary"
href
=
"{{route('planos.avaliacoesUserApresentacao', ['id'=>
$avaliacao->id
])}}"
>
@
if
(
$avaliacao
->
nota_apresentacao
==
null
)
Avaliar
Apresentação
@
else
Apresentação
Avaliada
@
endif
@
endif
</
a
>
</
a
>
</
div
>
</
div
>
</
td
>
</
td
>
</
tr
>
</
tr
>
@
endforeach
@
endforeach
</
tbody
>
</
tbody
>
...
...
resources/views/avaliacaoRelatorio/listarApresentacao.blade.php
0 → 100644
View file @
284efa98
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"row justify-content-center"
>
<!--
Proponente
Dados
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:4rem;padding: 0px"
>
@
if
(
session
(
'sucesso'
))
<
div
class
=
"alert alert-success"
>
<
strong
>
{{
session
(
'sucesso'
)
}}
</
strong
>
</
div
>
@
endif
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$trabalho
,
'edital'
=>
$trabalho
->
evento
,
'mostrar_val_planilha'
=>
false
])
@
endcomponent
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Anexos
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-left"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
Projeto
:
{{
$trabalho
->
titulo
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
<
br
>
{{
--
Autorização
Especial
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
elseif
(
$trabalho
->
justificativaAutorizacaoEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.justificativa', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
</
div
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Plano
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
(
s
)
do
Plano
(
s
)
de
Trabalho
--
}}
<
div
class
=
"row"
style
=
"margin-left: 5px"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
title
=
"
{
{$avaliacao->plano->titulo}
}
"
>
{{
__
(
'Plano: '
)
}}{{
$avaliacao
->
plano
->
titulo
}}
</
label
>
@
if
(
$avaliacao
->
plano
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$avaliacao->plano
->nome])}}"
><
img
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
endif
@
if
(
$avaliacao
->
tipo
==
"Parcial"
)
<
div
style
=
"margin-left: 120px"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Relatório Parcial: '
)
}}
</
label
>
@
if
(
$avaliacao
->
plano
->
relatorioParcial
)
<
a
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$avaliacao->plano
->relatorioParcial]) }}"
><
img
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
<
a
><
i
class
=
"fas fa-times-circle fa-2x"
></
i
></
a
>
@
endif
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;margin-left: 120px;"
>
{{
__
(
'Formulário de Avaliação: '
)
}}
</
label
>
@
if
(
$evento
->
formAvaliacaoRelatorio
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoRelatorio
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
</
div
>
<
div
class
=
"col-sm-12"
>
<
form
id
=
"formRelatFinal"
method
=
"post"
action
=
"
{
{route('planos.avaliacoesUser.criarApresentacao')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Parcial"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"
{
{$trabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"avaliacao_id"
value
=
"
{
{$avaliacao->id}
}
"
>
<
input
type
=
"hidden"
name
=
"plano_id"
value
=
"
{
{$avaliacao->plano->id}
}
"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"
{
{Auth::user()->id}
}
"
>
<
div
class
=
"col-12"
style
=
"padding-left: 0px; margin-top: 10px "
>
<
div
class
=
"row"
>
{{
--
<
div
class
=
"col-sm-4 row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota do relatório escrito: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
step
=
"0.01"
style
=
"width: 70px;"
required
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
</
div
>
--
}}
<
div
class
=
"col row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota da apresentação: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota_apresentacao"
type
=
"number"
step
=
"0.01"
style
=
"width: 70px;"
required
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota_apresentacao}
}
"
@
endif
>
</
div
>
<
div
class
=
"col-5 row"
style
=
"margin-right: 40px;"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
$avaliacao
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$avaliacao->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
<
input
type
=
"file"
class
=
"input-group-text"
name
=
"avaliacaoArq"
accept
=
".pdf"
id
=
"avaliacaoArq"
/>
@
error
(
'avaliacaoArq'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
<
div
class
=
"row"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 150px;"
required
>@
if
(
$avaliacao
->
comentario
!=
null
){{
$avaliacao
->
comentario
}}
@
endif
</
textarea
>
</
div
>
<
div
class
=
"row justify-content-end"
style
=
"margin-top: 10px"
>
<
div
class
=
"col-1"
>
<
button
type
=
"submit"
class
=
"btn btn-success"
style
=
"height: 40px"
>
Salvar
</
button
>
</
div
>
<
div
>
<
a
href
=
"{{ route('planos.avaliacoes.index') }}"
class
=
"btn btn-secondary"
>
Voltar
</
a
>
</
div
>
</
div
>
</
div
>
<
br
>
</
form
>
</
div
>
{{
--
Relatorio
FInal
--
}}
@
else
<
div
style
=
"margin-left: 120px"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Relatório Final: '
)
}}
</
label
>
@
if
(
$avaliacao
->
plano
->
relatorioFinal
)
<
a
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$avaliacao->plano
->relatorioFinal]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
a
><
i
class
=
"fas fa-times-circle fa-2x"
></
i
></
a
>
@
endif
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px; margin-left: 120px;"
>
{{
__
(
'Formulário de Avaliação: '
)
}}
</
label
>
@
if
(
$evento
->
formAvaliacaoRelatorio
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoRelatorio
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
</
div
>
<
div
class
=
"col-sm-12"
>
<
form
id
=
"formRelatFinal"
method
=
"post"
action
=
"
{
{route('planos.avaliacoesUser.criarApresentacao')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Final"
>
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"
{
{$trabalho->id}
}
"
>
<
input
type
=
"hidden"
name
=
"avaliacao_id"
value
=
"
{
{$avaliacao->id}
}
"
>
<
input
type
=
"hidden"
name
=
"plano_id"
value
=
"
{
{$avaliacao->plano->id}
}
"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"
{
{Auth::user()->id}
}
"
>
<
div
class
=
"col-12"
style
=
"padding-left: 0px; margin-top: 10px "
>
<
div
class
=
"row"
>
{{
--
<
div
class
=
"col-sm-4 row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota do relatório escrito: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
step
=
"0.01"
style
=
"width: 70px;"
required
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
</
div
>
--
}}
<
div
class
=
"col row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota da apresentação: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota_apresentacao"
type
=
"number"
step
=
"0.01"
style
=
"width: 70px;"
required
@
if
(
$avaliacao
->
nota_apresentacao
!=
null
)
value
=
"
{
{$avaliacao->nota_apresentacao}
}
"
@
endif
>
</
div
>
<
div
class
=
"col-5 row"
style
=
"margin-right: 70px;"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
$avaliacao
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$avaliacao->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
<
input
type
=
"file"
class
=
"input-group-text"
name
=
"avaliacaoArq"
accept
=
".pdf"
id
=
"avaliacaoArq"
/>
@
error
(
'avaliacaoArq'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
<
div
class
=
"row"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 150px;"
required
>@
if
(
$avaliacao
->
comentario
){{
$avaliacao
->
comentario
}}
@
endif
</
textarea
>
</
div
>
<
div
class
=
"row justify-content-end"
style
=
"margin-top: 10px"
>
<
div
class
=
"col-1"
>
<
button
type
=
"submit"
class
=
"btn btn-success"
style
=
"height: 40px"
>
Salvar
</
button
>
</
div
>
<
div
>
<
a
href
=
"{{ route('planos.avaliacoes.index') }}"
class
=
"btn btn-secondary"
>
Voltar
</
a
>
</
div
>
</
div
>
</
div
>
<
br
>
</
form
>
</
div
>
@
endif
</
div
>
<
div
class
=
"row"
style
=
"margin-left: 0px"
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
<
style
>
label
{
font
-
weight
:
bold
;
}
</
style
>
resources/views/avaliacaoRelatorio/listar.blade.php
→
resources/views/avaliacaoRelatorio/listar
Relatorio
.blade.php
View file @
284efa98
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
form
id
=
"formRelatFinal"
method
=
"post"
<
form
id
=
"formRelatFinal"
method
=
"post"
action
=
"
{
{route('planos.avaliacoesUser.criar')}
}
"
action
=
"
{
{route('planos.avaliacoesUser.criar
Relatorio
')}
}
"
enctype
=
"multipart/form-data"
>
enctype
=
"multipart/form-data"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Parcial"
>
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Parcial"
>
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
required
required
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
</
div
>
</
div
>
<
div
class
=
"col row"
>
{{
--
<
div
class
=
"col row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota da apresentação: '
)
}}
</
label
>
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota da apresentação: '
)
}}
</
label
>
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
style
=
"width: 70px;"
style
=
"width: 70px;"
required
required
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota_apresentacao}
}
"
@
endif
>
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota_apresentacao}
}
"
@
endif
>
</
div
>
</
div
>
--
}}
<
div
class
=
"col-5 row"
style
=
"margin-right: 40px;"
>
<
div
class
=
"col-5 row"
style
=
"margin-right: 40px;"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
form
id
=
"formRelatFinal"
method
=
"post"
<
form
id
=
"formRelatFinal"
method
=
"post"
action
=
"
{
{route('planos.avaliacoesUser.criar')}
}
"
action
=
"
{
{route('planos.avaliacoesUser.criar
Relatorio
')}
}
"
enctype
=
"multipart/form-data"
>
enctype
=
"multipart/form-data"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Final"
>
<
input
type
=
"hidden"
name
=
"tipo"
value
=
"Final"
>
...
@@ -213,14 +213,14 @@
...
@@ -213,14 +213,14 @@
style
=
"width: 70px;"
required
style
=
"width: 70px;"
required
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
</
div
>
</
div
>
<
div
class
=
"col row"
>
{{
--
<
div
class
=
"col row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota da apresentação: '
)
}}
</
label
>
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota da apresentação: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota_apresentacao"
type
=
"number"
step
=
"0.01"
<
input
class
=
"form-control"
name
=
"nota_apresentacao"
type
=
"number"
step
=
"0.01"
style
=
"width: 70px;"
required
style
=
"width: 70px;"
required
@
if
(
$avaliacao
->
nota_apresentacao
!=
null
)
value
=
"
{
{$avaliacao->nota_apresentacao}
}
"
@
endif
>
@
if
(
$avaliacao
->
nota_apresentacao
!=
null
)
value
=
"
{
{$avaliacao->nota_apresentacao}
}
"
@
endif
>
</
div
>
</
div
>
--
}}
<
div
class
=
"col-5 row"
style
=
"margin-right: 70px;"
>
<
div
class
=
"col-5 row"
style
=
"margin-right: 70px;"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
...
...
routes/web.php
View file @
284efa98
...
@@ -51,9 +51,11 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () {
...
@@ -51,9 +51,11 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () {
Route
::
post
(
'/atribuirAvaliadorPlano'
,
'AvaliacaoRelatorioController@atribuicaoAvaliador'
)
->
name
(
'atribuicao.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
post
(
'/atribuirAvaliadorPlano'
,
'AvaliacaoRelatorioController@atribuicaoAvaliador'
)
->
name
(
'atribuicao.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/removerAvaliadorPlano/{id}'
,
'AvaliacaoRelatorioController@removerAvaliador'
)
->
name
(
'remover.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/removerAvaliadorPlano/{id}'
,
'AvaliacaoRelatorioController@removerAvaliador'
)
->
name
(
'remover.avaliador'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
});
});
Route
::
get
(
'/trabalho/planos/avaliacao/{id}'
,
'AvaliacaoRelatorioController@listarUser'
)
->
name
(
'planos.avaliacoesUser'
);
Route
::
get
(
'/trabalho/planos/avaliacaoRelatorio/{id}'
,
'AvaliacaoRelatorioController@listarUserRelatorio'
)
->
name
(
'planos.avaliacoesUserRelatorio'
);
Route
::
get
(
'/trabalho/planos/avaliacaoApresentacao/{id}'
,
'AvaliacaoRelatorioController@listarUserApresentacao'
)
->
name
(
'planos.avaliacoesUserApresentacao'
);
Route
::
get
(
'/trabalho/planos/avaliacoes/index'
,
'AvaliacaoRelatorioController@index'
)
->
name
(
'planos.avaliacoes.index'
);
Route
::
get
(
'/trabalho/planos/avaliacoes/index'
,
'AvaliacaoRelatorioController@index'
)
->
name
(
'planos.avaliacoes.index'
);
Route
::
post
(
'/trabalho/planos/avaliacoes/criar'
,
'AvaliacaoRelatorioController@criar'
)
->
name
(
'planos.avaliacoesUser.criar'
);
Route
::
post
(
'/trabalho/planos/avaliacoes/criaRelatorio'
,
'AvaliacaoRelatorioController@criarRelatorio'
)
->
name
(
'planos.avaliacoesUser.criarRelatorio'
);
Route
::
post
(
'/trabalho/planos/avaliacoes/criaApresentacao'
,
'AvaliacaoRelatorioController@criarApresentacao'
)
->
name
(
'planos.avaliacoesUser.criarApresentacao'
);
Route
::
prefix
(
'areaTematica'
)
->
name
(
'areaTematica.'
)
->
group
(
function
()
{
Route
::
prefix
(
'areaTematica'
)
->
name
(
'areaTematica.'
)
->
group
(
function
()
{
Route
::
get
(
'/editar/{id}'
,
'AreaTematicaController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'AreaTematicaController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
...
@@ -158,6 +160,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () {
...
@@ -158,6 +160,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () {
Route
::
post
(
'/trabalho/criarRascunho'
,
'TrabalhoController@storeParcial'
)
->
name
(
'trabalho.storeParcial'
);
Route
::
post
(
'/trabalho/criarRascunho'
,
'TrabalhoController@storeParcial'
)
->
name
(
'trabalho.storeParcial'
);
Route
::
get
(
'/edital/{id}/projetos'
,
'TrabalhoController@projetosDoEdital'
)
->
name
(
'projetos.edital'
);
Route
::
get
(
'/edital/{id}/projetos'
,
'TrabalhoController@projetosDoEdital'
)
->
name
(
'projetos.edital'
);
Route
::
get
(
'/projeto/visualizar/{id}'
,
'TrabalhoController@show'
)
->
name
(
'trabalho.show'
);
Route
::
get
(
'/projeto/visualizar/{id}'
,
'TrabalhoController@show'
)
->
name
(
'trabalho.show'
);
Route
::
get
(
'/projeto/solicitarDeclaracao/{id}'
,
'TrabalhoController@solicitarDeclaracao'
)
->
name
(
'trabalho.solicitarDeclaracao'
);
Route
::
get
(
'/projeto/{id}/editar'
,
'TrabalhoController@edit'
)
->
name
(
'trabalho.editar'
);
Route
::
get
(
'/projeto/{id}/editar'
,
'TrabalhoController@edit'
)
->
name
(
'trabalho.editar'
);
Route
::
post
(
'/projeto/buscarUsuario'
,
'TrabalhoController@buscarUsuario'
)
->
name
(
'trabalho.buscarUsuario'
);
Route
::
post
(
'/projeto/buscarUsuario'
,
'TrabalhoController@buscarUsuario'
)
->
name
(
'trabalho.buscarUsuario'
);
...
...
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