/**
  * Display a listing of the category.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     /*
      * --------------------------------------------------------------------------
      * Filtering category
      * --------------------------------------------------------------------------
      * Populate optional filter on url break down in data, sorting by and sorting
      * method, retrieve the category.
      */
     $filter_by = Input::has('by') ? Input::get('by') : 'timestamp';
     $filter_sort = Input::has('sort') ? Input::get('sort') : 'desc';
     $category = new Category();
     $categories = $category->retrieveCategory($filter_by, $filter_sort);
     return view('admin.category.index', compact('categories'));
 }