Background: The Seminole Classic Casino in Hollywood, Florida (Google Maps). Inset: Gregory Foster (Broward County Sheriff's Office).

A man in Florida is accused of leaving a baby in an unbuckled car seat in a BMW for two hours so he could gamble at a casino.

Gregory Foster, 28, has been charged with child neglect, according to Broward County court records reviewed by Law&Crime. He was booked into the Broward County Sheriff's Office's main jail on $2,500 bond.

On Wednesday at about 11 a.m., an officer with the Seminole Police Department was called to the Seminole Classic Casino in Hollywood, Florida, an arrest report states. The arriving officer spoke with security personnel at the casino and was directed to a black BMW in the parking lot.

The vehicle did not have a driver inside, but there was a baby "left in the car," the report says. The child was apparently in a car seat in the middle of the back seat but was not buckled in.

According to the security personnel, the BMW had been there for "over an hour." The officer noted that the child was not moving and, because of this, police forced their way inside. The baby "appeared to be sleeping."

More from Law&Crime: Dad left 19-month-old daughter in hot bathtub until she got 3rd-degree burns to nearly half her body, then skipped hospital trip to shoot a music video while she suffered: Police

Security at the casino managed to get in touch with the vehicle's owner — Foster — who was allegedly inside the casino "playing at a table." The defendant reportedly explained that he "only left the infant in the car for 45 minutes," but security staff said he was in the casino for about two hours.

The court document does not identify the relationship between Foster and the child.

Foster was arrested. It was not immediately clear who assumed custody of the child.

A hearing date for the defendant was not immediately made available.