public function getIndex() { $ordenes_compra_cliente_act = OrdenCompraCliente::whereStatus('Activo')->orderBy('fecha_emision')->get(); $ordenes_compra_cliente_inact = OrdenCompraCliente::whereStatus('Inactivo')->orderBy('fecha_emision')->get(); $cotizaciones_venta = CotizacionVenta::whereStatus('Activo')->orderBy('numero', 'DESC')->lists('numero', 'id'); $vendedores = Vendedor::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id'); $clientes = Cliente::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id'); return View::make('sgrm.ordenes_compra_cliente.index')->with('cotizaciones_venta', $cotizaciones_venta)->with('vendedores', $vendedores)->with('clientes', $clientes)->with('ordenes_compra_cliente_act', $ordenes_compra_cliente_act)->with('ordenes_compra_cliente_inact', $ordenes_compra_cliente_inact); }
public function getIndex() { $cotizaciones_venta_act = CotizacionVenta::whereStatus('Activo')->orderBy('numero')->get(); $cotizaciones_venta_inact = CotizacionVenta::whereStatus('Inactivo')->orderBy('numero')->get(); return View::make('sgrm.cotizaciones_venta.index')->with('cotizaciones_venta_act', $cotizaciones_venta_act)->with('cotizaciones_venta_inact', $cotizaciones_venta_inact); }