コード例 #1
0
 public function getIndex()
 {
     $facturas_venta = FacturaVenta::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');
     $clientes = Cliente::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id');
     return View::make('sgrm.facturas_venta.index')->with('notas_venta', $notas_venta)->with('facturas_venta', $facturas_venta)->with('estados', $estados)->with('vendedores', $vendedores)->with('clientes', $clientes)->with('facturas_venta', $facturas_venta);
 }
コード例 #2
0
 public function getIndex()
 {
     $bills = FacturaVenta::whereStatus('En Espera')->get();
     $cotizaciones = RankingCliente::orderBy('valoracion', 'Desc')->get();
     return View::make('home_admin')->with('bills', $bills)->with('cotizaciones', $cotizaciones);
 }