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
pad-upe
Commits
28a91bee
Commit
28a91bee
authored
Mar 05, 2024
by
alissonalbuquerque
Browse files
update
parent
d947c77d
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Models/User.php
View file @
28a91bee
...
@@ -209,6 +209,7 @@ class User extends Authenticatable
...
@@ -209,6 +209,7 @@ class User extends Authenticatable
*/
*/
public
function
isTypeTeacher
()
public
function
isTypeTeacher
()
{
{
dd
(
'professor'
);
return
$this
->
profileSelected
()
->
type
===
UserType
::
TEACHER
;
return
$this
->
profileSelected
()
->
type
===
UserType
::
TEACHER
;
}
}
...
...
resources/views/dashboard.blade.php
View file @
28a91bee
...
@@ -7,9 +7,6 @@
...
@@ -7,9 +7,6 @@
@endif
@endif
@if(Auth::user()->isTypeTeacher())
@if(Auth::user()->isTypeTeacher())
@php
['user' => Auth::user(), 'userPads' => $userPads]
@endphp
@include('layouts.user-dashboard.dashboard_teacher', ['user' => Auth::user(), 'userPads' => $userPads])
@include('layouts.user-dashboard.dashboard_teacher', ['user' => Auth::user(), 'userPads' => $userPads])
@endif
@endif
...
...
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