/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $lst_tipo_ingresos = TipoIngresos::lists('tipo_ingreso', 'id'); $ingresos = Ingresos::all(); return view('ingresos.index', compact('lst_tipo_ingresos', 'ingresos')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $ingresosR = Ingresos::all(); return view('reportes/ingresos', compact('ingresosR')); }