Navigation Groups order

Hello all. I've got into the same trouble as the author of the post, however adding the navigastionGroups to AdminPanelProvider does not seem to resolve my navigation groups order and instead they are ordered in an Alphabetical order. Here is my navigationGroups markup: // Define the navigation groups state (open/closed by default) ->navigationGroups([ NavigationGroup::make() ->label('Employees Management') ->collapsed(), NavigationGroup::make() ->label('Users Management') ->collapsed(), NavigationGroup::make() ->label('System Management') ->collapsed(), ]); However the order is strangely set to: Employees Management, System Management and Users Management Any ideas how can I resolve the order as I've been reading and reading documentations and followed several tutorials, however so far the only way to reorder the navigation groups was by using the following suggested code related to translations: // Define the navigation groups order and labels ->navigationGroups([ 'Users Management' => NavigationGroup::make(fn() => ('Users Management')), 'Employees Management' => NavigationGroup::make(fn() => ('Employees Management'))->collapsed(false), 'System Management' => NavigationGroup::make(fn() => __('System Management')), ]); Having used this code DOES ORDER my groups in any way I need them, however it ignores the state of the navigation group and I cannot set it as collapsed(false) Btw, using the shorter version of ordering (just for the sake of testing): ->navigationGroups([ 'System Management', 'Users Management', 'Employees Management', ]); Did not order the navigation groups as well... Besides I need to be able to define the state of a group (either it is collapsible or not)...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server