Ejemplo n.º 1
0
 public function search_pagos()
 {
     $id = Input::get('fecha');
     if (is_null($id)) {
         return View::make('pagos.search_pagos');
     } else {
         $pagos = Pagos::where('fecha', '=', $id)->get();
         if (is_object($pagos)) {
             return View::make('pagos.search_pagos', array('pagos' => $pagos));
             //return Redirect::to('pagos/create')->withErrors($respuesta['mensaje'] )->withInput();
             //return Redirect::to('pagos/create/',array('cliente'=>$cliente,'modalidad'=>$modalidad));
         } else {
             return Redirect::to('404.html');
         }
     }
 }