public function polling() { $this->data['polling'] = Models\Polling::with('jawaban')->where('status', 'Y')->first(); $this->data['total_data'] = $this->data['polling']->jawaban->sum('counter') / 100; return view('front.lihatpoll', $this->data); }