public function getIndex() { $ordenes_compra_proveedor_act = OrdenCompraProveedor::whereStatus('Activo')->orderBy('fecha_emision')->get(); $ordenes_compra_proveedor_inact = OrdenCompraProveedor::whereStatus('Inactivo')->orderBy('fecha_emision')->get(); $cotizaciones_compra = CotizacionCompra::whereStatus('Activo')->orderBy('numero', 'DESC')->lists('numero', 'id'); $vendedores = Vendedor::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id'); $proveedores = Proveedor::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id'); return View::make('sgrm.ordenes_compra_empresa.index')->with('cotizaciones_compra', $cotizaciones_compra)->with('vendedores', $vendedores)->with('proveedores', $proveedores)->with('ordenes_compra_proveedor_act', $ordenes_compra_proveedor_act)->with('ordenes_compra_proveedor_inact', $ordenes_compra_proveedor_inact); }
public function getIndex() { $cotizaciones_compra_act = CotizacionCompra::whereStatus('Activo')->orderBy('numero')->get(); $cotizaciones_compra_inact = CotizacionCompra::whereStatus('Inactivo')->orderBy('numero')->get(); return View::make('sgrm.cotizaciones_compra.index')->with('cotizaciones_compra_act', $cotizaciones_compra_act)->with('cotizaciones_compra_inact', $cotizaciones_compra_inact); }