public function ballot()
 {
     $flag = Flag::get()->first();
     if ($flag->run_election == true) {
         $candidates = Candidate::all();
         return view('form.ballot')->with('candidates', $candidates);
     } elseif ($flag->end_election == true) {
         return view('form.success')->with('message', "The Election has ended.");
     } else {
         return view('form.success')->with('message', "The Election hasn't started yet. Please Wait..");
     }
 }
 public function home()
 {
     $flag = Flag::get()->first();
     return view('dashboard.home')->with('flag', $flag);
 }