Any peace officer, including state troopers, sheriffs and their deputies, constables and their deputies, police officers and marshals of cities or incorporated towns, county police or patrols, state or county license inspectors and their deputies, and special officers appointed by any agency of the State of Alabama for the enforcement of its laws relating to motor vehicles, now existing or hereafter enacted, shall be authorized, and it is hereby made the duty of each of them to enforce the provisions of this chapter and to make arrests for any violation or violations thereof, without warrant if the offense be committed in his or her presence, and with warrant if he or she does not observe the commission of the offense. If the arrest be made without warrant, the accused may elect to be immediately taken before the nearest court having jurisdiction, whereupon it shall be the duty of the officer to so take him or her. If the accused elects not to be so taken, then it shall be the duty of the officer to require of the accused a bail bond in a sum not to exceed $300.00, conditioned that the accused binds himself or herself to appear in the nearest court having jurisdiction at the time fixed in the bond. In case the arrested person fails to appear on the day fixed, the bond shall be forfeited in the manner as is provided for the forfeiture of bonds in other cases. No officer shall be permitted to take a cash bond. The officer making the arrest and taking the bond shall report the same to the court having jurisdiction within 18 hours after taking such bond.