public function getUntrash($id = '') { if ($id == '') { return Redirect::to($this->route)->with('msg_error', Lang::get('messages.companies_display_err')); } else { $company = Companies::find($id); $draft = Companies::draft($id); if (!$draft) { return Redirect::to($this->route . '/trash')->with('msg_error', Lang::get('messages.companies_untrash_err', array('title' => $company->title))); } else { return Redirect::to($this->route . '/trash')->with('msg_success', Lang::get('messages.companies_untrash', array('title' => $company->title))); } } }