It looks like the $extra is generating multiple Extra Service rows, however the same value from the $temp/Template is being passed though to each as your doing a "->findOrFail()". I'm not sure how the data is stored here, but I'd check where you are pulling in the boolean for each Extra Service and get that data available.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community