public function categoryEdit($id)
 {
     if (Request::isMethod('post')) {
         $data = Input::all();
         $data = Input::except(array('_token'));
         DB::table('categories')->where('id', $data['id'])->update($data);
         return Redirect::to('admin/category/manage');
     }
     $categoryData = Categories::findcategory($id);
     foreach ($categoryData as $cdata) {
         $category = $cdata;
     }
     $list = Categories::dropdown();
     $data['parent'] = $list;
     return View::make('admin.categoriesEdit', $data)->with('category', $category);
 }