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
5b5b5c07
Commit
5b5b5c07
authored
May 30, 2020
by
Gabriel-31415
Browse files
refatacao de rotas
parent
49468eb2
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/CoordenadorComissaoController.php
View file @
5b5b5c07
...
...
@@ -55,7 +55,7 @@ class CoordenadorComissaoController extends Controller
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$evento
->
trabalhos
;
dd
(
$trabalhos
);
return
view
(
'coordenadorComissao.listarTrabalhos'
,
[
'trabalhos'
=>
$trabalhos
]);
}
public
function
detalhesEdital
(
Request
$request
){
...
...
@@ -79,6 +79,7 @@ class CoordenadorComissaoController extends Controller
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$evento
->
trabalhos
;
//dd($trabalhos);
//return redirect()->route('coordenador.listarTrabalhos', ['trabalhos' => $trabalhos]);
return
view
(
'coordenadorComissao.gerenciarEdital.listarTrabalhos'
,
[
'trabalhos'
=>
$trabalhos
]);
}
else
if
(
$request
->
item
==
"cadastrarAreas"
){
...
...
@@ -86,7 +87,8 @@ class CoordenadorComissaoController extends Controller
return
view
(
'coordenadorComissao.gerenciarEdital.cadastrarAreas'
,
[
'trabalhos'
=>
$trabalhos
]);
}
else
if
(
$request
->
item
==
"listarAreas"
){
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$evento
->
trabalhos
;
return
view
(
'coordenadorComissao.gerenciarEdital.listarAreas'
,
[
'trabalhos'
=>
$trabalhos
]);
}
else
if
(
$request
->
item
==
"cadastrarRevisores"
){
...
...
app/Http/Controllers/HomeController.php
View file @
5b5b5c07
...
...
@@ -27,22 +27,22 @@ class HomeController extends Controller
{
$eventos
=
\
App\Evento
::
all
();
if
(
Auth
::
check
()){
if
(
Auth
::
user
()
->
tipo
==
'
administrador
'
){
if
(
Auth
::
user
()
->
administrador
s
!=
null
){
return
view
(
'administrador.index'
);
}
else
if
(
Auth
::
user
()
->
tipo
==
'a
dministradorResponsavel
'
)
{
else
if
(
Auth
::
user
()
->
A
dministradorResponsavel
!=
null
)
{
return
view
(
'administradorResponsavel.index'
);
}
else
if
(
Auth
::
user
()
->
tipo
==
'
coordenador
'
)
{
else
if
(
Auth
::
user
()
->
coordenador
Comissao
!=
null
)
{
return
view
(
'coordenadorComissao.index'
);
}
else
if
(
Auth
::
user
()
->
tipo
==
'
proponente
'
)
{
else
if
(
Auth
::
user
()
->
proponente
s
!=
null
)
{
return
view
(
'proponente.index'
);
}
else
if
(
Auth
::
user
()
->
has
(
'
avaliadors
'
)
)
{
else
if
(
Auth
::
user
()
->
avaliadors
!=
null
)
{
return
view
(
'avaliador.index'
);
}
else
if
(
Auth
::
user
()
->
tipo
==
'
participante
'
)
{
else
if
(
Auth
::
user
()
->
participante
s
!=
null
)
{
return
view
(
'participante.index'
);
}
}
...
...
app/Policies/EventoPolicy.php
View file @
5b5b5c07
...
...
@@ -24,7 +24,8 @@ class EventoPolicy
public
function
isCoordenador
(
User
$user
,
Evento
$evento
){
if
(
Auth
()
->
user
()
->
coordenadorComissao
->
first
()
!=
null
){
if
(
Auth
()
->
user
()
->
coordenadorComissao
!=
null
){
return
$evento
->
criador_id
==
Auth
()
->
user
()
->
coordenadorComissao
->
first
()
->
id
;
}
else
{
return
false
;
...
...
resources/views/coordenadorComissao/gerenciarEdital/listarAreas.blade.php
0 → 100644
View file @
5b5b5c07
<div
class=
"col-sm-10"
>
<h1
class=
""
>
Avaliadores
</h1>
</div>
<table
class=
"table table-hover table-responsive-lg table-sm"
>
<thead>
<tr>
<th
scope=
"col"
>
ID
</th>
<th
scope=
"col"
>
Nome
</th>
<th
scope=
"col"
>
E-mail
</th>
<th
scope=
"col"
>
Visualizar
</th>
</tr>
</thead>
<tbody>
@php $i = 0; @endphp
@foreach($areas as $area)
<tr>
<td>
{{$avaliador->id}}
</td>
<td>
{{$avaliador->name}}
</td>
<td>
</td>
<td>
</td>
</tr>
@endforeach
</tbody>
</table>
routes/web.php
View file @
5b5b5c07
This diff is collapsed.
Click to expand it.
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