public function editCat($catid) { $cat = m_cat::find($catid); $page_title = "Edit Category"; $title = "Admin - Edit Category ID " . $catid; $button_name = "Update Category"; $url = 'cat/updateCat'; //$status = m_status::lists('desc','code'); $status = m_status::wherein('code', $this->code)->lists('desc', 'code'); $myclass = new myclass(); $cb_parent = $myclass->gen_cat(); return view('backend.formcat', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'url' => $url, 'status' => $status, 'cb_parent' => $cb_parent, 'cat' => $cat]); }
public function editArt($artid) { $art = m_art::find($artid); $page_title = "Edit Article"; $title = "Admin - Edit Article "; $button_name = "Update Article"; $url = 'art/updateArt'; $status = m_status::lists('desc', 'code'); $myclass = new myclass(); $cb_cat = $myclass->gen_cat(); return view('backend.formart', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'url' => $url, 'status' => $status, 'cb_cat' => $cb_cat, 'art' => $art]); }