Skip to content

Commit

Permalink
Misc nav improvements (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite authored Oct 21, 2023
1 parent 76bacb9 commit 79cb659
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ protected function bootAddonNav()
$nav->tools('SEO Pro')
->route('seo-pro.index')
->icon('seo-search-graph')
->active('seo-pro')
->children([
$nav->item(__('seo-pro::messages.reports'))->route('seo-pro.reports.index')->can('view seo reports'),
$nav->item(__('seo-pro::messages.site_defaults'))->route('seo-pro.site-defaults.edit')->can('edit seo site defaults'),
$nav->item(__('seo-pro::messages.section_defaults'))->route('seo-pro.section-defaults.index')->can('edit seo section defaults'),
]);
->children(function () use ($nav) {
return [
$nav->item(__('seo-pro::messages.reports'))->route('seo-pro.reports.index')->can('view seo reports'),
$nav->item(__('seo-pro::messages.site_defaults'))->route('seo-pro.site-defaults.edit')->can('edit seo site defaults'),
$nav->item(__('seo-pro::messages.section_defaults'))->route('seo-pro.section-defaults.index')->can('edit seo section defaults'),
];
});
}
});

Expand Down

0 comments on commit 79cb659

Please sign in to comment.