$recipe_ingridient_groups = RecipeIngridientGroup::where('recipe_id', $id)->get();
, передаю во вью и циклами перебираю,@foreach($recipe_ingridient_groups as $key => $value)
@foreach($value->ingridients() as $ingridient_key => $ingridient_value)
{{ $ingridient_value->ingridient()->name }}
$.get('/search/measures',1, function(measures) {
current_Select.attr('name', 'ingridient_measure[' + group_id + '][' + ingridient_id + ']').append(measures);
});
foreach($measures as $measure){
echo '<option value='.'"'. $measure->id.'"'. '>'. $measure->name . '</option>';
}