Public Property using a foreach loop in Livewire controller

What seems to be the problem:
I have a form that is being built by the amount of tests required to be done on a patient. If the company selects 2 two tests, these tests need to be pulled and I need to update the db to state if the test has been done. I have been able to do this using a normal Laravel Controller but not sure how you would do something like this using Livewire. Any assistance would be greatly appreciated.
Steps to Reproduce:

In my blade:
<input type="text" name="{{ $bloodtest->id }}">

My current code in Laravel Controller

foreach($bloodtests as $bloodtest)
{
  $id = $bloodtest->id;
  
  $bloodtest = BloodTest::find($bloodtest->id);

      $bloodtest->result = $request->$id;

  $bloodtest->save();

Now I would like to perform the same logic using Livewire. The problem comes when I input a value, I get an error due to the public property not being set. I’m not sure how you set a public property using a foreach loop to set multiple public properties.
Are you using the latest version of Livewire:
Yes
Do you have any screenshots or code examples:

You’ll probably want to keep the ids in an array.

component.blade.php

@foreach ($bloodtests as $bloodtest)
<input type="text" wire:model="testResults.{{ $bloodtest->id }}" :key="{{ $bloodtest->id }}>
@endforeach

<button wire:click="saveResults()">Save Results</button>
Component.php

public $testResults = [];

public function saveResults()
{
    foreach($this->testResults as $bloodTestId => $testResult)
    {
        BloodTest::find($bloodTestId)->update(['result' => $testResult]);
    }
}

That should be all you need to keep track of the ids in your array. As the input is changed, it’ll update your public variable $testresults. You can change your save function to spool through the $testresults, pull up the model from database, and update based on the key and the value from $testresults