Commit 28a91bee authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

update

parent d947c77d
...@@ -208,7 +208,8 @@ class User extends Authenticatable ...@@ -208,7 +208,8 @@ class User extends Authenticatable
* @return bool * @return bool
*/ */
public function isTypeTeacher() public function isTypeTeacher()
{ {
dd('professor');
return $this->profileSelected()->type === UserType::TEACHER; return $this->profileSelected()->type === UserType::TEACHER;
} }
......
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment