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
c35d964f
Commit
c35d964f
authored
Jun 24, 2020
by
alinetenorio
Browse files
verificação se user é proponente
parent
3cb620ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ParticipanteController.php
View file @
c35d964f
...
@@ -29,7 +29,7 @@ class ParticipanteController extends Controller
...
@@ -29,7 +29,7 @@ class ParticipanteController extends Controller
//$projetos = Auth::user()->participantes->where('user_id', Auth::user()->id)->first()->trabalhos;
//$projetos = Auth::user()->participantes->where('user_id', Auth::user()->id)->first()->trabalhos;
//dd(
$projeto
s);
//dd(
Auth::user()->proponente
s);
return
view
(
'participante.projetos'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
]);
return
view
(
'participante.projetos'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
]);
}
}
...
...
resources/views/participante/projetos.blade.php
View file @
c35d964f
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
endif
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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