@php $tab_img=[]; @endphp @if(count($stock->imagedeclinaisons)>0) @foreach($stock->imagedeclinaisons as $img) @php $tab_img[]=$img->image_id @endphp @endforeach @endif
@foreach($stock->declinaisons as $declinaison) {{$declinaison->attributoption->attribut->name}} {{$declinaison->valeur}} @endforeach
id)}}" class="needs-validation add-product-form" method="POST"> @csrf @method('PUT')
defaut==1) checked @endif type="radio" value="1" name="defaut"> Définir comme déclinaison par défaut

@foreach($stock->produit->images as $image)
id,$tab_img)) {{'checked'}} @endif type="checkbox" id="image_{{$image->id}}" name="combinationimage[]" value="{{$image->id}}">
@endforeach