Kijdsa
1 week ago

Count sold items

Posted 1 week ago by Kijdsa

Hi, how can I put a condition in the blade when all the items in a table are on the status for example "balance" to say that it no longer exists? Of course they relate to the id of a building

For example: I have the "project_buldings" table and the "items" table everything related to items is related to project_buidings, how can I calculate when all the items sold by the id in project_buildings are balance? to go through them with a foreach?

project_buildings = 3 items = (20 items)

And I want to go through these 20 to see if they are all sold out

In items I have "status" for this

Please sign in or create an account to participate in this conversation.