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
1b950fab
Commit
1b950fab
authored
Jan 30, 2022
by
Guilherme Silva
Browse files
Adicionada página para adição de bolsas pelo admin
parent
db3a2c99
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/editais.blade.php
View file @
1b950fab
...
...
@@ -20,12 +20,15 @@
</
div
>
<
div
class
=
"col-sm-1"
>
</
div
>
<
div
class
=
"col-sm-
5
"
style
=
"float: center;"
>
<
div
class
=
"col-sm-
4
"
style
=
"float: center;"
>
<
h4
class
=
"titulo-table"
>
Editais
</
h4
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-info"
style
=
"float: right;"
>
Criar
Edital
</
a
>
</
div
>
<
div
class
=
"col-sm-1"
>
<
a
href
=
"
{
{route('bolsas.listar')}
}
"
class
=
"btn btn-info"
style
=
"float: right;"
>
Bolsas
</
a
>
</
div
>
</
div
>
<
hr
>
@
if
(
session
(
'mensagem'
))
...
...
resources/views/administrador/listarBolsas.blade.php
0 → 100644
View file @
1b950fab
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center titulo-menu mb-0"
>
<
h4
>
Dados
Bolsa
</
h4
>
</
div
>
<
div
class
=
"card-body"
style
=
"width: 75% !important;margin: auto;"
>
<
table
class
=
"table table-bordered table-hover"
style
=
"display: block; overflow-x: visible; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
style
=
"width:200px; text-align: center;"
>
Edital
</
th
>
<
th
scope
=
"col"
style
=
"width:200px; text-align: center;"
>
Projeto
</
th
>
<
th
scope
=
"col"
style
=
"width:200px; text-align: center;"
>
Status
Projeto
</
th
>
<
th
scope
=
"col"
style
=
"width:200px; text-align: center;"
>
Discente
</
th
>
<
th
scope
=
"col"
style
=
"width:200px; text-align: center;"
>
Tipo
de
Bolsa
</
th
>
</
tr
>
</
thead
>
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalho
->
participantes
as
$participante
)
<
tbody
>
<
td
style
=
"text-align: center;"
>
{{
$trabalho
->
evento
->
nome
}}
</
td
>
<
td
style
=
"text-align: center;"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align: center;"
>
{{
$trabalho
->
status
}}
</
td
>
<
td
style
=
"text-align: center;"
>
{{
$participante
->
user
->
name
}}
</
td
>
<
td
style
=
"text-align: center;"
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalConfirm
{
{$participante->id}
}
"
>
@
if
(
$participante
->
tipoBolsa
==
null
)
Não
Definida
@
elseif
(
$participante
->
tipoBolsa
==
"Voluntario"
)
Voluntário
@
else
{{
$participante
->
tipoBolsa
}}
@
endif
</
button
>
</
td
>
</
tbody
>
<
div
class
=
"modal fade"
id
=
"modalConfirm
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalConfirmLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h4
class
=
"modal-title"
id
=
"modalConfirmLabel"
align
=
"center"
>
Confirmar
alteração
do
tipo
de
bolsa
?</
h4
>
</
div
>
@
if
(
$participante
->
tipoBolsa
!=
null
)
<
div
class
=
"modal-body"
>
<
h6
class
=
"modal-title"
id
=
"modalConfirmLabel"
align
=
"center"
>
@
if
(
$participante
->
tipoBolsa
==
'Voluntario'
)
O
discente
{{
$participante
->
user
->
name
}}
será
definido
como
bolsista
@
else
O
discente
{{
$participante
->
user
->
name
}}
será
definido
como
voluntário
@
endif
</
h6
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-danger"
data
-
dismiss
=
"modal"
>
Não
</
button
>
<
a
type
=
"button"
href
=
"{{ route('bolsa.alterar',['id'=>
$participante->id
, 'tipo'=>1]) }}"
id
=
"btnSubmit"
class
=
"btn btn-info"
>
Sim
</
a
>
</
div
>
@
else
<
div
class
=
"modal-body"
>
<
div
class
=
"row"
>
<
div
class
=
"col-6"
>
<
a
style
=
"float: right;"
type
=
"button"
href
=
"{{ route('bolsa.alterar',['id'=>
$participante->id
, 'tipo'=>1]) }}"
id
=
"btnSubmit"
class
=
"btn btn-info"
>
Voluntário
</
a
>
</
div
>
<
div
class
=
"col-6"
>
<
a
style
=
"float: left;"
type
=
"button"
href
=
"{{ route('bolsa.alterar',['id'=>
$participante->id
, 'tipo'=>2]) }}"
id
=
"btnSubmit"
class
=
"btn btn-info"
>
Bolsista
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-danger"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
@
endforeach
@
endforeach
</
table
>
</
div
>
</
div
>
@
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