Add built-in screens (login, profile, menu, posts), per-user and site themes
This commit is contained in:
1 parent
4bf0a8bbb0
commit
351667abaf
46 files changed
+3720
-12
No files matched your search
@@ -15,6 +15,13 @@ class DashboardController
|
||||
fn (array $item) => $request->user()?->can($item['permission']),
|
||||
));
|
||||
|
||||
if ($request->wantsJson()) {
|
||||
return response()->json(['navigation' => array_map(
|
||||
fn (array $item) => ['label' => $item['label'], 'href' => route($item['route'], [], false)],
|
||||
$navigation,
|
||||
)]);
|
||||
}
|
||||
|
||||
return view('manager::dashboard', ['navigation' => $navigation]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user