Пример #1
0
 /**
  * Show a list of all the blog posts.
  *
  * @return View
  */
 public function getView($slug)
 {
     /* hacks to ensure they get to the right place */
     if ($slug == "test") {
         return Support::ProcessAutoClose();
     }
     if ($slug == "test2") {
         return Support::ProcessEscalations();
     }
     if ($slug == "cron") {
         return $this->getCron();
     }
     if ($slug == "data") {
         return $this->getData();
     }
     if ($slug == "create") {
         return $this->getCreate();
     }
     if ($slug == "install") {
         return $this->getInstall();
     }
     $department = Support::getStatusByName($slug);
     $title = Lang::get('l4cp-support::core.support');
     return Theme::make('l4cp-support::tickets/index', compact('title', 'slug', 'department'));
 }