/**
  * Update the specified resource in storage.
  *
  * @param  Request  $request
  * @param  int  $id
  * @return Response
  */
 public function update(SeguimientoRequest $request, $id, $seguimientoId)
 {
     //
     //dd($status);
     Log::info('BPO - Seguimiento actualizar id seguimiento : ' . $seguimientoId);
     $seguimiento = Seguimiento::findOrFail($seguimientoId);
     Log::debug(print_r($request->all(), TRUE));
     $seguimiento->fill($request->all());
     $seguimiento->parser($id);
     $seguimiento->save();
     $bpos = array(Bpo::find($id));
     $seguimientos = Seguimiento::orderBy('id', 'DESC')->proyectoactivo()->proyectoId($id)->paginate();
     $notices = array("Seguimiento Actualizado con ID {$seguimientoId}");
     return \Redirect::route('bpo.proyectos.seguimientos', [$id])->with('notices', $notices)->with('notices_tmp', "pruebas");
 }
Example #2
0
 /**
  * Delete the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Log::info('BPO - Borrando id: ' . $id);
     $bpo = Bpo::find($id);
     $bpo->borradoLogico();
     $bpo->save();
     //$bpo -> delete();
     $bpos = Bpo::where('status', '=', 1)->orderBy('created_at', 'DESC')->paginate();
     Log::info('BPO - Exito al borrar id: ' . $id);
     return view('bpo.index', compact('bpos'))->with('notices', array("BPO eliminado"));
 }