/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $lead = Lead::count();
     $roadshow = Roadshow::count();
     $roadshow_registration = RoadshowRegistration::count();
     return view('admin.dashboard', compact('lead', 'roadshow', 'roadshow_registration'));
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     Roadshow::where('id', '=', $id)->update(['name' => $request->get('name'), 'job_title' => $request->get('job_title'), 'company' => $request->get('company')]);
     return redirect('roadshows')->with('flash_message', 'Record Updated');
 }