I'm pulling data from a table to a select
, however I have fields where information is the same, for example:
Controller:
$amostragens = Amostragem::all();
View:
@foreach($amostragens as $amostragem)
<option value="{{ $amostragem->id }}">{{ $amostragem->analito }}</option>
@endforeach
Table:
Soitendsupbeingrepeatedwithinselect
whenIdisplaythe"analyte".
I need to show for example only 1 "Ethyl Acetate", and in another select or I already have something prepared to display all the "collector" options that have the selected analyte.