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 = Addressbook::getRecordsPerPage(); $this->orderBy = Addressbook::getOrderBy(); $this->cacheMinutes = 30; $this->rules = Addressbook::$rules; $this->activeParent = 'lists'; }