/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data = array('title' => 'Dashboard', 'baptism_count' => Baptism::all()->count(), 'confirmation_count' => Confirmation::all()->count(), 'marriage_count' => Marriage::all()->count(), 'burial_count' => Burial::all()->count()); return view('dashboard')->with($data); }