- {{ activeMenu[index] ? '-' : '+' }}
+
{{ group.title }}
@@ -69,12 +81,8 @@
diff --git a/screenshots/menu-icons.png b/screenshots/menu-icons.png
new file mode 100644
index 0000000..5211293
Binary files /dev/null and b/screenshots/menu-icons.png differ
diff --git a/src/CollapsibleResourceManager.php b/src/CollapsibleResourceManager.php
index 446ceb0..92fbca2 100644
--- a/src/CollapsibleResourceManager.php
+++ b/src/CollapsibleResourceManager.php
@@ -101,6 +101,7 @@ private function resolveResources(array $resources): Collection
if ($resource::authorizedToViewAny(request())) {
return [
+ 'icon' => method_exists($resource, 'icon') ? $resource::icon() : null,
'label' => is_numeric($key) ? $resource::label() : $this->translateKey($key),
'route' => $resource::uriKey()
];