/** * Display a listing of the resource. * * @return Response */ public function index() { $empactive = "class=active"; $title = 'Employees Page'; $cnt = 1; $employee = $this->employee->get(); $projects = Projects::get(); return view('employee.index', compact('title', 'employee', 'cnt', 'projects', 'empactive')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $projects = Projects::get(); return view('admin.projects.index')->with('projects', $projects); }