public function getFiltroPorNotas() { try { $input = Input::all(); $cotizaciones = Cotizacion::where('notas', 'like', '%' . $input['notas'] . '%')->orderBy('id', 'desc')->paginate(2); Session::flash('mensajeOk', 'Se ha realizado la búsqueda de cotizaciones que contienen <strong>' . $input['notas'] . '</strong> en las notas.'); return View::make('cotizaciones.listado')->with(compact('cotizaciones', 'input')); } catch (Exception $e) { Session::flash('mensajeError', 'Ha ocurrido un error al intentar mostrar cotizaciones con <strong>' . $input['notas'] . '</strong> en las notas.'); return Redirect::to('cotizaciones/listado'); } }