capital murder pursuant to Section 13A-5-40, if the court is of the opinion, on the evidence adduced, that he or she is guilty of the offense .
A defendant shall have all of the following rights at a pretrial detention hearing:
Ala. Code § 15-13-3 (1975)