public function getIndex() { $notas_venta = NotaVenta::whereStatus('Activo')->orderBy('fecha_emision')->get(); $ordenes_compra_cliente = OrdenCompraCliente::whereStatus('Activo')->orderBy('id', 'DESC')->lists('id', 'id'); $vendedores = Vendedor::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id'); $clientes = Cliente::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id'); return View::make('sgrm.notas_venta.index')->with('ordenes_compra_cliente', $ordenes_compra_cliente)->with('vendedores', $vendedores)->with('clientes', $clientes)->with('notas_venta', $notas_venta); }
public function getIndex() { $facturas_compra = FacturaCompra::whereStatus('Activo')->orderBy('fecha_emision')->get(); $notas_venta = NotaVenta::whereStatus('Activo')->orderBy('id', 'DESC')->lists('id', '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.index')->with('notas_venta', $notas_venta)->with('facturas_compra', $facturas_compra)->with('estados', $estados)->with('vendedores', $vendedores)->with('proveedores', $proveedores)->with('facturas_compra', $facturas_compra); }