public function getContact($lang = 'id') { $contact_copy = GeneralInfo::where('key', '=', 'contact-us')->first(); $data['pageTitle'] = "Hubungi Kami"; $data['pageDescription'] = "Hubungi Kami"; $data['contact_copy'] = $contact_copy->value_id; if ($lang == 'en') { $data['pageTitle'] = "Contact Us"; $data['pageDescription'] = "Contact Us"; $data['contact_copy'] = $contact_copy->value_en; } return View::make('pages.contact', $data); }
public function getFormEdit($url_cat, $id) { $check = $this->checkUrlCategory($url_cat); if (!$check) { $url_cat = 'general'; } $sectionName = GeneralInfo::where('key', '=', $id)->first(); if (!$sectionName) { return Redirect::route('admin.general', array('url_category' => $url_cat)); } $data = array(); $input = $sectionName; $data['input'] = Input::old(); if (!$data['input']) { $data['input'] = $input; } $data['formProcess'] = "editProcess"; $data['category'] = $url_cat; return View::make('admin.site.form.general', $data); }