/**
  * Save tariffs menus
  */
 public function saveTariffsMenus()
 {
     $data = $this->input->post();
     $tariffsMenus = json_decode($data['tariffsMenus']);
     $type = $data['type'];
     if ($tariffsMenus) {
         AdminMenuBuilder::saveTariffsMenus($tariffsMenus, $type);
         showMessage(lang('Successfully saved.', 'admin_menu'), lang('Success', 'admin_menu'));
     } else {
         showMessage(lang('No data to save.', 'admin_menu'), lang('Error', 'admin_menu'), 'r');
     }
 }