Using only one wire:model as the selected value in a loop / Pausing wire:poll when a modal is shown

Hello, I’m Tony and I’m new to programming, I hope you can help me.

I’m trying to set up a delivery dashboard that scans for new orders and lets you choose a person in charge of delivery, the problem is that since I’m using wire:model to hold the choice, when there’s more than one order in the view, the same option is selected for both and you might as well select from one order and click send in another, which is pretty bad.

and my controller(at least the relevant part, classes are underlined because I translated them, they don’t actually exist):

image

My solution to this has been that the select and send options only display when the order is currently selected, but since I’ve been going forward with my learning, I got to a point where it doesn’t feel right to not know if one of these options are possible:

  1. Have select and send always visible for every order while the select option only affects “that specific order”

  2. Leave only a send button that triggers a modal where I can choose the delivery Boy, the problem with this has been that since I’m using wire:poll, after it triggers, It only lasts a few seconds before going away, so I’m wondering if there’s a way to make the modal stop wire:poll while shown. Oh by the way, I’m using Bootsrap, since it’s the only one I know.

I will appreciate your help.