/** * Edit the set * @param integer $id The ID Of The Set To Edit * @access public * @return View */ public function getEdit($id = null) { $set = $this->attribute_sets->find($id); if (!$set) { return Redirect::to('manage/attribute-sets'); } $assignedAttributes = $set->attributes()->lists('key', 'key'); return View::make('ProductCatalog::attribute_sets.edit')->with('assignedAttributes', $assignedAttributes)->with('attributes', $this->attributes->getAll())->with('set', $set); }
/** * Main users page. * * @access public * @return View */ public function getIndex() { return View::make('ProductCatalog::attributes.dashboard')->with('attributes', $this->attributes->getAll()); }