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
d4dad17b
Commit
d4dad17b
authored
Mar 05, 2024
by
alissonalbuquerque
Browse files
update
parent
32eb184f
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/DashboardController.php
View file @
d4dad17b
...
...
@@ -26,7 +26,7 @@ class DashboardController extends Controller
}
if
(
$user
->
isTypeTeacher
())
{
dd
(
'update teacher'
);
$userPads
=
UserPad
::
whereUserId
(
$user
->
id
)
->
whereStatus
(
Status
::
ATIVO
)
->
get
();
return
view
(
'dashboard'
,
[
'userPads'
=>
$userPads
,
'menu'
=>
Menu
::
HOME
]);
...
...
resources/views/dashboard.blade.php
View file @
d4dad17b
...
...
@@ -2,6 +2,7 @@
@section('title', 'Home')
<x-slot
name=
"main"
>
<div
class=
"tab-content"
>
@php dd('dashboard'); @endphp
@if(Auth::user()->isTypeAdmin())
@include('layouts.user-dashboard.dashboard_admin')
@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