Weekly shift schedule

Hello, good day! I am working on a weekly shift system, where before loading I make a prior consultation to find out if the shift is available or not. I'm having problems because I save the data correctly, the problem is that I can't make the comparison.
I accept all kinds of recommendations, change database work in another way, whatever.
BD: fire base
Lists are preloaded, visually it looks like this:

The blocks are similar to this (ignore some mistakes) I'm still learning with the app :

Hello,
In order that more users can help you, I recommend that you temporarily change the language to English, to take the screenshot.

Also explain what storage you are using, and your data schema, and explain in detail what problem you are encountering.

Okay, I will do it as soon as I can