/** * Display a listing of the resource. * * @return Response */ public function index() { $input = Input::all(); $suppliers = Suppliers::filter(Input::all(), 24); $index = $suppliers->getPerPage() * ($suppliers->getCurrentPage() - 1) + 1; return View::make('suppliers.index', compact('suppliers', 'index', 'input')); }