/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $votes = Votes::all(); return view('admin.pages.vote')->withVotes($votes); }