I totally agree with your comment because if there is no bad influence of friends from the environment then no way a child will be attracted to gambling. The influence of bad friends and bad use of mobile phones are forcing children to become gamblers.
But a parent never wants their child to become a gambler rather a caring parents always wishes her child a bright future. However, if a parent becomes addicted to gambling in front of the child, the child will be somewhat affected by the parent's actions. So parents should never get drunk on gambling in front of their children.
parents have the duty to educate their children to be good children and it is the obligation of every parent to teach and educate their children for good things, but even so, the circle of friends will also determine what kind of friends they will socialize with, the upbringing that parents give them. can make them think about not doing risky or negative things. Apart from that, even if their friends force them to do things that are not good or risky, maybe they can avoid it because their parents' upbringing has made them think well that they should stay away from negative things.
Of course, parents educate them not to do bad things or have wrong social interactions, but social interactions outside the home can also affect them and many children are more comfortable living outside than with their families, but that's a different case. Apart from that, of course it is not recommended to gamble in front of children, because I think it is unethical if they do it in front of children, moreover of course it is an action that is not included in education unless they tell them that gambling is something that can have a bad impact on them. but I think even if parents don't tell them about gambling, they will still know about it because there is a wider environment outside the home that knows and teaches them many things, they themselves must be able to differentiate between good and bad things for themselves.