has('SystemProgram')) { $program = app('SystemProgram'); $builder->whereIn('komoditas_id', $program->komoditas()->pluck('id')); } } }