public function index() { $limit = 3; $announcement = Announcement::orderBy('created_at', 'desc')->limit($limit)->get(); $trainings = Training::orderBy('start_date', 'asc')->get(); return view('bard_frontend.index', compact('announcement'), compact('trainings')); //return view('bard_frontend/index')->with('index', 'active'); }