@foreach($rows as $key=>$row)
 <div class="form-group col-lg-6">
            <label>{{ attributename($row->id)}} </label>
            <input type="hidden" class="form-control" name="attr[{{$key}}][attribute_id]" value="{{$row->id}}" />
            @if($row->type == 'select')
            
            <select class="form-control" name="attr[{{$key}}][choise_id][]">
                <option selected disabled>{{__('products.select')}}</option>
                @foreach(choises($row->id) as $choise)
                <option value="{{$choise->id}}">{{choisename($choise->id)}}</option>
                @endforeach
            </select>
            @else
             <div class="form-group col-lg-12">
               
               
                     <div class="row">
                    @foreach(choises($row->id) as $choise)
                    <div class="col-3"><input type="checkbox"  name="attr[{{$key}}][choise_id][]" value="{{$choise->id}}"> {{choisename($choise->id)}}</div>
                    @endforeach
               </div>
                </div>
            @endif
        </div>
        @endforeach