Nav Items for CP #7643
Unanswered
HazemMohamed252
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I'm not sure about how to fix your issue but would you be able to surround your code in backticks (`) so it's rendered in a code block? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Make the child urls actual children in the url too. If the parent is |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Nav::extend(function ($nav) {
$nav->create('General Settings')
->section('System Settings')
->url('generalsettings')
->can('View general settings')
->children([
$nav->item('Email Settings')->url('emailsettings')->can('View email settings'),
$nav->item('SMS Settings')->url('smssettings')->can('View sms settings'),
$nav->item('Onboardings')->url('onboardings')->can('View onboardings'),
$nav->item('Value Chains')->url('valuechains')->can('View value chains'),
$nav->item('Produces')->url('produces')->can('View produces'),
$nav->item('Interests And Activities')->url('activitytypes')->can('View activitytypes'),
$nav->item('Irrigations Types')->url('irrigations')->can('View irrigations'),
$nav->item('Fertilizations Types')->url('fertilizations')->can('View fertilizations'),
$nav->item('User Activities')->url('clienttypes')->can('View client types'),
$nav->item('Sections Ads')->url('sectionsads')->can('View sections ads'),
$nav->item('About Bashaier')->url('aboutbashaier')->can('View about bashaier')
]);
});
Please i just created nav with childrens but when i click on any children the menu is collapsed again. I need when i click on children the menu still opened and the children is active. Please ASAP
Beta Was this translation helpful? Give feedback.
All reactions