public function render() { $this->messageCount = Message::WhereNotNull('source')->UnRead()->count(); return $this->makePartial('widget'); }