public function enterAdminPanel()
 {
     $html = "";
     if (AppUserRolesConfig::isAdmin()) {
         $url = \EShop\Config\RouteConfig::getBasePath() . 'admin/admin/adminPanel';
         $html .= "<a class='list-group-item' href=\"{$url}\">Admin Panel</a>";
         echo $html;
     }
 }
 public function renderCertainProductsPromoMenu()
 {
     if (AppUserRolesConfig::isAdmin()) {
         FormViewHelper::init();
         FormViewHelper::setMethod("post");
         FormViewHelper::setAction(\EShop\Config\RouteConfig::getBasePath() . 'admin/admin/addPromotionOnCertainProduct');
         $select = FormViewHelper::initSelect();
         $select->setName('productId');
         foreach ($this->allProducts as $product) {
             $select->addOption($product->getid(), $product->getName());
         }
         $select->create();
         FormViewHelper::initNumberField()->setAttribute('placeholder', 'Product promo in %')->setName('discount')->setAttribute('class', 'discount')->create();
         FormViewHelper::initSubmitButton()->setValue('Add promotion')->setAttribute('class', 'btn btn-primary')->create();
         FormViewHelper::render();
     }
 }