Were you representing yourself in court pro se? If so, hire a family law attorney immediately or at least speak to one about your case. If the child would be better off with you then you need to present your case better or you can request an order for a social study to be done. A social study is where a professional investigates both parties and makes recommendations to the court on custody, possession and access. The court doesn't have to follow the recommendations but if it's in your favor, it's a great piece of evidence.
You haven't provided much information on your case however it appears that you have temporary orders in place. I would encourage to either work with your ex on a possession schedule that allows you to spend time with your daughter while he is working instead of him placing her in daycare. If he will not work with you, then set a hearing to "modify temporary orders" so that you can bring his schedule and lack of support to the Court's attention and also let the Court know that YOU ARE AVAILABLE to care for your daughter.
This is general legal advice. An attorney-client relationship has not been formed. Please contact an attorney for specific advice on your case.
Sign up to receive a 3-part series of useful information and advice about child custody law.