public function getEdit($factura_compra_id)
 {
     $factura_compra = FacturaCompra::find($factura_compra_id);
     $estados = Estado::whereStatus('Activo')->orderBy('id', 'DESC')->lists('nombre', 'id');
     $vendedores = Vendedor::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id');
     $proveedores = Cliente::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id');
     return View::make('sgrm.facturas_compra.edit')->with('estados', $estados)->with('vendedores', $vendedores)->with('proveedores', $proveedores)->with('factura_compra', $factura_compra);
 }
 public function getIndex()
 {
     $estados_act = Estado::whereStatus('Activo')->orderBy('nombre')->get();
     $estados_inact = Estado::whereStatus('Inactivo')->orderBy('nombre')->get();
     return View::make('sgrm.estados.index')->with('estados_act', $estados_act)->with('estados_inact', $estados_inact);
 }