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
0076dca1
Commit
0076dca1
authored
2 years ago
by
GuilhermeGz
Browse files
Options
Download
Email Patches
Plain Diff
Alterado modo de verificação para a listagem de avaliações de relatórios no perfil avaliador
parent
e3e8fdb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/HomeController.php
+3
-1
app/Http/Controllers/HomeController.php
resources/views/avaliador/index.blade.php
+1
-1
resources/views/avaliador/index.blade.php
with
4 additions
and
2 deletions
+4
-2
app/Http/Controllers/HomeController.php
View file @
0076dca1
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
App\AvaliacaoRelatorio
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Auth
;
use
Auth
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Log
;
...
@@ -44,7 +45,8 @@ class HomeController extends Controller
...
@@ -44,7 +45,8 @@ class HomeController extends Controller
return
view
(
'proponente.index'
);
return
view
(
'proponente.index'
);
}
}
else
if
(
Auth
::
user
()
->
avaliadors
!=
null
)
{
else
if
(
Auth
::
user
()
->
avaliadors
!=
null
)
{
return
view
(
'avaliador.index'
);
$flagAvalRelatorio
=
count
(
AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
get
());
return
view
(
'avaliador.index'
,
compact
(
'flagAvalRelatorio'
));
}
}
else
if
(
Auth
::
user
()
->
participantes
!=
null
)
{
else
if
(
Auth
::
user
()
->
participantes
!=
null
)
{
return
view
(
'participante.index'
);
return
view
(
'participante.index'
);
...
...
This diff is collapsed.
Click to expand it.
resources/views/avaliador/index.blade.php
View file @
0076dca1
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</
a
>
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
@
if
(
\
App\AvaliacaoRelatorio
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
get
()
->
count
()
!=
0
)
@
if
(
$flagAvalRelatorio
!=
0
)
<
div
class
=
""
style
=
"text-align: center"
>
<
div
class
=
""
style
=
"text-align: center"
>
<
div
class
=
"form-group imagem_shadow"
style
=
"border-radius: 12px; padding:14px; height:200px; width:190px; margin:15px"
>
<
div
class
=
"form-group imagem_shadow"
style
=
"border-radius: 12px; padding:14px; height:200px; width:190px; margin:15px"
>
<
a
href
=
"{{ route('planos.avaliacoes.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('planos.avaliacoes.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
...
...
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