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
df922b10
Commit
df922b10
authored
Aug 19, 2022
by
S-Nathalia
Browse files
teste
parents
a156b740
e3e9b55f
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
df922b10
...
...
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use
App\Area
;
use
App\Arquivo
;
use
App\AvaliacaoRelatorio
;
use
App\FuncaoParticipantes
;
use
App\GrandeArea
;
use
App\ParecerInterno
;
...
...
@@ -54,8 +55,8 @@ class AvaliadorController extends Controller
);
public
function
index
(){
return
view
(
'avaliador.index'
);
$flagAvalRelatorio
=
count
(
AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
get
());
return
view
(
'avaliador.index'
,
compact
(
'flagAvalRelatorio'
)
);
}
public
function
editais
(
Request
$request
){
...
...
app/Http/Controllers/HomeController.php
View file @
df922b10
...
...
@@ -46,6 +46,7 @@ class HomeController extends Controller
}
else
if
(
Auth
::
user
()
->
avaliadors
!=
null
)
{
$flagAvalRelatorio
=
count
(
AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
get
());
dd
(
$flagAvalRelatorio
);
return
view
(
'avaliador.index'
,
compact
(
'flagAvalRelatorio'
));
}
else
if
(
Auth
::
user
()
->
participantes
!=
null
)
{
...
...
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