My plugin uses two main menus on the top “tours” and “reservaions”
Each of the menus has a sideMenu
defined but when clicking on reservation the tours side menu appears is this a bug or should the menu definition be different?
public function registerNavigation()
{
return [
'tours' => [
'label' => 'Tours',
'url' => Backend::url('depcore/tours/tours'),
'icon' => 'ph ph-map-trifold',
'permissions' => ['depcore.tours.crud_tours'],
'order' => 500,
'sideMenu' =>[
'tour_create' => [],
'tours' => [],
'categories' => [...],
'cities' => [...],
'faqcategories' => [...],
'attractions' =>[...],
'additional_info' => [...],
],
],
'reservations' => [
'label' => 'Reservations',
'url' => Backend::url('depcore/tours/reservations'),
'icon' => 'ph ph-calendar',
'permissions' => ['depcore.tours.crud_tours'],
'order' => 301,
'sideMenu' =>[
'reservation' => [...],
'payment' => [.. ],
'reservation_status' => [...],
],
],
];
}