public function showTable() { /* * showtable view requires: db entries to show, * the columns to show, * the titles to display for those columns, * a list of columns that are foreign keys, * the set of ids and the values to display for each foreign key, * and a title for the table. */ return View::make('showtable', ['entries' => JobOpening::all(), 'cols' => ['title', 'is_available', 'created_at'], 'colTitles' => ['Title', 'Available?', 'Date Posted'], 'foreignKeys' => [], 'foreignKeyToIdToValue' => [], 'name' => 'job-openings', 'title' => 'Job Openings']); }