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
f898e441
Commit
f898e441
authored
Jan 30, 2022
by
Guilherme Silva
Browse files
Criada nova tela para visualização de proposta
parent
8e59d069
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
f898e441
...
...
@@ -75,6 +75,24 @@ class AdministradorController extends Controller
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
]);
}
public
function
analisarProposta
(
Request
$request
){
$trabalho
=
Trabalho
::
where
(
'id'
,
$request
->
id
)
->
first
();
$evento
=
Evento
::
where
(
'id'
,
$trabalho
->
evento_id
)
->
first
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$substituicoesProjeto
=
Substituicao
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
$substituicoesPendentes
=
Substituicao
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
where
(
'status'
,
'Em Aguardo'
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
return
view
(
'administrador.analisarProposta'
)
->
with
(
[
'trabalho'
=>
$trabalho
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'evento'
=>
$evento
,
'substituicoesPendentes'
=>
$substituicoesPendentes
,
'substituicoesProjeto'
=>
$substituicoesProjeto
,]);
}
public
function
showProjetos
(
Request
$request
){
$projetos
=
Trabalho
::
all
()
->
where
(
'status'
,
'submetido'
);
...
...
resources/views/administrador/analisarProposta.blade.php
0 → 100644
View file @
f898e441
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 100px;"
>
<!--
Titulos
-->
<
div
class
=
"col-md-10"
>
<
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: #1492E6;"
>
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem; font-weight: bold"
>
{{
$evento
->
nome
}}
</
h6
></
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Areas
-->
<
div
class
=
"col-md-10"
>
<
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"
>
Área
de
Ensino
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem"
>
{{
App\GrandeArea
::
where
(
'id'
,
$trabalho
->
grande_area_id
)
->
first
()
->
nome
}}
>
{{
App\Area
::
where
(
'id'
,
$trabalho
->
area_id
)
->
first
()
->
nome
}}
@
if
(
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
!=
null
)
>
{{
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
->
nome
}}
@
endif
</
h6
></
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Informações
Proponente
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
br
>
<
div
class
=
"col-md-10"
>
<
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"
>
Informações
do
Proponente
</
h5
></
div
>
</
div
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Nome
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
</
div
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Lattes
:</
b
>
@
if
(
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
!=
null
)
{{
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
}}
@
endif
</
p
>
</
div
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Grupo
de
Pesquisa
:</
b
>
{{
$trabalho
->
linkGrupoPesquisa
}}
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Discentes
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-10"
>
<
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-sm-9"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Discentes
</
h5
></
div
>
<
div
class
=
"col-sm-3 text-sm-right"
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuSubstituicao"
class
=
"button"
>
Substituições
Pendentes
</
a
>
@
if
(
$substituicoesPendentes
->
count
()
>
0
)
<
img
class
=
""
src
=
"
{
{asset('img/icons/warning.ico')}
}
"
style
=
"width:15px"
alt
=
""
>
@
endif
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"row justify-content-center"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
<
div
class
=
"col-sm-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$participante
->
user
->
name
}}
</
h5
>
<
h9
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
>
Informações
</
a
>
</
h9
>
<
br
>
<
a
href
=
""
>
Remover
</
a
>
</
div
>
<!--
Modal
visualizar
informações
participante
-->
<
div
class
=
"modal fade"
id
=
"modalVizuParticipante
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Informações
Participante
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
@
include
(
'administrador.substituirParticipanteForm'
,
[
'visualizarOnly'
=>
1
])
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
reprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Cancelar
Substituição
</
h5
>
<
button
type
=
"button"
class
=
"close"
id
=
"closeCancel"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"CancelarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"negaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"false"
>
<
div
class
=
"row"
>
<
div
class
=
"col-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
></
textarea
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
</
select
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"col-md-auto"
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Cancelar
Substituição
</
button
></
div
>
</
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
aprovar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalResultadoSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Proceder
Com
Substituição
</
h5
>
<
button
id
=
"closeAcept"
type
=
"button"
class
=
"close"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"aprovaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"true"
>
<
div
class
=
"row"
>
<
div
class
=
"col-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"justificativaTextArea"
>
Justificativa
:</
label
>
<
textarea
class
=
"form-control"
id
=
"justificativaTextArea"
rows
=
"3"
name
=
"textJustificativa"
minlength
=
"20"
required
>
Substituição
cumpre
com
todos
os
requisitos
</
textarea
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
</
select
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-end mt-4"
>
<
div
class
=
"col-md-auto"
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Aprovar
Substituição
</
button
></
div
>
</
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Anexos
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-10"
>
<
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
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-center"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label"
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
>
Arquivo
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:20px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoLatterCoordenador"
class
=
"col-form-label"
style
=
"font-weight: bold"
>
{{
__
(
'Lattes do Coordenador: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:20px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização do Comitê de Ética: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:20px"
alt
=
""
>
@
else
-
@
endif
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label"
style
=
"font-weight: bold"
>
{{
__
(
'Planilha de Pontuação: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/xlsx.ico')}
}
"
style
=
"width:20px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
style
=
"font-weight: bold"
>
{{
__
(
'Justificativa: '
)
}}
</
label
>
@
if
(
$trabalho
->
justificativaAutorizacaoEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.justificativa', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:20px"
alt
=
""
>
@
else
-
@
endif
</
div
>
@
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
)
{{
--
Decisão
do
CONSU
--
}}
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoCONSU"
class
=
"col-form-label"
style
=
"font-weight: bold"
>
{{
__
(
'Decisão do CONSU: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.consu', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
</
a
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:20px"
alt
=
""
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Avaliadores
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-10"
>
<
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-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
</
h5
></
div
>
<
div
class
=
"col-md-1 text-sm-right"
><
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"row justify-content-center"
style
=
"alignment: center"
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
<
div
class
=
"col-sm-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:60px"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-5"
>
<
h5
>
{{
$avaliador
->
user
->
name
}}
</
h5
>
<
h9
>@
if
(
$avaliador
->
pivot
->
parecer
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecer', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>
</
div
>
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Aprovar
ou
Negar
Proposta
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-10"
>
<
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-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Aprovação
</
h5
></
div
>
<
div
class
=
"col-md-1 text-sm-right"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
1
/
3
</
h5
>
</
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
form
action
=
"{{ route('trabalho.aprovarProposta', ['id' =>
$trabalho->id
]) }}"
method
=
"post"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-10"
>
<
a
class
=
"col-md-12 text-left"
style
=
"padding-left: 0px;color: #234B8B; font-weight: bold;"
>
Comentário
</
a
>
<
textarea
class
=
"col-md-12"
id
=
"comentario"
style
=
"border-radius:5px 5px 0 0"
></
textarea
>
</
div
>
<
div
class
=
"col-md-2"
style
=
"margin-top: 15px"
>
<
input
class
=
"col-md-6"
type
=
"radio"
id
=
"aprova"
name
=
"statusProp"
value
=
"aprovado"
required
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 20px;"
>
Aprovar
</
a
>
<
input
class
=
"col-md-6"
type
=
"radio"
id
=
"reprova"
name
=
"statusProp"
value
=
"negado"
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 20px;"
>
Negar
</
a
>
</
div
>
</
div
>
<
button
id
=
"enviar"
name
=
"enviar"
type
=
"submit"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;font-size: 18px;"
>
Enviar
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
visualizar
substituição
-->
<
div
class
=
"modal fade"
id
=
"modalVizuSubstituicao"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color: #234B8B; font-weight: bold"
>
Substituição
de
Discentes
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"TabControl"
>
<
div
id
=
"header"
style
=
"border: none"
>
<
ul
class
=
"abas"
style
=
"list-style-type:none;"
>
<
li
>
<
div
class
=
"aba1 aba"
>
<
span
>
Substituções
</
span
>
</
div
>
</
li
>
<
li
>
<
div
class
=
"aba2 aba"
>
<
span
>
Histórico
</
span
>
</
div
>
</
li
>
</
ul
>
</
div
>
<
div
id
=
"content"
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela1"
style
=
"margin-top: 0px;border: none;"
>
<
div
class
=
"col-md-12"
id
=
"tela1"
style
=
"padding: 0px"
>
<
div
class
=
"card"
id
=
"tela1"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
id
=
"tela1"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
""
id
=
"tela1"
>
<
div
class
=
"justify-content-start"
id
=
"tela1"
style
=
"alignment: center"
>
@
foreach
(
$substituicoesPendentes
as
$subs
)
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Substituição
</
h5
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
id
=
"teste"
name
=
"#modalVizuParticipante
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
"
class
=
"button"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
<
div
class
=
"col-md-1 text-left"
style
=
"padding-left: 0px;"
>
<
img
src
=
"
{
{asset('img/seta.png')}
}
"
style
=
"width:40px;margin-left: 5px;margin-right: 10px;"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
id
=
"teste2"
name
=
"#modalVizuParticipante
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
"
class
=
"button"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12 text-center"
>
Ações
</
h5
>
<
div
class
=
"col-md-12 text-center"
id
=
"tela1"
style
=
"border: solid#1111; padding: 10px; "
>
<
form
>
<
input
type
=
"radio"
id
=
"aceitar"
name
=
"opcao"
value
=
"aceitar"
>
Aprovar
<
input
type
=
"radio"
id
=
"negar"
name
=
"opcao"
value
=
"negar"
>
Negar
<
br
>
<
button
id
=
"submeter"
name
=
"submeter"
type
=
"button"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;"
value
=
"
{
{$subs->id}
}
"
>
Submeter
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"justify-content-center conteudo"
id
=
"tela2"
style
=
"margin-top: 0px;border: none;"
>
<
div
class
=
"col-md-12"
id
=
"tela2"
style
=
"padding: 0px"
>
<
div
class
=
"card"
id
=
"tela2"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
id
=
"tela2"
style
=
"padding-top: 0.2rem;padding-right: 0px;padding-left: 5px;padding-bottom: 5px;"
>
<
div
class
=
""
id
=
"tela2"
>
<
div
class
=
"justify-content-start"
id
=
"tela2"
style
=
"alignment: center"
>
@
foreach
(
$substituicoesPendentes
as
$subs
)
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
h5
style
=
"color: #234B8B; font-weight: bold"
class
=
"col-md-12"
>
Substituição
</
h5
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
id
=
"teste3"
name
=
"#modalVizuParticipante
{
{$subs->participanteSubstituido()->withTrashed()->first()->id}
}
"
class
=
"button"
>
{{
$subs
->
participanteSubstituido
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
<
div
class
=
"col-md-1 text-left"
style
=
"padding-left: 0px;"
>
<
img
src
=
"
{
{asset('img/seta.png')}
}
"
style
=
"width:40px;margin-left: 5px;margin-right: 10px;"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-1"
>
<
img
src
=
"
{
{asset('img/icons/usuario.svg')}
}
"
style
=
"width:50px"
alt
=
""
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"padding-left: 20px;padding-right: 5px;"
>
<
a
id
=
"teste4"
name
=
"#modalVizuParticipante
{
{$subs->participanteSubstituto()->withTrashed()->first()->id}
}
"
class
=
"button"
>
{{
$subs
->
participanteSubstituto
()
->
withTrashed
()
->
first
()
->
user
->
name
}}
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-3"
>
@
if
(
$subs
->
tipo
==
'ManterPlano'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Tipo
:
Manter
Plano
</>
@
elseif
(
$subs
->
tipo
==
'TrocarPlano'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Tipo
:
Alterar
Plano
</
h5
>
@
elseif
(
$subs
->
tipo
==
'Completa'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Tipo
:
Completa
</
h5
>
@
endif
@
if
(
$subs
->
status
==
'Finalizada'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Status
:
Concluída
</
h5
>
@
elseif
(
$subs
->
status
==
'Negada'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Status
:
Negada
</>
@
elseif
(
$subs
->
status
==
'Em Aguardo'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Status
:
Pendente
</
h5
>
@
endif
@
if
(
$subs
->
status
==
'Em Aguardo'
)
<
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Pendente
</
h5
>
@
else
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuJustificativa
{
{$subs->id}
}
"
class
=
"button"
><
h5
style
=
"color: #234B8B; "
class
=
"col-md-12 text-center"
>
Visualizar
</
h5
></
a
>
@
endif
</
div
>
</
div
>
<!--
Modal
vizualizar
justificativa
-->
<
div
class
=
"modal fade"
id
=
"modalVizuJustificativa
{
{$subs->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Justificativa
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
style
=
"padding-top: 8px; color:#1492E6"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
h4
style
=
"font-size:18px"
>
{{
$subs
->
justificativa
}}
</
h4
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
{{
--<
div
class
=
"modal-body"
>
@
include
(
'administrador.substituirParticipanteForm'
,
[
'visualizarOnly'
=>
1
])
</
div
>
--
}}
</
div
>
</
div
>
</
div
>
<
style
>
body
{
font
-
family
:
Calibri
,
Tahoma
,
Arial
}
.
TabControl
{
width
:
100
%
;
overflow
:
hidden
;
height
:
400
px
}
.
TabControl
#header{ width:100%; overflow:hidden}
.
TabControl
#content{ width:100%; overflow:hidden; height:100%; }
.
TabControl
.
abas
{
display
:
inline
;}
.
TabControl
.
abas
li
{
float
:
left
}
.
aba
{
width
:
100
px
;
height
:
30
px
;
border
-
radius
:
5
px
5
px
0
0
;
text
-
align
:
center
;
padding
-
top
:
5
px
;}
.
ativa
{
width
:
100
px
;
height
:
30
px
;
border
-
radius
:
5
px
5
px
0
0
;
text
-
align
:
center
;
padding
-
top
:
5
px
;
background
:
#27408B;}
.
ativa
span
,
.
selected
span
{
color
:
#fff}
.
TabControl
.
conteudo
{
width
:
100
%
;
display
:
none
;
height
:
100
%
;}
.
selected
{
width
:
100
px
;
height
:
30
px
;
border
-
radius
:
5
px
5
px
0
0
;
text
-
align
:
center
;
padding
-
top
:
5
px
;
background
:
#27408B}
</
style
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
src
=
"http://code.jquery.com/jquery-1.7.2.min.js"
></
script
>
<
script
type
=
"text/javascript"
>
$
(
document
)
.
ready
(
function
(){
$
(
"#content div:nth-child(1)"
)
.
show
();
$
(
".abas li:first div"
)
.
addClass
(
"selected"
);
$
(
".aba2"
)
.
click
(
function
(){
$
(
".aba1"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
$
(
"#tela1"
)
.
hide
();
$
(
"#tela2"
)
.
show
();
});
$
(
".aba1"
)
.
click
(
function
(){
$
(
".aba2"
)
.
removeClass
(
"selected"
);
$
(
this
)
.
addClass
(
"selected"
);
$
(
"#tela2"
)
.
hide
();
$
(
"#tela1"
)
.
show
();
});
});
</
script
>
<
script
type
=
"text/javascript"
>
var
e
=
document
.
getElementById
(
"submeter"
);
e
.
onclick
=
function
(){
myFunction
(
e
.
value
)};
document
.
getElementById
(
"closeAcept"
)
.
onclick
=
function
(){
$
(
"#modalResultadoSubst"
)
.
modal
(
'hide'
);
};
document
.
getElementById
(
"closeCancel"
)
.
onclick
=
function
(){
$
(
"#modalCancelarSubst"
)
.
modal
(
'hide'
);
};
document
.
getElementById
(
"teste"
)
.
onclick
=
function
(){
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
document
.
getElementById
(
"teste2"
)
.
onclick
=
function
(){
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
document
.
getElementById
(
"teste3"
)
.
onclick
=
function
(){
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
document
.
getElementById
(
"teste4"
)
.
onclick
=
function
(){
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
setTimeout
(()
=>
{
$
(
document
.
getElementById
(
"teste2"
)
.
getAttribute
(
"name"
))
.
modal
();
},
500
);
};
function
myFunction
(
id
)
{
if
(
document
.
getElementById
(
"aceitar"
)
.
checked
){
document
.
getElementById
(
"aprovaId"
)
.
value
=
id
;
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalResultadoSubst"
)
.
modal
();
}
else
if
(
document
.
getElementById
(
"negar"
)
.
checked
){
document
.
getElementById
(
"negaId"
)
.
value
=
id
;
$
(
"#modalVizuSubstituicao"
)
.
modal
(
'hide'
);
$
(
"#modalCancelarSubst"
)
.
modal
();
}
}
</
script
>
@
endsection
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