It is generally not recommended to leave a dog in a crate for 8 to 10 hours. Dogs are social animals that need interaction, and they also need regular opportunities to relieve themselves.
Long confinement can lead to anxiety, stress, and depression. If you must be away for extended periods, consider a pet sitter, dog walker, or reputable kennel.