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
407861f5
Commit
407861f5
authored
May 27, 2020
by
Gabriel-31415
Browse files
add relacao avaliador e trabalho
parent
46255a60
Changes
33
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/editais.blade.php
0 → 100644
View file @
407861f5
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
10
/
05
/
2020
</
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"
>
<
a
href
=
"{{ route('coord.detalhesEvento', ['eventoId' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"
{
{route('evento.editar',$evento->id)}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/administrador/index.blade.php
View file @
407861f5
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('
evento.listar
')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('
admin.editais
')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
resources/views/administradorResponsavel/editais.blade.php
0 → 100644
View file @
407861f5
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
10
/
05
/
2020
</
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"
>
<
a
href
=
"{{ route('coord.detalhesEvento', ['eventoId' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"
{
{route('evento.editar',$evento->id)}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/administradorResponsavel/index.blade.php
View file @
407861f5
...
...
@@ -5,7 +5,28 @@
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
</
h2
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('adminResp.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('adminResp.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Usuários
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
resources/views/administradorResponsavel/listarUsuarios.blade.php
0 → 100644
View file @
407861f5
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Usuarios
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$usuarios
as
$usuario
)
<
tr
>
<
td
>
{{
$usuario
->
user
->
name
}}
</
td
>
<
td
>
{{
$usuario
->
user
->
email
}}
</
td
>
<
td
>
3
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/administradorResponsavel/usuarios.blade.php
0 → 100644
View file @
407861f5
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
Auth
()
->
user
()
->
name
}}
</
h2
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.coord') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Coordenador
de
Comitê
de
Avaliação
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.avaliador') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Avaliador
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.proponente') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Proponente
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('coordenador.participante') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem; height: 12rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Participante
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
resources/views/coordenador/home.blade.php
View file @
407861f5
...
...
@@ -32,8 +32,8 @@
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
{{
$evento
->
nome
}}
@
if
(
Auth
::
user
()
->
tipo
==
"administrador"
)
{{
--
@
can
(
'isCoordenador'
,
$evento
)
--
}}
{{
--
@
if
(
Auth
::
user
()
->
tipo
==
"administrador"
||
Auth
::
user
()
->
tipo
==
"administradorResponsavel"
)
--
}}
@
can
(
'isCoordenador'
,
$evento
)
<
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"
>
--
}}
...
...
@@ -58,8 +58,8 @@
</
form
>
</
div
>
</
div
>
{{
--
@
endcan
--
}}
@
endif
@
endcan
{{
--
@
endif
--
}}
</
div
>
</
div
>
...
...
resources/views/coordenadorComissao/listarUsuarios.blade.php
View file @
407861f5
...
...
@@ -16,7 +16,7 @@
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
...
...
@@ -25,17 +25,112 @@
<
tr
>
<
td
>
{{
$usuario
->
user
->
name
}}
</
td
>
<
td
>
{{
$usuario
->
user
->
email
}}
</
td
>
<
td
>
3
</
td
>
<
td
>
<
form
id
=
"form{{
$usuario->user
->id }}"
>
@
csrf
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
id
=
"button{{
$usuario->user
->id }}"
onclick
=
"permissao({{
$usuario->user
->id }});"
data
-
target
=
"#exampleModal{{
$usuario->user
->id }}"
>
Atribuir
Permissões
</
button
>
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"exampleModal{{
$usuario->user
->id }}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Mudar
Permissão
{{
$usuario
->
user
->
id
}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"custom-control custom-switch"
>
<
input
type
=
"checkbox"
name
=
"avaliador"
value
=
"{{
$usuario->user
->id }}"
checked
=
""
onclick
=
"myFunction({{
$usuario->user
->id }})"
class
=
"custom-control-input switch"
id
=
"{{
$usuario->user
->id }}"
>
<
input
type
=
"hidden"
name
=
"user_id"
value
=
"{{
$usuario->user
->id }}"
id
=
"usuario{{
$usuario->user
->id }}"
>
<
label
class
=
"custom-control-label"
for
=
"{{
$usuario->user
->id }}"
>
Avaliador
</
label
>
</
div
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Close
</
button
>
<
button
type
=
"submit"
id
=
"atribuir_id"
data
-
dismiss
=
"modal"
class
=
"btn btn-primary"
>
Save
changes
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
form
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
function
myFunction
(
id
)
{
var
checkBox
=
document
.
getElementById
(
id
);
let
dados
=
$
(
'#form'
+
id
)
.
serialize
()
// let dados = document.getElementById("usuario"+id).value;
console
.
log
(
dados
)
//ajax
$
.
ajax
({
type
:
'post'
,
url
:
'http://submeta.test/adminResp/atribuir'
,
data
:
dados
,
//x-www-form-urlencoded
dataType
:
'json'
,
success
:
dados
=>
{
console
.
log
(
dados
)
},
error
:
erro
=>
{
console
.
log
(
erro
)
}
})
}
function
permissao
(
id
)
{
var
checkBox
=
document
.
getElementById
(
id
);
// console.log('#atribuir_id'+id);
// console.log($('#'+id).attr('checked'))
let
dados
=
$
(
'#form'
+
id
)
.
serialize
()
//let dados = $('form').serialize()
$
.
ajax
({
type
:
'post'
,
url
:
'http://submeta.test/adminResp/verPermissao'
,
data
:
dados
,
//x-www-form-urlencoded
dataType
:
'json'
,
success
:
dados
=>
{
checkBox
.
checked
=
dados
[
0
];
console
.
log
(
checkBox
.
checked
)
},
error
:
erro
=>
{
console
.
log
(
erro
)
}
})
}
$
(
document
)
.
ready
(()
=>
{
})
</
script
>
@
endsection
resources/views/evento/criarEvento.blade.php
View file @
407861f5
...
...
@@ -62,7 +62,7 @@
<
select
class
=
"form-control @error('funcaoParticipante') is-invalid @enderror"
id
=
"coordenador_id"
name
=
"coordenador_id"
>
<
option
value
=
""
disabled
selected
hidden
>--
Coordenador
da
Comissão
Avaliadora
--</
option
>
@
foreach
(
$coordenadors
as
$coordenador
)
<
option
value
=
"
{
{$coordenador->
user->
id}}">{{$coordenador->user->name}
}
</option>
<
option
value
=
"
{
{$coordenador->id}}">{{$coordenador->user->name}
}
</option>
@endforeach
</select>
</div>
...
...
resources/views/evento/listarEvento.blade.php
View file @
407861f5
...
...
@@ -9,9 +9,6 @@
<
div
class
=
"col-sm-10"
>
<
h3
>
Editais
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
<
hr
>
...
...
resources/views/layouts/app.blade.php
View file @
407861f5
...
...
@@ -58,12 +58,19 @@
@else
<!-- Se o usuário for um aluno -->
@if(Auth::user()->tipo == 'administrador')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ route('admin.naturezas') }}"
>
Naturezas
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('
evento.listar
')}}"
>
Editais
</a>
<a
class=
"nav-link"
href=
"{{route('
admin.editais
')}}"
>
Editais
</a>
</li>
<li
class=
"nav-item"
>
...
...
@@ -105,7 +112,11 @@
{{-- Pro-reitor --}}
@if(Auth::user()->tipo == 'administradorResponsavel')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('evento.listar')}}"
>
Editais
</a>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('adminResp.editais')}}"
>
Editais
</a>
</li>
<li
class=
"nav-item"
>
...
...
@@ -142,6 +153,10 @@
@endif
@if(Auth::user()->tipo == 'coordenador')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('coordenador.editais')}}"
>
Meus Editais
</a>
...
...
@@ -181,19 +196,43 @@
@if(Auth::user()->tipo == 'proponente')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ route('logout') }}"
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('user.meusTrabalhos')}}"
>
Meus Trabalhos
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdown"
>
<a
class=
"dropdown-item"
href=
"{{ route('admin.index') }}"
>
<img
src=
"{{asset('img/icons/perfil.svg')}}"
alt=
""
>
{{ __('Minha Conta') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('user.meusTrabalhos') }}"
>
<img
src=
"{{asset('img/icons/file-alt-regular-black.svg')}}"
alt=
""
>
{{ __('Participante') }}
</a>
<a
class=
"dropdown-item"
href=
"{{ route('logout') }}"
onclick=
"event.preventDefault();
document.getElementById('logout-form').submit();"
>
Sair
<img
src=
"{{asset('img/icons/sign-out-alt-solid.svg')}}"
alt=
""
>
{{ __('Sair') }}
</a>
<form
id=
"logout-form"
action=
"{{ route('logout') }}"
method=
"POST"
style=
"display: none;"
>
@csrf
</form>
</div>
</li>
@endif
@if(Auth::user()->tipo == 'participante')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{route('visualizarEvento')}}"
>
Home
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
id=
"navbarDropdown"
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
...
...
resources/views/user/meusTrabalhos.blade.php
View file @
407861f5
...
...
@@ -54,16 +54,14 @@
<
div
class
=
"col-sm-10"
>
<
h1
>
Meus
Trabalhos
</
h1
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('home')}
}
"
class
=
"btn btn-primary"
>
Eventos
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Como
Autor
</
h4
>
<
h4
>
Como
Proponente
</
h4
>
</
div
>
</
div
>
...
...
@@ -82,7 +80,7 @@
</
tr
>
</
thead
>
<
tbody
>
{{
--
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align:center"
>
...
...
@@ -104,7 +102,7 @@
</
a
>
</
td
>
</
tr
>
@
endforeach
--
}}
@
endforeach
</
tbody
>
</
table
>
</
div
>
...
...
routes/web.php
View file @
407861f5
...
...
@@ -11,7 +11,7 @@
|
*/
use
App\Evento
;
use
Illuminate\Support\Facades\Log
;
// Route::get('/', function () {
// if(Auth::check()){
...
...
@@ -21,10 +21,9 @@ use Illuminate\Support\Facades\Log;
// $eventos = Evento::all();
// return view('index',['eventos'=>$eventos]);
// });
Log
::
debug
(
'routes'
);
Route
::
get
(
'/'
,
'UserController@index'
)
->
name
(
'home-user'
);
//Route::get('/visualizarEvento', 'UserController@index')->name('visualizarEvento');
Log
::
debug
(
'depois de login'
);
// Route::get('/#', function () {
// if(Auth::check()){
// return redirect()->route('home');
...
...
@@ -44,6 +43,15 @@ Route::post('/perfil','UserController@editarPerfil')->name('perfil')->middleware
// Rotas Administrador
Route
::
get
(
'/home-admin'
,
'AdministradorController@index'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.index'
);
Route
::
get
(
'/usuarios'
,
'AdministradorController@usuarios'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.usuarios'
);
Route
::
get
(
'admin/editais'
,
'AdministradorController@editais'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.editais'
);
// Rotas de administrador responsavel (Reitor ou pro-reitor)
Route
::
get
(
'adminResp/editais'
,
'AdministradorResponsavelController@editais'
)
->
name
(
'adminResp.editais'
);
Route
::
get
(
'adminResp/usuarios'
,
'AdministradorResponsavelController@usuarios'
)
->
name
(
'adminResp.usuarios'
);
Route
::
get
(
'adminResp/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'adminResp.atribuir'
);
Route
::
post
(
'adminResp/atribuir'
,
'AdministradorResponsavelController@atribuirPermissao'
)
->
name
(
'adminResp.atribuir'
);
Route
::
post
(
'adminResp/verPermissao'
,
'AdministradorResponsavelController@verPermissao'
)
->
name
(
'adminResp.verPermissao'
);
//Rotas das naturezas
Route
::
get
(
'/naturezas'
,
'AdministradorController@naturezas'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'admin.naturezas'
);
Route
::
get
(
'/naturezas/grande-area'
,
'GrandeAreaController@index'
)
->
middleware
(
'checkAdministrador'
)
->
name
(
'grandearea.index'
);
...
...
@@ -124,6 +132,5 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
get
(
'/area/comissao'
,
'EventoController@listComissaoTrabalhos'
)
->
name
(
'area.comissao'
);
});
Log
::
debug
(
'antes de home'
);
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
)
->
middleware
(
'verified'
);
Log
::
debug
(
'depois de home'
);
\ No newline at end of file
Prev
1
2
Next
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