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
aa8be814
"app/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "4dad19901050d043997ea92c166b1af5f0325e1b"
Commit
aa8be814
authored
Jun 16, 2021
by
Danillo Bion
Browse files
modificacoes na tela - meus editais - avaliador
parent
6dfb1d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/avaliador/editais.blade.php
View file @
aa8be814
...
...
@@ -2,73 +2,108 @@
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
@
if
(
isset
(
$mensagem
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
$mensagem
}}
</
p
>
</
div
>
</
div
>
@
endif
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 3rem;"
>
<
div
class
=
"col-md-11"
style
=
"margin-bottom: -3rem"
>
<
div
class
=
"card card_conteudo shadow bg-white"
style
=
"border-radius:12px; border-width:0px;"
>
<
div
class
=
"card-header"
style
=
"border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff"
>
<
div
class
=
"d-flex justify-content-between align-items-center"
style
=
"margin-top: 9px; margin-bottom:-1rem"
>
<
div
class
=
"bottomVoltar"
style
=
"margin-top: -20px"
>
<
a
href
=
"{{ route('home') }}"
class
=
"btn btn-secondary"
style
=
""
><
img
src
=
"
{
{asset('img/icons/logo_esquerda.png')}
}
"
alt
=
""
width
=
"15px"
></
a
>
</
div
>
<
div
class
=
"form-group"
>
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Meus
editais
</
h5
>
</
div
>
<
div
style
=
"margin-top: -2rem"
>
<
div
class
=
"form-group"
>
<
div
style
=
"margin-top:30px;"
>
{{
--
Pesquisar
--
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h3
>
Meus
Editais
</
h3
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered table-hover"
style
=
"display: block; overflow-x: auto; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
style
=
"width:100%"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Data
de
Inicio
da
Revisão
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Data
de
Fim
da
Revisão
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
@
if
(
$evento
->
pivot
->
convite
!==
false
)
<
tr
>
<
td
>
{{
$evento
->
nome
}}
</
td
>
<
td
style
=
"text-align:center"
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))
}}
</
td
>
<
td
style
=
"text-align:center"
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))
}}
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
style
=
"width: 100%; text-align:center; float:none"
>
<
a
id
=
"options"
class
=
"dropdown-toggle btn btn-light"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
@
if
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Projetos
para
avaliar
</
a
>
<
a
href
=
"{{ route('avaliador.listarPlanos', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Planos
para
avaliar
</
a
>
@
elseif
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
false
)
<
button
disabled
=
"disabled"
class
=
"dropdown-item"
>
Convite
recusado
</
button
>
@
elseif
(
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
)
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>true]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/confirm.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
Aceitar
Convite
</
a
>
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>false]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/recuse.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
Recusar
Convite
</
a
>
@
endif
</
div
>
</
div
>
</
td
>
</
tr
>
@
endif
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Data
de
Inicio
da
Revisão
</
th
>
<
th
scope
=
"col"
>
Data
de
Fim
da
Revisão
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
@
if
(
$evento
->
pivot
->
convite
!==
false
)
<
tr
>
<
td
>
{{
$evento
->
nome
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))
}}
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
@
if
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Projetos
para
avaliar
</
a
>
<
a
href
=
"{{ route('avaliador.listarPlanos', ['evento_id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Planos
para
avaliar
</
a
>
@
elseif
(
!
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
&&
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
false
)
<
button
disabled
=
"disabled"
class
=
"dropdown-item"
>
Convite
recusado
</
button
>
@
elseif
(
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
)
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>true]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/confirm.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
Aceitar
Convite
</
a
>
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>false]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/recuse.png')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
Recusar
Convite
</
a
>
@
endif
</
div
>
</
div
>
</
td
>
</
tr
>
@
endif
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
...
...
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