/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $types = Types::paginate(20);
     $index = $types->getPerPage() * ($types->getCurrentPage() - 1) + 1;
     return View::make('types.index', compact('types', 'index'));
 }