public function __construct()
 {
     $this->user = Sentry::getUser();
     $this->isAdmin = User::isAdmin($this->user);
     $this->logged_in_for = $this->user->last_login->diffForHumans();
     $this->configs = Setting::getSiteSettings();
     $this->paginate = Page::getRecordsPerPage();
     $this->orderBy = Page::getOrderBy();
     $this->cacheMinutes = 30;
     $this->rules = Page::$rules;
     $this->activeParent = 'pages';
 }