Beispiel #1
0
 /**
  * Build the system menu.
  *
  * @param ItemInterface $menu
  */
 public function systemMenu(ItemInterface $menu)
 {
     $system = $menu->addChild(MainMenu::system());
     $system->setAttributes(['class' => 'dropdown']);
     $system->setLinkAttributes(['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown']);
     $system->addChild(MainMenu::settings());
     $system->addChild(MainMenu::tax());
     $system->setChildrenAttributes(['class' => 'dropdown-menu']);
 }
Beispiel #2
0
 /**
  * Renders the client index menu.
  *
  * @param ItemInterface $menu
  */
 public function clientsMenu(ItemInterface $menu)
 {
     $menu->addChild(ClientMenu::listMenu());
     $menu->addChild(ClientMenu::add());
 }
Beispiel #3
0
 /**
  * Renders the quote index menu.
  *
  * @param ItemInterface $menu
  */
 public function quotesMenu(ItemInterface $menu)
 {
     $menu->addChild(QuoteMenu::listMenu());
     $menu->addChild(QuoteMenu::create());
 }
Beispiel #4
0
 /**
  * Renders the invoice index menu.
  *
  * @param ItemInterface $menu
  */
 public function invoicesMenu(ItemInterface $menu)
 {
     $menu->addChild(InvoiceMenu::listMenu());
     $menu->addChild(InvoiceMenu::create());
 }